Package org.dspace.content.virtual
Class EntityTypeToFilterQueryService
- java.lang.Object
-
- org.dspace.content.virtual.EntityTypeToFilterQueryService
-
public class EntityTypeToFilterQueryService extends Object
This service offers a way to convert EntityType String labels to a filter query which is defined in the bean config for this service
-
-
Constructor Summary
Constructors Constructor Description EntityTypeToFilterQueryService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFilterQueryForKey(String key)Retrieves the filterQuery for the key that's given as a parameter.MapgetMap()Standard getter for the mapbooleanhasKey(String key)Returns a boolean depending on whether a key is present in the map or notvoidsetMap(Map map)Standard setter for this map
-
-
-
Method Detail
-
setMap
public void setMap(Map map)
Standard setter for this map- Parameters:
map- The map that should be set in this service
-
getMap
public Map getMap()
Standard getter for the map- Returns:
- the map
-
getFilterQueryForKey
public String getFilterQueryForKey(String key)
Retrieves the filterQuery for the key that's given as a parameter. It looks in the map for the value- Parameters:
key- The key for which we'll find the value in the map- Returns:
- The filter query representation for the given key
-
hasKey
public boolean hasKey(String key)
Returns a boolean depending on whether a key is present in the map or not- Parameters:
key- The key to be checked for- Returns:
- The boolean indicating whether this key is present in the map or not
-
-