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
FieldsModifier and TypeFieldDescriptionprotected CollectionIndexFactoryprotected ItemIndexFactoryprotected SupervisionOrderServiceFields inherited from class org.dspace.discovery.indexobject.IndexFactoryImpl
solrSearchCore, solrServiceIndexPlugins -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.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 documentMethods inherited from class org.dspace.discovery.indexobject.IndexFactoryImpl
addFacetIndex, addFacetIndex, addNamedResourceTypeIndex, buildNewDocument, delete, delete, deleteAll, writeDocument, writeDocumentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dspace.discovery.indexobject.factory.IndexFactory
buildNewDocument, delete, delete, deleteAll, findAll, findIndexableObject, getIndexableObjects, getType, supports, writeDocument
-
Field Details
-
indexableCollectionService
-
indexableItemService
-
supervisionOrderService
-
-
Constructor Details
-
InprogressSubmissionIndexFactoryImpl
public InprogressSubmissionIndexFactoryImpl()
-
-
Method Details
-
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
-