Package org.dspace.content.virtual
Class UUIDValue
- java.lang.Object
-
- org.dspace.content.virtual.UUIDValue
-
- All Implemented Interfaces:
VirtualMetadataConfiguration
public class UUIDValue extends Object implements VirtualMetadataConfiguration
This class is used by the VirtualMetadataPopulator. It will simply take the ID of the item that's passed along to this and return that as it's value
-
-
Constructor Summary
Constructors Constructor Description UUIDValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetPopulateWithNameVariant()Generic getter for the populateWithNameVariant propertybooleangetUseForPlace()Generic getter for the useForPlace propertyList<String>getValues(Context context, Item item)This method will return a list filled with String values which will be determine by the bean that's responsible of handling the metadata fields when fully traversed through all theRelatedbeansvoidsetPopulateWithNameVariant(boolean populateWithNameVariant)Generic setter for the populateWithNameVariant This property defines whether the value should be retrieved from the left/rightward on the Relationship (true) or through the configuration and usual way (false)voidsetUseForPlace(boolean useForPlace)Generic setter for the useForPlace property
-
-
-
Method Detail
-
getValues
public List<String> getValues(Context context, Item item) throws SQLException
Description copied from interface:VirtualMetadataConfigurationThis method will return a list filled with String values which will be determine by the bean that's responsible of handling the metadata fields when fully traversed through all theRelatedbeans- Specified by:
getValuesin interfaceVirtualMetadataConfiguration- Parameters:
context- The relevant DSpace contextitem- The item that will be used to either retrieve metadata values from or to find the related item through its relationships- Returns:
- The list of String values of all the metadata values as constructed by the responsible bean
- Throws:
SQLException- If something goes wrong
-
setUseForPlace
public void setUseForPlace(boolean useForPlace)
Description copied from interface:VirtualMetadataConfigurationGeneric setter for the useForPlace property- Specified by:
setUseForPlacein interfaceVirtualMetadataConfiguration- Parameters:
useForPlace- The boolean value that the useForPlace property will be set to
-
getUseForPlace
public boolean getUseForPlace()
Description copied from interface:VirtualMetadataConfigurationGeneric getter for the useForPlace property- Specified by:
getUseForPlacein interfaceVirtualMetadataConfiguration- Returns:
- The useForPlace to be used by this bean
-
setPopulateWithNameVariant
public void setPopulateWithNameVariant(boolean populateWithNameVariant)
Description copied from interface:VirtualMetadataConfigurationGeneric setter for the populateWithNameVariant This property defines whether the value should be retrieved from the left/rightward on the Relationship (true) or through the configuration and usual way (false)- Specified by:
setPopulateWithNameVariantin interfaceVirtualMetadataConfiguration- Parameters:
populateWithNameVariant- The boolean value that the populateWithNameVariant property will be set to
-
getPopulateWithNameVariant
public boolean getPopulateWithNameVariant()
Description copied from interface:VirtualMetadataConfigurationGeneric getter for the populateWithNameVariant property- Specified by:
getPopulateWithNameVariantin interfaceVirtualMetadataConfiguration- Returns:
- The populatewithNameVariant to be used by this bean
-
-