Interface DSpaceObjectIndexFactory<T extends IndexableDSpaceObject,S extends DSpaceObject>
-
- All Superinterfaces:
IndexFactory<T,S>
- All Known Subinterfaces:
CollectionIndexFactory,CommunityIndexFactory,ItemIndexFactory
- All Known Implementing Classes:
CollectionIndexFactoryImpl,CommunityIndexFactoryImpl,DSpaceObjectIndexFactoryImpl,ItemIndexFactoryImpl
public interface DSpaceObjectIndexFactory<T extends IndexableDSpaceObject,S extends DSpaceObject> extends IndexFactory<T,S>
Factory interface for indexing/retrieving DSpaceObjects in the search core- Author:
- Kevin Van de Velde (kevin at atmire dot com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>getLocations(Context context, T indexableDSpaceObject)Return a list of the identifiers from the parents for the provided IndexableObject, communities will be prepended by "m", collections b "c"voidstoreCommunityCollectionLocations(org.apache.solr.common.SolrInputDocument doc, List<String> locations)Store the provided locations in the solr document-
Methods inherited from interface org.dspace.discovery.indexobject.factory.IndexFactory
buildDocument, buildNewDocument, delete, delete, deleteAll, findAll, findIndexableObject, getIndexableObjects, getType, supports, writeDocument
-
-
-
-
Method Detail
-
getLocations
List<String> getLocations(Context context, T indexableDSpaceObject) throws SQLException
Return a list of the identifiers from the parents for the provided IndexableObject, communities will be prepended by "m", collections b "c"- Parameters:
context- DSpace context object- Returns:
- A list of community identifiers with "m" prepended to every one
- Throws:
SQLException- If database error
-
-