Package org.dspace.discovery
Interface IndexableObject<T extends ReloadableEntity<PK>,PK extends Serializable>
-
- Type Parameters:
PK- the Class of the primary key
- All Known Implementing Classes:
IndexableClaimedTask,IndexableCollection,IndexableCommunity,IndexableDSpaceObject,IndexableInProgressSubmission,IndexableItem,IndexablePoolTask,IndexableWorkflowItem,IndexableWorkspaceItem
public interface IndexableObject<T extends ReloadableEntity<PK>,PK extends Serializable>This is the basic interface that a data model entity need to implement to be indexable in Discover- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PKgetID()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 objectdefault DategetLastModified()Return the last modified date of an of an object, or if no modification dates are stored, return NUllStringgetType()StringgetTypeText()default StringgetUniqueIndexID()voidsetIndexedObject(T object)Set the entity that is linked to this indexable object
-
-
-
Method Detail
-
getID
PK getID()
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
-
getIndexedObject
T getIndexedObject()
Get the entity that is linked to this indexable object- Returns:
- a database entity
-
setIndexedObject
void setIndexedObject(T object)
Set the entity that is linked to this indexable object- Parameters:
object- the database entity
-
getUniqueIndexID
default String getUniqueIndexID()
- Returns:
- an unique id to index
-
getLastModified
default Date getLastModified()
Return the last modified date of an of an object, or if no modification dates are stored, return NUll- Returns:
- the last modified date
-
-