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
11
12
13
14
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
26
27
28
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 }