Interface CollectionIndexFactory
- All Superinterfaces:
DSpaceObjectIndexFactory<IndexableCollection,,Collection> IndexFactory<IndexableCollection,Collection>
- All Known Implementing Classes:
CollectionIndexFactoryImpl
public interface CollectionIndexFactory
extends DSpaceObjectIndexFactory<IndexableCollection,Collection>
Factory interface for indexing/retrieving collections in the search core
- Author:
- Kevin Van de Velde (kevin at atmire dot com)
-
Method Summary
Modifier and TypeMethodDescriptiongetCollectionLocations(Context context, Collection collection) Return a list of the identifiers of the owning communities from the provided collection prepended by "m"Methods inherited from interface org.dspace.discovery.indexobject.factory.DSpaceObjectIndexFactory
getLocations, storeCommunityCollectionLocationsMethods inherited from interface org.dspace.discovery.indexobject.factory.IndexFactory
buildDocument, buildNewDocument, delete, delete, deleteAll, findAll, findIndexableObject, getIndexableObjects, getType, supports, writeDocument
-
Method Details
-
getCollectionLocations
Return a list of the identifiers of the owning communities from the provided collection prepended by "m"- Parameters:
context- DSpace context objectcollection- DSpace collection- Returns:
- A list of community identifiers with "m" prepended to every one
- Throws:
SQLException- If database error
-