Package org.dspace.content.virtual
Class VirtualMetadataPopulator
java.lang.Object
org.dspace.content.virtual.VirtualMetadataPopulator
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 -
Method Summary
Modifier and TypeMethodDescriptiongetMap()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.voidStandard setter for the map
-
Constructor Details
-
VirtualMetadataPopulator
public VirtualMetadataPopulator()
-
-
Method Details
-
setMap
Standard setter for the map- Parameters:
map- The map to be used in the VirtualMetadataPopulator
-
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
-