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 -
Method Summary
Modifier and TypeMethodDescriptiongetID()Return the identifier of this indexableObject, this will be the identifier of the object in the databaseGet the entity that is linked to this indexable objectvoidsetIndexedObject(T dso) Set the entity that is linked to this indexable objectMethods inherited from class org.dspace.discovery.indexobject.AbstractIndexableObject
equals, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dspace.discovery.IndexableObject
getLastModified, getType, getTypeText, getUniqueIndexID
-
Constructor Details
-
IndexableDSpaceObject
-
-
Method Details
-
getIndexedObject
Description copied from interface:IndexableObjectGet the entity that is linked to this indexable object- Returns:
- a database entity
-
setIndexedObject
Description copied from interface:IndexableObjectSet the entity that is linked to this indexable object- Parameters:
dso- the database entity
-
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
-