1 package org.kuali.ole.docstore.factory;
2
3 import org.kuali.ole.docstore.document.DocumentManager;
4 import org.kuali.ole.docstore.document.jcr.JcrDocumentManagerFactory;
5 import org.kuali.ole.docstore.transaction.JcrTransactionManager;
6 import org.kuali.ole.docstore.transaction.TransactionManager;
7
8
9
10
11
12
13
14
15 public class JcrDocstoreFactory extends AbstractDocstoreFactory implements DocstoreFactory {
16
17 @Override
18 public TransactionManager getTransactionManager(String docCategory, String docType, String docFormat) {
19 TransactionManager transactionManager = new JcrTransactionManager();
20 return transactionManager;
21 }
22
23 @Override
24 public DocumentManager getDocumentManager(String docCategory, String docType, String docFormat) {
25 DocumentManager documentManager = JcrDocumentManagerFactory.getInstance().getDocumentManager(docCategory, docType, docFormat);
26 return documentManager;
27 }
28
29 }