@Service(value="blWorkflowStateManager") public class WorkflowStateManagerImpl extends Object implements org.springframework.context.ApplicationContextAware, WorkflowStateManager
WorkflowStateManager
Modifier and Type | Field and Description |
---|---|
protected com.broadleafcommerce.enterprise.common.extension.enterprise.WorkflowStateManagerExtensionManager |
extensionManager |
Constructor and Description |
---|
WorkflowStateManagerImpl() |
Modifier and Type | Method and Description |
---|---|
Boolean |
addRollback() |
void |
addSandBoxCollectionMemberBatchFetch(String key,
Map<Serializable,List> members)
Add a list of batch fetch members to a thread local cache.
|
void |
addTransactionBoundCloneLibraryMember(WorkflowCloneLibrary item,
TransactionBoundOperationType operationType) |
void |
clearSandBoxCollectionMemberBatchFetch()
Remove any previously cache batch fetch results from threadlocal.
|
Boolean |
dontPersistEntityItem()
Retrieve the state established by
WorkflowStateManager.startDontPersistEntityItemState() . |
void |
endAddState() |
void |
endAutoPromotionState()
Promotion activities after this call will resume normal workflow steps.
|
void |
endCascadeWorkflowItem() |
void |
endCausedBy()
Operations performed after this call are no longer understood be have been prompted by this
WorkflowSandBoxItem |
void |
endConstrainFilterGroups()
No longer constrain
FilterEnabler instances based on groupNames. |
void |
endCurrentPromoteItem() |
void |
endDontPersistEntityItemState()
Any admin operation performed after this call resume normal
EntityItem persistence behavior. |
void |
endEntityPersistState()
End the state in which the promoted
WorkflowSandBoxItem id is stored on the request. |
void |
endHardDeleteState()
Any
EntityManager.remove(Object) operation for sandboxable entities will resume normal operation,
which is to soft delete (i.e. |
void |
endIgnoreArchiveForRevert()
Entity archival operations that are part of a revert will resume normal operation.
|
void |
endIgnoreFiltersState()
Any operations performed after this call will cause
FilterEnabler
instances to resume normal operation. |
void |
endIgnoreUpdateInsertState()
Entity inserts will resume automatic updates of sandboxable associations to the original id
|
void |
endIncludeSandBoxInheritance()
Resume normal operation for including sandbox inheritance, which is to pass true to
SandBox.getSandBoxIdsForUpwardHierarchy(boolean) . |
void |
endInhibitDeleteCascade() |
void |
endOriginalSandBoxState()
Any operation performed after this call will no longer be associated with originating information.
|
void |
endPromoteState()
Any operation performed after this call will no longer be understood to be part of a
PromoteWorkflowManager.promoteSandBoxItemChanges(Long, Long[], boolean, String, String, boolean) call. |
void |
endPropagationOriginalIdCache() |
void |
endRejectState()
Any operation performed after this call will no longer be understood to be part of a
RejectWorkflowManager.rejectSandBoxItemChanges(Long[], String) call. |
void |
endReplayState()
Any operation performed after this call will no longer be understood to be part of a
AbstractWorkflowManager.replayChange(Long, Long, WorkflowSandBoxItem, boolean, boolean, boolean, String) call. |
void |
endReversePropertyValue()
Resume normal
Property persistence behavior where the
persistence package property value is used directly for the persisted value. |
void |
endRevertState()
Any operation performed after this call will no longer be understood to be part of a
RevertWorkflowManager.revertSandBoxItem(com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem, com.broadleafcommerce.enterprise.workflow.service.type.SandBoxOperationType) call. |
void |
endRollbackState() |
void |
endSandBoxStateFetchCache()
Loaded entities (
com.broadleafcommerce.enterprise.workflow.persistence.event.listener.LoadWorker will no longer be cached. |
void |
endSyncState()
Any operation performed after this call will no longer be understood to be part of a
SyncWorkflowManager.syncChanges(Long, Long) call. |
void |
endVetoProductionUpdate() |
void |
endVetoSandBoxUpdate() |
Boolean |
getAutoPromotion()
Retrieve the state established by
WorkflowStateManager.startAutoPromotionState() |
Long |
getCascadeWorkflowItemId() |
Long |
getCausedBy()
Retrieve the state established by
WorkflowStateManager.startCausedBy(Long) |
List<String> |
getConstrainedFilterGroups()
Retrieve the state established by
WorkflowStateManager.startConstrainFilterGroups(java.util.List) |
protected <T> T |
getContextObject(String key,
Class<?> T) |
Long |
getCreationSandBox()
Retrieve the state established by
WorkflowStateManager.startReplayState(Long) |
Long |
getCurrentPromoteItemId() |
Long |
getEntityPersistSandBoxItem()
Retrieve the id for the
WorkflowSandBoxItem promoted recently
in this request. |
String |
getEntityPrimaryKeyRollback() |
String |
getGroupDescriptionRollback() |
Boolean |
getHardDeleteState()
Retrieve the state established by
WorkflowStateManager.startHardDeleteState() |
Boolean |
getIgnoreArchiveForRevert()
Retrieve the state established by
WorkflowStateManager.startIgnoreArchiveForRevert() |
Boolean |
getIgnoreCloning()
Retrieve the state established by
#startIgnoreCloning() |
Boolean |
getIgnoreFilters()
Retrieve the state established by
WorkflowStateManager.startIgnoreFiltersState() |
Boolean |
getIgnoreUpdateInsertState()
Retrieve the state established by
WorkflowStateManager.startIgnoreUpdateInsertState() |
Boolean |
getIncludeSandboxInheritance()
Retrieve the state established by
WorkflowStateManager.startIncludeSandBoxInheritance(Boolean) . |
WorkflowSandBoxItem |
getItemContainerOverride() |
List<String> |
getLoadedEntities()
Retrieve a list of sandbox entities that have been loaded in this request.
|
Long |
getOriginalSandBox()
Retrieve the state established by
WorkflowStateManager.startOriginalSandBoxState(Long, SandBoxOperationOrigin, Long, String) |
Long |
getOriginalWorkflowItemId()
Retrieve the state established by
WorkflowStateManager.startOriginalSandBoxState(Long, SandBoxOperationOrigin, Long, String) |
Map<String,String> |
getProdAddedEntities() |
String |
getPromotionMessage()
Retrieve the state established by
WorkflowStateManager.startOriginalSandBoxState(Long, SandBoxOperationOrigin, Long, String) |
Map<String,Set<Long>> |
getPropagationOriginalIdCache() |
Boolean |
getReversePropertyValues()
Retrieve the state established by
WorkflowStateManager.startReversePropertyValue() |
Map<Serializable,List> |
getSandBoxCollectionMemberBatchFetch(String key)
Retrieve any previously batch fetched member match the cache key.
|
SandBoxOperationOrigin |
getSandBoxOperationOrigin()
Retrieve the state established by
WorkflowStateManager.startOriginalSandBoxState(Long, SandBoxOperationOrigin, Long, String) |
SandBoxOperationType |
getSandBoxOperationType()
Retrieve the operation type established by
WorkflowStateManager.startRevertState(com.broadleafcommerce.enterprise.workflow.service.type.SandBoxOperationType) . |
static org.broadleafcommerce.common.sandbox.service.SandBoxService |
getSandBoxService() |
Map<String,Object> |
getSandBoxStateFetchCache()
Retrieve the state established by
WorkflowStateManager.startSandBoxStateFetchCache() |
byte[] |
getSerializedRollback() |
Boolean |
getVetoProductionUpdate() |
Boolean |
getVetoSandBoxUpdate() |
static WorkflowStateManager |
getWorkflowStateManager() |
Boolean |
isAddControlFlow() |
Boolean |
isConditionallyIgnoreFilterState()
Determine whether or not the flag has been set - generally used by components that need to determine whether or not to call
WorkflowStateManager.startIgnoreFiltersState() |
Boolean |
isEntityPersistActive()
Whether or not a
WorkflowSandBoxItem was promoted in this thread. |
Boolean |
isInhibitDeleteCascade() |
Boolean |
isProdAdminFilter()
Retrieve the state established by
#startProductionAdminFilterState() |
Boolean |
isPromotion()
Retrieve the state established by
WorkflowStateManager.startPromoteState() |
Boolean |
isReject()
Retrieve the state established by
WorkflowStateManager.startRejectState() |
Boolean |
isSync()
Retrieve the state established by
WorkflowStateManager.startSyncState() |
Boolean |
isWorkflowManagerControlFlow()
Whether or not the current request thread is part of a call to
WorkflowManager . |
List<TransactionBoundOperationPackage> |
removeTransactionBoundCloneLibraryMembers() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setEntityPersistSandBoxItem(Long sandBoxItem)
Set the primary key value of the
WorkflowSandBoxItem that was just
promoted on the thread. |
void |
setItemContainerOverride(WorkflowSandBoxItem container)
Sets a container item that all other created
WorkflowSandBoxItem s within the current thread should fall under |
void |
startAddState() |
void |
startAutoPromotionState()
Promotion activities performed after this call will ignore workflow steps and cause deployment to production for the change
to happen immediately.
|
void |
startCascadeWorkflowItem(Long cascadeWorkflowItemId) |
void |
startCausedBy(Long workflowSandBoxItemId)
For auto rejects, operations performed after this call are understood be have been prompted by this
WorkflowSandBoxItem |
void |
startConditionallyIgnoreFiltersState()
Intended to set a flag on the thread that another component in the control flow can utilize to determine whether or not
WorkflowStateManager.startIgnoreFiltersState()
should be called. |
void |
startConstrainFilterGroups(List<String> groupNames)
Any operations performed after this call will cause
FilterEnabler instances
whose name matches one of the groupNames to be available for enabling. |
void |
startCurrentPromoteItem(Long currentPromoteItemId) |
void |
startDontPersistEntityItemState()
Any admin operation performed after this call will not cause an
EntityItem to be persisted. |
void |
startEntityPersistState()
Establish the state in which the
WorkflowSandBoxItem id created
during a promotion can be stored for the request. |
void |
startHardDeleteState()
Any
EntityManager.remove(Object) operation for sandboxable entities performed after this call will be
hard deleted from the persistence store, rather than soft deleted. |
void |
startIgnoreArchiveForRevert()
Any entity archival operation that is part of a revert will be ignored after this call.
|
void |
startIgnoreFiltersState()
Any operations performed after this call will cause
FilterEnabler
instances in Enterprise to not enable their associated Hibernate filters. |
void |
startIgnoreUpdateInsertState()
Any entity insert will ignore automatic updates of sandboxable associations to the original id after this call
|
void |
startIncludeSandBoxInheritance(Boolean includeSandBoxInheritance)
Some operations performed after this call will utilize the includeSandBoxInheritance param for the boolean parameter
to
SandBox.getSandBoxIdsForUpwardHierarchy(boolean) . |
void |
startInhibitDeleteCascade() |
void |
startLoadedEntitiesState()
Any Hibernate load entity operation that occurs after this call will have the identity of the loaded entity stored for the
request if the loaded entity is different than the requested entity.
|
void |
startOriginalSandBoxState(Long originalSandBox,
SandBoxOperationOrigin origin,
Long originWorkflowItemId,
String msg)
Any operation performed after this call will be understood to have originated from this information.
|
void |
startProdAddedEntitiesState() |
void |
startPromoteState()
Any operation performed after this call will be understood to be part of a
PromoteWorkflowManager.promoteSandBoxItemChanges(Long, Long[], boolean, String, String, boolean) call. |
void |
startPropagationOriginalIdCache() |
void |
startRejectState()
Any operation performed after this call will be understood to be part of a
RejectWorkflowManager.rejectSandBoxItemChanges(Long[], String) call. |
void |
startReplayState(Long creationSandBoxId)
Any operation performed after this call will be understood to be part of a
AbstractWorkflowManager.replayChange(Long, Long, WorkflowSandBoxItem, boolean, boolean, boolean, String) call. |
void |
startReversePropertyValue()
Any
Property persistence operation performed after this call will
cause the value of the property to be set to the previously most recent property value for the same change from another sandbox, or to
the persistence package property original value if no other change is available. |
void |
startRevertState(SandBoxOperationType operationType)
Any operation performed after this call will be understood to be part of a
RevertWorkflowManager.revertSandBoxItem(com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem, com.broadleafcommerce.enterprise.workflow.service.type.SandBoxOperationType) call. |
void |
startRollbackState(byte[] serializedState,
String groupDescription,
String primaryKey) |
void |
startSandBoxStateFetchCache()
Any loaded entity (
com.broadleafcommerce.enterprise.workflow.persistence.event.listener.LoadWorker will be cached during fetch
requests after this call. |
void |
startSyncState()
Any operation performed after this call will be understood to be part of a
SyncWorkflowManager.syncChanges(Long, Long) } call. |
void |
startVetoProductionUpdate() |
void |
startVetoSandBoxUpdate() |
Boolean |
useSandBoxStateInProduction() |
protected com.broadleafcommerce.enterprise.common.extension.enterprise.WorkflowStateManagerExtensionManager extensionManager
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void startIgnoreUpdateInsertState()
WorkflowStateManager
startIgnoreUpdateInsertState
in interface WorkflowStateManager
public void endIgnoreUpdateInsertState()
WorkflowStateManager
endIgnoreUpdateInsertState
in interface WorkflowStateManager
public void startIgnoreFiltersState()
WorkflowStateManager
FilterEnabler
instances in Enterprise to not enable their associated Hibernate filters.startIgnoreFiltersState
in interface WorkflowStateManager
public void startConditionallyIgnoreFiltersState()
WorkflowStateManager
WorkflowStateManager.startIgnoreFiltersState()
should be called.startConditionallyIgnoreFiltersState
in interface WorkflowStateManager
public void endIgnoreFiltersState()
WorkflowStateManager
FilterEnabler
instances to resume normal operation.endIgnoreFiltersState
in interface WorkflowStateManager
public void startSandBoxStateFetchCache()
WorkflowStateManager
com.broadleafcommerce.enterprise.workflow.persistence.event.listener.LoadWorker
will be cached during fetch
requests after this call.startSandBoxStateFetchCache
in interface WorkflowStateManager
public void endSandBoxStateFetchCache()
WorkflowStateManager
com.broadleafcommerce.enterprise.workflow.persistence.event.listener.LoadWorker
will no longer be cached.endSandBoxStateFetchCache
in interface WorkflowStateManager
public void startPropagationOriginalIdCache()
startPropagationOriginalIdCache
in interface WorkflowStateManager
public void endPropagationOriginalIdCache()
endPropagationOriginalIdCache
in interface WorkflowStateManager
public void startIgnoreArchiveForRevert()
WorkflowStateManager
startIgnoreArchiveForRevert
in interface WorkflowStateManager
public void endIgnoreArchiveForRevert()
WorkflowStateManager
endIgnoreArchiveForRevert
in interface WorkflowStateManager
public void startInhibitDeleteCascade()
startInhibitDeleteCascade
in interface WorkflowStateManager
public void endInhibitDeleteCascade()
endInhibitDeleteCascade
in interface WorkflowStateManager
public void startVetoProductionUpdate()
startVetoProductionUpdate
in interface WorkflowStateManager
public void endVetoProductionUpdate()
endVetoProductionUpdate
in interface WorkflowStateManager
public void startVetoSandBoxUpdate()
startVetoSandBoxUpdate
in interface WorkflowStateManager
public void endVetoSandBoxUpdate()
endVetoSandBoxUpdate
in interface WorkflowStateManager
public void startCausedBy(Long workflowSandBoxItemId)
WorkflowStateManager
WorkflowSandBoxItem
startCausedBy
in interface WorkflowStateManager
workflowSandBoxItemId
- the primary key valuepublic void endCausedBy()
WorkflowStateManager
WorkflowSandBoxItem
endCausedBy
in interface WorkflowStateManager
public void startAutoPromotionState()
WorkflowStateManager
startAutoPromotionState
in interface WorkflowStateManager
public void endAutoPromotionState()
WorkflowStateManager
endAutoPromotionState
in interface WorkflowStateManager
public void startEntityPersistState()
WorkflowStateManager
WorkflowSandBoxItem
id created
during a promotion can be stored for the request. Defaults to -1L.startEntityPersistState
in interface WorkflowStateManager
public void endEntityPersistState()
WorkflowStateManager
WorkflowSandBoxItem
id is stored on the request.endEntityPersistState
in interface WorkflowStateManager
public void startConstrainFilterGroups(List<String> groupNames)
WorkflowStateManager
FilterEnabler
instances
whose name matches one of the groupNames to be available for enabling. Non-matches will be disabled.startConstrainFilterGroups
in interface WorkflowStateManager
groupNames
- the names of qualified FilterEnabler instancespublic void endConstrainFilterGroups()
WorkflowStateManager
FilterEnabler
instances based on groupNames.endConstrainFilterGroups
in interface WorkflowStateManager
public void startRejectState()
WorkflowStateManager
RejectWorkflowManager.rejectSandBoxItemChanges(Long[], String)
call.startRejectState
in interface WorkflowStateManager
public void endRejectState()
WorkflowStateManager
RejectWorkflowManager.rejectSandBoxItemChanges(Long[], String)
call.endRejectState
in interface WorkflowStateManager
public void startPromoteState()
WorkflowStateManager
PromoteWorkflowManager.promoteSandBoxItemChanges(Long, Long[], boolean, String, String, boolean)
call.startPromoteState
in interface WorkflowStateManager
public void startAddState()
startAddState
in interface WorkflowStateManager
public void endAddState()
endAddState
in interface WorkflowStateManager
public void endPromoteState()
WorkflowStateManager
PromoteWorkflowManager.promoteSandBoxItemChanges(Long, Long[], boolean, String, String, boolean)
call.endPromoteState
in interface WorkflowStateManager
public void startSyncState()
WorkflowStateManager
SyncWorkflowManager.syncChanges(Long, Long)
} call.startSyncState
in interface WorkflowStateManager
public void endSyncState()
WorkflowStateManager
SyncWorkflowManager.syncChanges(Long, Long)
call.endSyncState
in interface WorkflowStateManager
public void startReplayState(Long creationSandBoxId)
WorkflowStateManager
AbstractWorkflowManager.replayChange(Long, Long, WorkflowSandBoxItem, boolean, boolean, boolean, String)
call.startReplayState
in interface WorkflowStateManager
public void endReplayState()
WorkflowStateManager
AbstractWorkflowManager.replayChange(Long, Long, WorkflowSandBoxItem, boolean, boolean, boolean, String)
call.endReplayState
in interface WorkflowStateManager
public void startIncludeSandBoxInheritance(Boolean includeSandBoxInheritance)
WorkflowStateManager
SandBox.getSandBoxIdsForUpwardHierarchy(boolean)
.startIncludeSandBoxInheritance
in interface WorkflowStateManager
includeSandBoxInheritance
- whether or not all parent sandboxes, in addition to the current sandbox, should be usedpublic void endIncludeSandBoxInheritance()
WorkflowStateManager
SandBox.getSandBoxIdsForUpwardHierarchy(boolean)
.endIncludeSandBoxInheritance
in interface WorkflowStateManager
public void startOriginalSandBoxState(Long originalSandBox, SandBoxOperationOrigin origin, Long originWorkflowItemId, String msg)
WorkflowStateManager
startOriginalSandBoxState
in interface WorkflowStateManager
originalSandBox
- the sandbox that contained the original changeorigin
- the type of change operationoriginWorkflowItemId
- the original change itselfmsg
- the message with the original changepublic void endOriginalSandBoxState()
WorkflowStateManager
endOriginalSandBoxState
in interface WorkflowStateManager
public void startCurrentPromoteItem(Long currentPromoteItemId)
startCurrentPromoteItem
in interface WorkflowStateManager
public void endCurrentPromoteItem()
endCurrentPromoteItem
in interface WorkflowStateManager
public Long getCurrentPromoteItemId()
getCurrentPromoteItemId
in interface WorkflowStateManager
public void startCascadeWorkflowItem(Long cascadeWorkflowItemId)
startCascadeWorkflowItem
in interface WorkflowStateManager
public void endCascadeWorkflowItem()
endCascadeWorkflowItem
in interface WorkflowStateManager
public Long getCascadeWorkflowItemId()
getCascadeWorkflowItemId
in interface WorkflowStateManager
public void startLoadedEntitiesState()
WorkflowStateManager
startLoadedEntitiesState
in interface WorkflowStateManager
public void startProdAddedEntitiesState()
startProdAddedEntitiesState
in interface WorkflowStateManager
public void startRevertState(SandBoxOperationType operationType)
WorkflowStateManager
RevertWorkflowManager.revertSandBoxItem(com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem, com.broadleafcommerce.enterprise.workflow.service.type.SandBoxOperationType)
call.startRevertState
in interface WorkflowStateManager
operationType
- the type of revertpublic void startRollbackState(byte[] serializedState, String groupDescription, String primaryKey)
startRollbackState
in interface WorkflowStateManager
public void endRollbackState()
endRollbackState
in interface WorkflowStateManager
public void endRevertState()
WorkflowStateManager
RevertWorkflowManager.revertSandBoxItem(com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem, com.broadleafcommerce.enterprise.workflow.service.type.SandBoxOperationType)
call.endRevertState
in interface WorkflowStateManager
public void startDontPersistEntityItemState()
WorkflowStateManager
EntityItem
to be persisted.startDontPersistEntityItemState
in interface WorkflowStateManager
public void startReversePropertyValue()
WorkflowStateManager
Property
persistence operation performed after this call will
cause the value of the property to be set to the previously most recent property value for the same change from another sandbox, or to
the persistence package property original value if no other change is available. This is primarily used when
multiple users have made changes to the same property and one of those changes is being rejected from the approval sandbox.startReversePropertyValue
in interface WorkflowStateManager
public void endReversePropertyValue()
WorkflowStateManager
Property
persistence behavior where the
persistence package property value is used directly for the persisted value.endReversePropertyValue
in interface WorkflowStateManager
public void startHardDeleteState()
WorkflowStateManager
EntityManager.remove(Object)
operation for sandboxable entities performed after this call will be
hard deleted from the persistence store, rather than soft deleted.startHardDeleteState
in interface WorkflowStateManager
public void endHardDeleteState()
WorkflowStateManager
EntityManager.remove(Object)
operation for sandboxable entities will resume normal operation,
which is to soft delete (i.e. set sandBoxArchived state to true)endHardDeleteState
in interface WorkflowStateManager
public void endDontPersistEntityItemState()
WorkflowStateManager
EntityItem
persistence behavior.endDontPersistEntityItemState
in interface WorkflowStateManager
public SandBoxOperationType getSandBoxOperationType()
WorkflowStateManager
WorkflowStateManager.startRevertState(com.broadleafcommerce.enterprise.workflow.service.type.SandBoxOperationType)
.getSandBoxOperationType
in interface WorkflowStateManager
public Long getCausedBy()
WorkflowStateManager
WorkflowStateManager.startCausedBy(Long)
getCausedBy
in interface WorkflowStateManager
WorkflowSandBoxItem
that prompted an auto rejectpublic Boolean dontPersistEntityItem()
WorkflowStateManager
WorkflowStateManager.startDontPersistEntityItemState()
.dontPersistEntityItem
in interface WorkflowStateManager
public Boolean getAutoPromotion()
WorkflowStateManager
WorkflowStateManager.startAutoPromotionState()
getAutoPromotion
in interface WorkflowStateManager
public Boolean getHardDeleteState()
WorkflowStateManager
WorkflowStateManager.startHardDeleteState()
getHardDeleteState
in interface WorkflowStateManager
public Boolean getIgnoreArchiveForRevert()
WorkflowStateManager
WorkflowStateManager.startIgnoreArchiveForRevert()
getIgnoreArchiveForRevert
in interface WorkflowStateManager
public Boolean getIgnoreUpdateInsertState()
WorkflowStateManager
WorkflowStateManager.startIgnoreUpdateInsertState()
getIgnoreUpdateInsertState
in interface WorkflowStateManager
public Boolean getVetoProductionUpdate()
getVetoProductionUpdate
in interface WorkflowStateManager
public Boolean getVetoSandBoxUpdate()
getVetoSandBoxUpdate
in interface WorkflowStateManager
public Boolean getIgnoreCloning()
WorkflowStateManager
#startIgnoreCloning()
getIgnoreCloning
in interface WorkflowStateManager
public Boolean addRollback()
addRollback
in interface WorkflowStateManager
public byte[] getSerializedRollback()
getSerializedRollback
in interface WorkflowStateManager
public String getGroupDescriptionRollback()
getGroupDescriptionRollback
in interface WorkflowStateManager
public String getEntityPrimaryKeyRollback()
getEntityPrimaryKeyRollback
in interface WorkflowStateManager
public Boolean getIncludeSandboxInheritance()
WorkflowStateManager
WorkflowStateManager.startIncludeSandBoxInheritance(Boolean)
. Defaults to true.getIncludeSandboxInheritance
in interface WorkflowStateManager
public List<String> getLoadedEntities()
WorkflowStateManager
getLoadedEntities
in interface WorkflowStateManager
WorkflowStateManager.startLoadedEntitiesState()
public Map<String,String> getProdAddedEntities()
getProdAddedEntities
in interface WorkflowStateManager
public void addTransactionBoundCloneLibraryMember(WorkflowCloneLibrary item, TransactionBoundOperationType operationType)
addTransactionBoundCloneLibraryMember
in interface WorkflowStateManager
public void addSandBoxCollectionMemberBatchFetch(String key, Map<Serializable,List> members)
WorkflowStateManager
EnterpriseCollectionDao.batchFetchSandBoxCollectionMembers(List, SandBoxCollectionHelper)
for more information.addSandBoxCollectionMemberBatchFetch
in interface WorkflowStateManager
key
- the key describing the batch fetch collection query. See SandBoxCollectionHelper.getCacheKey()
.members
- the cache results of the batch fetchpublic Map<Serializable,List> getSandBoxCollectionMemberBatchFetch(String key)
WorkflowStateManager
SandBoxCollectionHelper.getCacheKey()
.getSandBoxCollectionMemberBatchFetch
in interface WorkflowStateManager
key
- the key describing the batch fetch collection query. See SandBoxCollectionHelper.getCacheKey()
.public void clearSandBoxCollectionMemberBatchFetch()
WorkflowStateManager
clearSandBoxCollectionMemberBatchFetch
in interface WorkflowStateManager
public List<TransactionBoundOperationPackage> removeTransactionBoundCloneLibraryMembers()
removeTransactionBoundCloneLibraryMembers
in interface WorkflowStateManager
public List<String> getConstrainedFilterGroups()
WorkflowStateManager
WorkflowStateManager.startConstrainFilterGroups(java.util.List)
getConstrainedFilterGroups
in interface WorkflowStateManager
FilterEnabler
names to restrict bypublic Boolean getReversePropertyValues()
WorkflowStateManager
WorkflowStateManager.startReversePropertyValue()
getReversePropertyValues
in interface WorkflowStateManager
Property
persistence values should
be altered for reject.public Boolean isPromotion()
WorkflowStateManager
WorkflowStateManager.startPromoteState()
isPromotion
in interface WorkflowStateManager
public Boolean isReject()
WorkflowStateManager
WorkflowStateManager.startRejectState()
isReject
in interface WorkflowStateManager
public Boolean isProdAdminFilter()
WorkflowStateManager
#startProductionAdminFilterState()
isProdAdminFilter
in interface WorkflowStateManager
public Boolean isSync()
WorkflowStateManager
WorkflowStateManager.startSyncState()
isSync
in interface WorkflowStateManager
public Long getCreationSandBox()
WorkflowStateManager
WorkflowStateManager.startReplayState(Long)
getCreationSandBox
in interface WorkflowStateManager
public Long getOriginalSandBox()
WorkflowStateManager
WorkflowStateManager.startOriginalSandBoxState(Long, SandBoxOperationOrigin, Long, String)
getOriginalSandBox
in interface WorkflowStateManager
public SandBoxOperationOrigin getSandBoxOperationOrigin()
WorkflowStateManager
WorkflowStateManager.startOriginalSandBoxState(Long, SandBoxOperationOrigin, Long, String)
getSandBoxOperationOrigin
in interface WorkflowStateManager
public Long getOriginalWorkflowItemId()
WorkflowStateManager
WorkflowStateManager.startOriginalSandBoxState(Long, SandBoxOperationOrigin, Long, String)
getOriginalWorkflowItemId
in interface WorkflowStateManager
public String getPromotionMessage()
WorkflowStateManager
WorkflowStateManager.startOriginalSandBoxState(Long, SandBoxOperationOrigin, Long, String)
getPromotionMessage
in interface WorkflowStateManager
public Boolean getIgnoreFilters()
WorkflowStateManager
WorkflowStateManager.startIgnoreFiltersState()
getIgnoreFilters
in interface WorkflowStateManager
FilterEnabler
instancespublic Boolean isWorkflowManagerControlFlow()
WorkflowStateManager
WorkflowManager
. This
includes reject, promote, sync and revert.isWorkflowManagerControlFlow
in interface WorkflowStateManager
public Boolean isConditionallyIgnoreFilterState()
WorkflowStateManager
WorkflowStateManager.startIgnoreFiltersState()
isConditionallyIgnoreFilterState
in interface WorkflowStateManager
public Boolean isAddControlFlow()
isAddControlFlow
in interface WorkflowStateManager
public Boolean isInhibitDeleteCascade()
isInhibitDeleteCascade
in interface WorkflowStateManager
public Long getEntityPersistSandBoxItem()
WorkflowStateManager
WorkflowSandBoxItem
promoted recently
in this request.getEntityPersistSandBoxItem
in interface WorkflowStateManager
public Map<String,Object> getSandBoxStateFetchCache()
WorkflowStateManager
WorkflowStateManager.startSandBoxStateFetchCache()
getSandBoxStateFetchCache
in interface WorkflowStateManager
public Map<String,Set<Long>> getPropagationOriginalIdCache()
getPropagationOriginalIdCache
in interface WorkflowStateManager
public Boolean isEntityPersistActive()
WorkflowStateManager
WorkflowSandBoxItem
was promoted in this thread.isEntityPersistActive
in interface WorkflowStateManager
public void setEntityPersistSandBoxItem(Long sandBoxItem)
WorkflowStateManager
WorkflowSandBoxItem
that was just
promoted on the thread.setEntityPersistSandBoxItem
in interface WorkflowStateManager
sandBoxItem
- the primary key of the promoted itempublic void setItemContainerOverride(WorkflowSandBoxItem container)
WorkflowStateManager
WorkflowSandBoxItem
s within the current thread should fall undersetItemContainerOverride
in interface WorkflowStateManager
public WorkflowSandBoxItem getItemContainerOverride()
getItemContainerOverride
in interface WorkflowStateManager
WorkflowSandBoxItem
s within the current thread should fall
under. All of the created items should have their WorkflowSandBoxItem.setContainer(WorkflowSandBoxItem)
set
to thispublic Boolean useSandBoxStateInProduction()
useSandBoxStateInProduction
in interface WorkflowStateManager
public static WorkflowStateManager getWorkflowStateManager()
public static org.broadleafcommerce.common.sandbox.service.SandBoxService getSandBoxService()
Copyright © 2019. All rights reserved.