Class IndexObjectFactoryFactory

  • Direct Known Subclasses:
    IndexObjectFactoryFactoryImpl

    public abstract class IndexObjectFactoryFactory
    extends Object
    Abstract factory to get the IndexFactory objects
    Author:
    Kevin Van de Velde (kevin at atmire dot com)
    • Constructor Detail

      • IndexObjectFactoryFactory

        public IndexObjectFactoryFactory()
    • Method Detail

      • getIndexFactories

        public abstract List<IndexFactory> getIndexFactories()
        Return the list of all the available implementations of the IndexableObjectService interface
        Returns:
        the list of IndexableObjectService
      • getIndexableObjectFactory

        public IndexFactory getIndexableObjectFactory​(IndexableObject indexableObject)
        Retrieve the IndexFactory implementation for the given indexable object
        Parameters:
        indexableObject - the indexable object for which we need our factory
        Returns:
        An IndexFactory implementation
      • getIndexableObjectFactory

        public IndexFactory getIndexableObjectFactory​(String indexableObjectUniqueString)
        Retrieve the IndexFactory implementation for the given indexable object unique identifier
        Parameters:
        indexableObjectUniqueString - the unique identifier of an indexable object
        Returns:
        An IndexFactory implementation
      • getIndexFactoryByType

        public IndexFactory getIndexFactoryByType​(String indexableFactoryType)
        Retrieve the IndexFactory implementation for the given indexable object type
        Parameters:
        indexableFactoryType - the object type of the indexable object
        Returns:
        An IndexFactory implementation
      • getIndexableObjects

        public List<IndexableObject> getIndexableObjects​(Context context,
                                                         Object object)
                                                  throws SQLException
        Retrieve all the indexable objects for the provided object
        Parameters:
        context - DSpace context object
        object - The object we want to retrieve our indexable objects for
        Returns:
        A list of indexable objects
        Throws:
        SQLException
      • getInstance

        public static IndexObjectFactoryFactory getInstance()
        Retrieve an implementation instance for this factory
        Returns:
        an IndexObjectServiceFactory bean