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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Generic getter for the populateWithNameVariant property
    boolean
    Generic getter for the useForPlace property
    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 the Related beans
    void
    setPopulateWithNameVariant(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)
    void
    setUseForPlace(boolean useForPlace)
    Generic setter for the useForPlace property

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UUIDValue

      public UUIDValue()
  • Method Details

    • getValues

      public List<String> getValues(Context context, Item item) throws SQLException
      Description copied from interface: VirtualMetadataConfiguration
      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 the Related beans
      Specified by:
      getValues in interface VirtualMetadataConfiguration
      Parameters:
      context - The relevant DSpace context
      item - 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: VirtualMetadataConfiguration
      Generic setter for the useForPlace property
      Specified by:
      setUseForPlace in interface VirtualMetadataConfiguration
      Parameters:
      useForPlace - The boolean value that the useForPlace property will be set to
    • getUseForPlace

      public boolean getUseForPlace()
      Description copied from interface: VirtualMetadataConfiguration
      Generic getter for the useForPlace property
      Specified by:
      getUseForPlace in interface VirtualMetadataConfiguration
      Returns:
      The useForPlace to be used by this bean
    • setPopulateWithNameVariant

      public void setPopulateWithNameVariant(boolean populateWithNameVariant)
      Description copied from interface: VirtualMetadataConfiguration
      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)
      Specified by:
      setPopulateWithNameVariant in interface VirtualMetadataConfiguration
      Parameters:
      populateWithNameVariant - The boolean value that the populateWithNameVariant property will be set to
    • getPopulateWithNameVariant

      public boolean getPopulateWithNameVariant()
      Description copied from interface: VirtualMetadataConfiguration
      Generic getter for the populateWithNameVariant property
      Specified by:
      getPopulateWithNameVariant in interface VirtualMetadataConfiguration
      Returns:
      The populatewithNameVariant to be used by this bean