Mercurial > hg > ismi-richfaces
diff src/main/java/de/mpiwg/itgroup/ismi/browse/AbstractEntityRepositoryBean.java @ 104:42d0169904f3
add search for place type.
author | casties |
---|---|
date | Fri, 04 Nov 2016 18:10:07 +0100 |
parents | 03dcbaf8b8cf |
children | 29bd63f749c6 |
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/itgroup/ismi/browse/AbstractEntityRepositoryBean.java Thu Nov 03 20:10:58 2016 +0100 +++ b/src/main/java/de/mpiwg/itgroup/ismi/browse/AbstractEntityRepositoryBean.java Fri Nov 04 18:10:07 2016 +0100 @@ -52,6 +52,7 @@ private String collectionName; private String placeName; + private String placeType; private String aliasAlias; @@ -269,6 +270,9 @@ if (StringUtils.isNotEmpty(this.placeName)) { filterList.add(new AttributeFilter("name", this.placeName, PLACE)); } + if (StringUtils.isNotEmpty(this.placeType)) { + filterList.add(new AttributeFilter("type", this.placeType, PLACE)); + } } else if (this.objectClass.equals(CODEX)) { if (StringUtils.isNotEmpty(this.codexIdentifier)) { filterList.add(new AttributeFilter("identifier", this.codexIdentifier, CODEX)); @@ -466,7 +470,21 @@ this.placeName = placeName; } - public String getCollectionName() { + /** + * @return the placeType + */ + public String getPlaceType() { + return placeType; + } + + /** + * @param placeType the placeType to set + */ + public void setPlaceType(String placeType) { + this.placeType = placeType; + } + + public String getCollectionName() { return collectionName; }