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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>getCollectionLocations(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, storeCommunityCollectionLocations
-
Methods inherited from interface org.dspace.discovery.indexobject.factory.IndexFactory
buildDocument, delete, delete, deleteAll, findAll, findIndexableObject, getIndexableObjects, getType, supports, writeDocument
-
-
-
-
Method Detail
-
getCollectionLocations
List<String> getCollectionLocations(Context context, Collection collection) throws SQLException
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
-
-