Class IndexObjectFactoryFactory
- java.lang.Object
-
- org.dspace.discovery.indexobject.factory.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)
-
-
Field Summary
Fields Modifier and Type Field Description protected ClaimedTaskServiceclaimedTaskServiceprotected PoolTaskServicepoolTaskServiceprotected WorkspaceItemServiceworkspaceItemServiceprotected XmlWorkflowItemServicexmlWorkflowItemService
-
Constructor Summary
Constructors Constructor Description IndexObjectFactoryFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description IndexFactorygetIndexableObjectFactory(String indexableObjectUniqueString)Retrieve the IndexFactory implementation for the given indexable object unique identifierIndexFactorygetIndexableObjectFactory(IndexableObject indexableObject)Retrieve the IndexFactory implementation for the given indexable objectList<IndexableObject>getIndexableObjects(Context context, Object object)Retrieve all the indexable objects for the provided objectabstract List<IndexFactory>getIndexFactories()Return the list of all the available implementations of the IndexableObjectService interfaceIndexFactorygetIndexFactoryByType(String indexableFactoryType)Retrieve the IndexFactory implementation for the given indexable object typestatic IndexObjectFactoryFactorygetInstance()Retrieve an implementation instance for this factory
-
-
-
Field Detail
-
workspaceItemService
@Autowired protected WorkspaceItemService workspaceItemService
-
xmlWorkflowItemService
@Autowired protected XmlWorkflowItemService xmlWorkflowItemService
-
claimedTaskService
@Autowired protected ClaimedTaskService claimedTaskService
-
poolTaskService
@Autowired protected PoolTaskService poolTaskService
-
-
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 objectobject- 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
-
-