Package org.dspace.content.virtual
Class EntityTypeToFilterQueryService
java.lang.Object
org.dspace.content.virtual.EntityTypeToFilterQueryService
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 -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the filterQuery for the key that's given as a parameter.getMap()Standard getter for the mapbooleanReturns a boolean depending on whether a key is present in the map or notvoidStandard setter for this map
-
Constructor Details
-
EntityTypeToFilterQueryService
public EntityTypeToFilterQueryService()
-
-
Method Details
-
setMap
Standard setter for this map- Parameters:
map- The map that should be set in this service
-
getMap
Standard getter for the map- Returns:
- the map
-
getFilterQueryForKey
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
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
-