Package org.dspace.discovery.indexobject
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 Summary
Constructors Constructor Description IndexableDSpaceObject(T dso)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UUIDgetID()Return the identifier of this indexableObject, this will be the identifier of the object in the databaseTgetIndexedObject()Get the entity that is linked to this indexable objectvoidsetIndexedObject(T dso)Set the entity that is linked to this indexable object-
Methods inherited from class org.dspace.discovery.indexobject.AbstractIndexableObject
equals, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.discovery.IndexableObject
getLastModified, getType, getTypeText, getUniqueIndexID
-
-
-
-
Constructor Detail
-
IndexableDSpaceObject
public IndexableDSpaceObject(T dso)
-
-
Method Detail
-
getIndexedObject
public T getIndexedObject()
Description copied from interface:IndexableObjectGet the entity that is linked to this indexable object- Returns:
- a database entity
-
setIndexedObject
public void setIndexedObject(T dso)
Description copied from interface:IndexableObjectSet the entity that is linked to this indexable object- Parameters:
dso- the database entity
-
getID
public UUID getID()
Description copied from interface:IndexableObjectReturn 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
-
-