Package org.dspace.content.virtual
Class Collected
java.lang.Object
org.dspace.content.virtual.Collected
- All Implemented Interfaces:
VirtualMetadataConfiguration
A bean implementing the
VirtualMetadataConfiguration interface to achieve the generation of Virtual
metadata
The Collected bean will take all the values of each metadata field defined in the list and it'll
create a list of virtual metadata fields defined by the map in which it's defined.
All values from the metadata fields will returned as separate elements-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGeneric getter for the fields propertybooleanGeneric getter for the populateWithNameVariant propertybooleanGeneric getter for the useForPlace propertythis method will retrieve the metadata values from the given item for all the metadata fields listed in the fields property and it'll return all those values as a listvoidGeneric setter for the fields propertyvoidsetPopulateWithNameVariant(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
-
Constructor Details
-
Collected
public Collected()
-
-
Method Details
-
getFields
Generic getter for the fields property- Returns:
- The list of fields to be used in this bean
-
setFields
Generic setter for the fields property- Parameters:
fields- the list of fields to which the fields property will be set to
-
setUseForPlace
public void setUseForPlace(boolean useForPlace) Generic 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()Generic 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
-
getValues
this method will retrieve the metadata values from the given item for all the metadata fields listed in the fields property and it'll return all those values as a list- Specified by:
getValuesin interfaceVirtualMetadataConfiguration- Parameters:
context- The relevant DSpace contextitem- The item that will be used to either retrieve metadata values from- Returns:
- The String values for all of the retrieved metadatavalues
-