Package org.dspace.discovery.indexobject
Class InprogressSubmissionIndexFactoryImpl<T extends IndexableInProgressSubmission,S extends InProgressSubmission>
- java.lang.Object
-
- org.dspace.discovery.indexobject.IndexFactoryImpl<T,S>
-
- org.dspace.discovery.indexobject.InprogressSubmissionIndexFactoryImpl<T,S>
-
- All Implemented Interfaces:
IndexFactory<T,S>,InprogressSubmissionIndexFactory<T,S>
- Direct Known Subclasses:
WorkflowItemIndexFactoryImpl,WorkspaceItemIndexFactoryImpl
public abstract class InprogressSubmissionIndexFactoryImpl<T extends IndexableInProgressSubmission,S extends InProgressSubmission> extends IndexFactoryImpl<T,S> implements InprogressSubmissionIndexFactory<T,S>
Factory implementation for indexing/retrieving InProgressSubmissions in the search core- Author:
- Kevin Van de Velde (kevin at atmire dot com)
-
-
Field Summary
Fields Modifier and Type Field Description protected CollectionIndexFactoryindexableCollectionServiceprotected ItemIndexFactoryindexableItemServiceprotected SupervisionOrderServicesupervisionOrderService-
Fields inherited from class org.dspace.discovery.indexobject.IndexFactoryImpl
solrSearchCore, solrServiceIndexPlugins
-
-
Constructor Summary
Constructors Constructor Description InprogressSubmissionIndexFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.solr.common.SolrInputDocumentbuildDocument(Context context, T indexableObject)Create solr document with all the shared fields initialized.voidstoreInprogressItemFields(Context context, org.apache.solr.common.SolrInputDocument doc, InProgressSubmission inProgressSubmission)Store common fields between workspace / workflow items in the solr document-
Methods inherited from class org.dspace.discovery.indexobject.IndexFactoryImpl
addFacetIndex, addFacetIndex, addNamedResourceTypeIndex, buildNewDocument, delete, delete, deleteAll, writeDocument, writeDocument
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.discovery.indexobject.factory.IndexFactory
buildNewDocument, delete, delete, deleteAll, findAll, findIndexableObject, getIndexableObjects, getType, supports, writeDocument
-
-
-
-
Field Detail
-
indexableCollectionService
@Autowired protected CollectionIndexFactory indexableCollectionService
-
indexableItemService
@Autowired protected ItemIndexFactory indexableItemService
-
supervisionOrderService
@Autowired protected SupervisionOrderService supervisionOrderService
-
-
Method Detail
-
buildDocument
public org.apache.solr.common.SolrInputDocument buildDocument(Context context, T indexableObject) throws SQLException, IOException
Description copied from interface:IndexFactoryCreate solr document with all the shared fields initialized.- Specified by:
buildDocumentin interfaceIndexFactory<T extends IndexableInProgressSubmission,S extends InProgressSubmission>- Overrides:
buildDocumentin classIndexFactoryImpl<T extends IndexableInProgressSubmission,S extends InProgressSubmission>indexableObject- the indexableObject that we want to index- Returns:
- initialized solr document
- Throws:
SQLExceptionIOException
-
storeInprogressItemFields
public void storeInprogressItemFields(Context context, org.apache.solr.common.SolrInputDocument doc, InProgressSubmission inProgressSubmission) throws SQLException, IOException
Description copied from interface:InprogressSubmissionIndexFactoryStore common fields between workspace / workflow items in the solr document- Specified by:
storeInprogressItemFieldsin interfaceInprogressSubmissionIndexFactory<T extends IndexableInProgressSubmission,S extends InProgressSubmission>- Parameters:
context- DSpace context objectdoc- Solr input document which will be written to our discovery solr coreinProgressSubmission- the workspace / workflow item- Throws:
SQLException- If database errorIOException
-
-