View Javadoc
1   package org.kuali.ole.docstore.transaction;
2   
3   import org.kuali.ole.docstore.OleDocStoreException;
4   import org.kuali.ole.docstore.model.xmlpojo.ingest.RequestDocument;
5   import org.kuali.ole.docstore.model.xmlpojo.ingest.ResponseDocument;
6   import org.kuali.ole.docstore.process.batch.BulkProcessRequest;
7   import org.kuali.ole.docstore.utility.BatchIngestStatistics;
8   
9   import javax.jcr.AccessDeniedException;
10  import javax.jcr.ItemExistsException;
11  import javax.jcr.RepositoryException;
12  import java.util.List;
13  
14  /**
15   * Created with IntelliJ IDEA.
16   * User: sambasivam
17   * Date: 6/20/13
18   * Time: 12:55 PM
19   * To change this template use File | Settings | File Templates.
20   */
21  @Deprecated
22  public interface TransactionManager {
23  
24      public enum TransactionState {
25          IDLE, STARTED, COMMITTED, ABORTED, FAILED
26      }
27  
28      public List<ResponseDocument> ingest(List<RequestDocument> requestDocuments) throws Exception;
29  
30      public List<ResponseDocument> checkIn(List<RequestDocument> requestDocuments) throws Exception;
31  
32      public List<ResponseDocument> checkOut(List<RequestDocument> requestDocuments, Object object) throws Exception;
33  
34      public List<ResponseDocument> bind(List<RequestDocument> requestDocuments, String operation) throws Exception;
35  
36      public List<ResponseDocument> unbind(List<RequestDocument> requestDocuments, String operation) throws Exception;
37  
38      public List<ResponseDocument> delete(List<RequestDocument> requestDocuments) throws Exception;
39  
40      public List<ResponseDocument> deleteVerify(List<RequestDocument> requestDocuments) throws Exception;
41  
42      public void transferInstances(List<RequestDocument> requestDocuments) throws Exception;
43  
44      public void transferItems(List<RequestDocument> requestDocuments) throws Exception;
45  
46      public void batchIngest(BulkProcessRequest bulkProcessRequest, List<RequestDocument> requestDocuments)
47              throws Exception;
48  
49      public void startTransaction(String user, String operation) throws Exception;
50  
51      public void startSession(String user, String operation) throws Exception;
52  
53      public void commit() throws Exception;
54  
55      public void closeSession();
56  
57      public void abort();
58  
59  }