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 Details

    • 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
    • storeCommunityCollectionLocations

      void storeCommunityCollectionLocations(org.apache.solr.common.SolrInputDocument doc, List<String> locations)
      Store the provided locations in the solr document
      Parameters:
      doc - The solr input document
      locations - The locations to be stored