public class WebAmetysObjectWorkflowStore extends AmetysObjectWorkflowStore
Modifier and Type | Field and Description |
---|---|
protected Session |
_session
Internal session
|
_ametysObject, _inMemoryEntry
__NAMESPACE, __NAMESPACE_PREFIX, __NM_PREFIX, __ROOT_NT, _log, _repository
Constructor and Description |
---|
WebAmetysObjectWorkflowStore(Repository repository,
WorkflowAwareAmetysObject ametysObject)
Creates a workflow store for Web Ametys object.
|
WebAmetysObjectWorkflowStore(Repository repository,
WorkflowAwareAmetysObject ametysObject,
boolean preserveHistory)
Creates a workflow store for Web Ametys object.
|
Modifier and Type | Method and Description |
---|---|
protected Node |
_getAmetysObjectNode()
Provides the ametys object node in the current session
|
protected Session |
_getSession()
Open a session to the _repository.
|
protected void |
_release(Session session)
Release a session.
|
_createRootNode, _getNextEntryId, _getOrCreateParentEntryNode, _getRootNode, bindAmetysObject, getAmetysObject, shouldClearHistory, storeNewEntry
__toCalendar, _getNextStepId, buildFieldExpression, buildNestedExpression, clearHistory, createCurrentStep, createEntry, deleteInstance, findCurrentSteps, findEntry, findHistorySteps, getCondition, getEntryNode, getFirstFieldExpression, getPredicate, getPropertyName, getPropertySet, getSortCriteria, init, markFinished, moveToHistory, query, query, removeEntry, setEntryState, translateValue
public WebAmetysObjectWorkflowStore(Repository repository, WorkflowAwareAmetysObject ametysObject)
repository
- the JCR Repository to use.ametysObject
- The ametys object for this store. Can be null in case of an object creation.public WebAmetysObjectWorkflowStore(Repository repository, WorkflowAwareAmetysObject ametysObject, boolean preserveHistory)
repository
- The repositoryametysObject
- The ametys object for this store. Can be null in case of an object creation.preserveHistory
- Set to true to preserve history steps when workflow is complete.protected Session _getSession() throws RepositoryException
AbstractJackrabbitWorkflowStore
_getSession
in class AmetysObjectWorkflowStore
RepositoryException
- if an error occurs.protected void _release(Session session)
AbstractJackrabbitWorkflowStore
Default implementation calls logout on the session.
_release
in class AmetysObjectWorkflowStore
session
- the session to release.protected Node _getAmetysObjectNode() throws RepositoryException
AmetysObjectWorkflowStore
_getAmetysObjectNode
in class AmetysObjectWorkflowStore
RepositoryException
- on repository error