001package org.kuali.ole.docstore.transaction; 002 003import org.kuali.ole.docstore.indexer.solr.DocumentIndexerManagerFactory; 004import org.kuali.ole.docstore.indexer.solr.IndexerService; 005import org.kuali.ole.docstore.model.xmlpojo.ingest.RequestDocument; 006import org.kuali.ole.docstore.service.BeanLocator; 007 008/** 009 * Created with IntelliJ IDEA. 010 * User: sambasivam 011 * Date: 6/20/13 012 * Time: 12:56 PM 013 * To change this template use File | Settings | File Templates. 014 */ 015abstract public class AbstractTransactionManager implements TransactionManager { 016 017 public IndexerService getIndexerService(RequestDocument requestDocument) { 018 IndexerService indexerService = BeanLocator.getDocstoreFactory().getDocumentIndexManager(requestDocument.getCategory(), requestDocument.getType(), requestDocument.getFormat()); 019 return indexerService; 020 } 021 022}