View Javadoc
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    * Created with IntelliJ IDEA.
10   * User: sambasivam
11   * Date: 6/20/13
12   * Time: 12:56 PM
13   * To change this template use File | Settings | File Templates.
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  }