1 package org.kuali.ole.docstore.transaction;
2
3 import org.kuali.ole.docstore.indexer.solr.DocumentIndexerManagerFactory;
4 import org.kuali.ole.docstore.indexer.solr.IndexerService;
5 import org.kuali.ole.docstore.model.xmlpojo.ingest.RequestDocument;
6 import org.kuali.ole.docstore.service.BeanLocator;
7
8
9
10
11
12
13
14
15 abstract public class AbstractTransactionManager implements TransactionManager {
16
17 public IndexerService getIndexerService(RequestDocument requestDocument) {
18 IndexerService indexerService = BeanLocator.getDocstoreFactory().getDocumentIndexManager(requestDocument.getCategory(), requestDocument.getType(), requestDocument.getFormat());
19 return indexerService;
20 }
21
22 }