|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.platform.workflow.document.ejb.AbstractWorkflowDocumentManager
public abstract class AbstractWorkflowDocumentManager
Abstract workflow document manager.
This abstract class will deal with JTA session resources synchronization. In this case the core document manager needs to be opened and closed at the beginning and end of every transaction.
| Field Summary | |
|---|---|
protected CoreSession |
documentManager
|
protected CoreDocumentManagerBusinessDelegate |
documentManagerBusinessDelegate
|
protected String |
repositoryUri
|
protected WorkflowDocumentSecurityPolicyBusinessDelegate |
wDocRightsPolicyBusinessDelegate
|
| Constructor Summary | |
|---|---|
AbstractWorkflowDocumentManager()
|
|
| Method Summary | |
|---|---|
void |
afterBegin()
|
void |
afterCompletion(boolean committed)
|
void |
beforeCompletion()
|
protected CoreSession |
getDocumentManager()
|
DocumentModel |
getDocumentModelFor(DocumentRef docRef)
Returns a document model from core given a document ref. |
String |
getRepositoryUri()
Gets the repository URI. |
protected WorkflowDocumentSecurityPolicyManager |
getWorkflowDocumentRightsPolicy()
|
void |
setRepositoryUri(String repositoryUri)
Sets the repository URI. |
void |
unlockDocument(DocumentRef docRef)
Unlock document if locked. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String repositoryUri
protected final CoreDocumentManagerBusinessDelegate documentManagerBusinessDelegate
protected final WorkflowDocumentSecurityPolicyBusinessDelegate wDocRightsPolicyBusinessDelegate
protected transient CoreSession documentManager
| Constructor Detail |
|---|
public AbstractWorkflowDocumentManager()
| Method Detail |
|---|
public void afterBegin()
throws EJBException
afterBegin in interface SessionSynchronizationEJBException
public void afterCompletion(boolean committed)
throws EJBException
afterCompletion in interface SessionSynchronizationEJBException
public void beforeCompletion()
throws EJBException,
RemoteException
beforeCompletion in interface SessionSynchronizationEJBException
RemoteException
protected CoreSession getDocumentManager()
throws NamingException,
ClientException
NamingException
ClientException
protected WorkflowDocumentSecurityPolicyManager getWorkflowDocumentRightsPolicy()
throws Exception
Exception
public void unlockDocument(DocumentRef docRef)
throws ClientException
BaseWorkflowDocumentManager
unlockDocument in interface BaseWorkflowDocumentManagerdocRef - : the Nuxeo core document Reference.
ClientException - if exception Nuxeo core side.
public DocumentModel getDocumentModelFor(DocumentRef docRef)
throws ClientException
BaseWorkflowDocumentManager
getDocumentModelFor in interface BaseWorkflowDocumentManagerdocRef - the document reference.
ClientExceptionpublic String getRepositoryUri()
BaseWorkflowDocumentManager
getRepositoryUri in interface BaseWorkflowDocumentManagerpublic void setRepositoryUri(String repositoryUri)
BaseWorkflowDocumentManagerNeeded by the underlying document manager.
setRepositoryUri in interface BaseWorkflowDocumentManagerrepositoryUri - the repository URI
|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||