Class IndexableDSpaceObject<T extends DSpaceObject>

java.lang.Object
org.dspace.discovery.indexobject.AbstractIndexableObject<T,UUID>
org.dspace.discovery.indexobject.IndexableDSpaceObject<T>
All Implemented Interfaces:
IndexableObject<T,UUID>
Direct Known Subclasses:
IndexableCollection, IndexableCommunity, IndexableItem

public abstract class IndexableDSpaceObject<T extends DSpaceObject> extends AbstractIndexableObject<T,UUID>
DSpaceObject implementation for the IndexableObject, contains methods used by all DSpaceObject methods All DSpaceObjects that will be indexed in discovery should inherit from this class & have their own implementation
Author:
Kevin Van de Velde (kevin at atmire dot com)
  • Constructor Details

    • IndexableDSpaceObject

      public IndexableDSpaceObject(T dso)
  • Method Details

    • getIndexedObject

      public T getIndexedObject()
      Description copied from interface: IndexableObject
      Get the entity that is linked to this indexable object
      Returns:
      a database entity
    • setIndexedObject

      public void setIndexedObject(T dso)
      Description copied from interface: IndexableObject
      Set the entity that is linked to this indexable object
      Parameters:
      dso - the database entity
    • getID

      public UUID getID()
      Description copied from interface: IndexableObject
      Return the identifier of this indexableObject, this will be the identifier of the object in the database
      Returns:
      for a DSpaceObject a uuid will be returned, for a tasks or workflow items an integer will be returned