Package org.dspace.content.virtual
Class VirtualMetadataPopulator
- java.lang.Object
-
- org.dspace.content.virtual.VirtualMetadataPopulator
-
public class VirtualMetadataPopulator extends Object
This class is responsible for holding the representation of how a certain relationshipType label has to be translated to the virtual metadata added onto the items that belong to the relationships that these relationshipTypes belong to
-
-
Constructor Summary
Constructors Constructor Description VirtualMetadataPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,HashMap<String,VirtualMetadataConfiguration>>getMap()Standard getter for the mapbooleanisUseForPlaceTrueForRelationshipType(RelationshipType relationshipType, boolean isLeft)This method will return a boolean indicating whether the useForPlace is true or false for the given RelationshipType for the left or right type as indicated by the second parameter.voidsetMap(Map<String,HashMap<String,VirtualMetadataConfiguration>> map)Standard setter for the map
-
-
-
Method Detail
-
setMap
public void setMap(Map<String,HashMap<String,VirtualMetadataConfiguration>> map)
Standard setter for the map- Parameters:
map- The map to be used in the VirtualMetadataPopulator
-
getMap
public Map<String,HashMap<String,VirtualMetadataConfiguration>> getMap()
Standard getter for the map- Returns:
- The map that is used in the VirtualMetadataPopulator
-
isUseForPlaceTrueForRelationshipType
public boolean isUseForPlaceTrueForRelationshipType(RelationshipType relationshipType, boolean isLeft)
This method will return a boolean indicating whether the useForPlace is true or false for the given RelationshipType for the left or right type as indicated by the second parameter.- Parameters:
relationshipType- The relationshipType for which this should be checkedisLeft- The boolean indicating whether to check the left or the right type- Returns:
- A boolean indicating whether the useForPlace is true or not for the given parameters
-
-