View Javadoc
1   package org.kuali.ole.docstore.factory;
2   
3   import org.kuali.ole.docstore.indexer.solr.IndexerService;
4   import org.kuali.ole.docstore.indexer.solr.DocumentIndexerManagerFactory;
5   import org.kuali.ole.docstore.service.DocumentService;
6   import org.kuali.ole.docstore.service.DocumentServiceImpl;
7   
8   
9   /**
10   * Created with IntelliJ IDEA.
11   * User: sambasivam
12   * Date: 6/20/13
13   * Time: 3:09 PM
14   * To change this template use File | Settings | File Templates.
15   */
16  abstract public class AbstractDocstoreFactory implements DocstoreFactory {
17  
18      @Override
19      public DocumentService getDocumentService() {
20  
21          DocumentService documentService = DocumentServiceImpl.getInstance();
22          return documentService;
23      }
24  
25  /*    @Override
26      public IndexerService getIndexerService() {
27          IndexerService indexerService = IndexerServiceImpl.getInstance();
28          return indexerService;
29      }*/
30  
31      @Override
32      public IndexerService getDocumentIndexManager(String docCategory, String docType, String docFormat) {
33          IndexerService indexerService = DocumentIndexerManagerFactory.getInstance().getDocumentIndexManager(docCategory, docType, docFormat);
34          return indexerService;
35      }
36  }