Class WorkflowStateManagerImpl
java.lang.Object
com.broadleafcommerce.enterprise.workflow.persistence.WorkflowStateManagerImpl
- All Implemented Interfaces:
WorkflowStateManager,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Service("blWorkflowStateManager")
public class WorkflowStateManagerImpl
extends Object
implements org.springframework.context.ApplicationContextAware, WorkflowStateManager
- Author:
- Jeff Fischer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.broadleafcommerce.enterprise.common.extension.enterprise.WorkflowStateManagerExtensionManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSandBoxCollectionMemberBatchFetch(String key, Map<Serializable, List> members) Add a list of batch fetch members to a thread local cache.voidaddTransactionBoundCloneLibraryMember(WorkflowCloneLibrary item, TransactionBoundOperationType operationType) voidRemove any previously cache batch fetch results from threadlocal.Retrieve the state established byWorkflowStateManager.startDontPersistEntityItemState().voidvoidPromotion activities after this call will resume normal workflow steps.voidvoidOperations performed after this call are no longer understood be have been prompted by thisWorkflowSandBoxItemvoidNo longer constrainFilterEnablerinstances based on groupNames.voidAny admin operation performed after this call resume normalEntityItempersistence behavior.voidEnd the state in which the promotedWorkflowSandBoxItemid is stored on the request.voidAnyEntityManager.remove(Object)operation for sandboxable entities will resume normal operation, which is to soft delete (i.e. set sandBoxArchived state to true)voidEntity archival operations that are part of a revert will resume normal operation.voidAny operations performed after this call will causeFilterEnablerinstances to resume normal operation.voidvoidEntity inserts will resume automatic updates of sandboxable associations to the original idvoidResume normal operation for including sandbox inheritance, which is to pass true toSandBox.getSandBoxIdsForUpwardHierarchy(boolean).voidvoidAny operation performed after this call will no longer be associated with originating information.voidAny operation performed after this call will no longer be understood to be part of aPromotionStrategy.promoteSandBoxItemChanges(Long, Long[], boolean, String, String, boolean)call.voidvoidAny operation performed after this call will no longer be understood to be part of aRejectionStrategy.rejectSandBoxItemChanges(Long[], String)call.voidAny operation performed after this call will no longer be understood to be part of aAbstractWorkflowManager.replayChange(Long, Long, WorkflowSandBoxItem, boolean, boolean, boolean, String)call.voidResume normalPropertypersistence behavior where the persistence package property value is used directly for the persisted value.voidAny operation performed after this call will no longer be understood to be part of aRevertWorkflowManager.revertSandBoxItem(com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem, com.broadleafcommerce.enterprise.workflow.service.type.SandBoxOperationType)call.voidvoidLoaded entities (com.broadleafcommerce.enterprise.workflow.persistence.event.listener.LoadWorkerwill no longer be cached.voidAny operation performed after this call will no longer be understood to be part of aSyncWorkflowManager.syncChanges(Long, Long)call.voidvoidRetrieve the state established byWorkflowStateManager.startAutoPromotionState()Retrieve the state established byWorkflowStateManager.startCausedBy(Long)Retrieve the state established byWorkflowStateManager.startConstrainFilterGroups(java.util.List)protected <T> TgetContextObject(String key, Class<?> T) Retrieve the state established byWorkflowStateManager.startReplayState(Long)Retrieve the id for theWorkflowSandBoxItempromoted recently in this request.Retrieve the state established byWorkflowStateManager.startHardDeleteState()Retrieve the state established byWorkflowStateManager.startIgnoreArchiveForRevert()Retrieve the state established by#startIgnoreCloning()Retrieve the state established byWorkflowStateManager.startIgnoreFiltersState()Retrieve the state established byWorkflowStateManager.startIgnoreUpdateInsertState()Retrieve the state established byWorkflowStateManager.startIncludeSandBoxInheritance(Boolean).Retrieve a list of sandbox entities that have been loaded in this request.Retrieve the state established byWorkflowStateManager.startOriginalSandBoxState(Long, SandBoxOperationOrigin, Long, String)Retrieve the state established byWorkflowStateManager.startOriginalSandBoxState(Long, SandBoxOperationOrigin, Long, String)Retrieve the state established byWorkflowStateManager.startOriginalSandBoxState(Long, SandBoxOperationOrigin, Long, String)Retrieve the state established byWorkflowStateManager.startReversePropertyValue()Retrieve any previously batch fetched member match the cache key.Retrieve the state established byWorkflowStateManager.startOriginalSandBoxState(Long, SandBoxOperationOrigin, Long, String)Retrieve the operation type established byWorkflowStateManager.startRevertState(com.broadleafcommerce.enterprise.workflow.service.type.SandBoxOperationType).static org.broadleafcommerce.common.sandbox.service.SandBoxServiceRetrieve the state established byWorkflowStateManager.startSandBoxStateFetchCache()byte[]static WorkflowStateManagerDetermine whether or not the flag has been set - generally used by components that need to determine whether or not to callWorkflowStateManager.startIgnoreFiltersState()Whether or not aWorkflowSandBoxItemwas promoted in this thread.Retrieve the state established by#startProductionAdminFilterState()Retrieve the state established byWorkflowStateManager.startPromoteState()isReject()Retrieve the state established byWorkflowStateManager.startRejectState()isSync()Retrieve the state established byWorkflowStateManager.startSyncState()Whether or not the current request thread is part of a call toWorkflowManager.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetEntityPersistSandBoxItem(Long sandBoxItem) Set the primary key value of theWorkflowSandBoxItemthat was just promoted on the thread.voidsetItemContainerOverride(WorkflowSandBoxItem container) Sets a container item that all other createdWorkflowSandBoxItems within the current thread should fall undervoidvoidPromotion activities performed after this call will ignore workflow steps and cause deployment to production for the change to happen immediately.voidstartCascadeWorkflowItem(Long cascadeWorkflowItemId) voidstartCausedBy(Long workflowSandBoxItemId) For auto rejects, operations performed after this call are understood be have been prompted by thisWorkflowSandBoxItemvoidIntended to set a flag on the thread that another component in the control flow can utilize to determine whether or notWorkflowStateManager.startIgnoreFiltersState()should be called.voidstartConstrainFilterGroups(List<String> groupNames) Any operations performed after this call will causeFilterEnablerinstances whose name matches one of the groupNames to be available for enabling.voidAny admin operation performed after this call will not cause anEntityItemto be persisted.voidEstablish the state in which theWorkflowSandBoxItemid created during a promotion can be stored for the request.voidAnyEntityManager.remove(Object)operation for sandboxable entities performed after this call will be hard deleted from the persistence store, rather than soft deleted.voidAny entity archival operation that is part of a revert will be ignored after this call.voidAny operations performed after this call will causeFilterEnablerinstances in Enterprise to not enable their associated Hibernate filters.voidvoidAny entity insert will ignore automatic updates of sandboxable associations to the original id after this callvoidvoidstartIncludeSandBoxInheritance(Boolean includeSandBoxInheritance) Some operations performed after this call will utilize the includeSandBoxInheritance param for the boolean parameter toSandBox.getSandBoxIdsForUpwardHierarchy(boolean).voidvoidAny 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.voidstartOriginalSandBoxState(Long originalSandBox, SandBoxOperationOrigin origin, Long originWorkflowItemId, String msg) Any operation performed after this call will be understood to have originated from this information.voidvoidAny operation performed after this call will be understood to be part of aPromotionStrategy.promoteSandBoxItemChanges(Long, Long[], boolean, String, String, boolean)call.voidvoidAny operation performed after this call will be understood to be part of aRejectionStrategy.rejectSandBoxItemChanges(Long[], String)call.voidstartReplayState(Long creationSandBoxId) Any operation performed after this call will be understood to be part of aAbstractWorkflowManager.replayChange(Long, Long, WorkflowSandBoxItem, boolean, boolean, boolean, String)call.voidAnyPropertypersistence 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.voidstartRevertState(SandBoxOperationType operationType) Any operation performed after this call will be understood to be part of aRevertWorkflowManager.revertSandBoxItem(com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem, com.broadleafcommerce.enterprise.workflow.service.type.SandBoxOperationType)call.voidstartRollbackState(byte[] serializedState, String groupDescription, String primaryKey) voidAny loaded entity (com.broadleafcommerce.enterprise.workflow.persistence.event.listener.LoadWorkerwill be cached during fetch requests after this call.voidAny operation performed after this call will be understood to be part of aSyncWorkflowManager.syncChanges(Long, Long)} call.voidvoid
-
Field Details
-
extensionManager
protected com.broadleafcommerce.enterprise.common.extension.enterprise.WorkflowStateManagerExtensionManager extensionManager
-
-
Constructor Details
-
WorkflowStateManagerImpl
public WorkflowStateManagerImpl()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
startIgnoreUpdateInsertState
public void startIgnoreUpdateInsertState()Description copied from interface:WorkflowStateManagerAny entity insert will ignore automatic updates of sandboxable associations to the original id after this call- Specified by:
startIgnoreUpdateInsertStatein interfaceWorkflowStateManager
-
startIgnoreUpdateInsertState
- Specified by:
startIgnoreUpdateInsertStatein interfaceWorkflowStateManager
-
endIgnoreUpdateInsertState
public void endIgnoreUpdateInsertState()Description copied from interface:WorkflowStateManagerEntity inserts will resume automatic updates of sandboxable associations to the original id- Specified by:
endIgnoreUpdateInsertStatein interfaceWorkflowStateManager
-
startIgnoreFiltersState
public void startIgnoreFiltersState()Description copied from interface:WorkflowStateManagerAny operations performed after this call will causeFilterEnablerinstances in Enterprise to not enable their associated Hibernate filters.- Specified by:
startIgnoreFiltersStatein interfaceWorkflowStateManager
-
startConditionallyIgnoreFiltersState
public void startConditionallyIgnoreFiltersState()Description copied from interface:WorkflowStateManagerIntended to set a flag on the thread that another component in the control flow can utilize to determine whether or notWorkflowStateManager.startIgnoreFiltersState()should be called.- Specified by:
startConditionallyIgnoreFiltersStatein interfaceWorkflowStateManager
-
endIgnoreFiltersState
public void endIgnoreFiltersState()Description copied from interface:WorkflowStateManagerAny operations performed after this call will causeFilterEnablerinstances to resume normal operation.- Specified by:
endIgnoreFiltersStatein interfaceWorkflowStateManager
-
startSandBoxStateFetchCache
public void startSandBoxStateFetchCache()Description copied from interface:WorkflowStateManagerAny loaded entity (com.broadleafcommerce.enterprise.workflow.persistence.event.listener.LoadWorkerwill be cached during fetch requests after this call.- Specified by:
startSandBoxStateFetchCachein interfaceWorkflowStateManager
-
endSandBoxStateFetchCache
public void endSandBoxStateFetchCache()Description copied from interface:WorkflowStateManagerLoaded entities (com.broadleafcommerce.enterprise.workflow.persistence.event.listener.LoadWorkerwill no longer be cached.- Specified by:
endSandBoxStateFetchCachein interfaceWorkflowStateManager
-
startPropagationOriginalIdCache
public void startPropagationOriginalIdCache()- Specified by:
startPropagationOriginalIdCachein interfaceWorkflowStateManager
-
endPropagationOriginalIdCache
public void endPropagationOriginalIdCache()- Specified by:
endPropagationOriginalIdCachein interfaceWorkflowStateManager
-
startIgnoreArchiveForRevert
public void startIgnoreArchiveForRevert()Description copied from interface:WorkflowStateManagerAny entity archival operation that is part of a revert will be ignored after this call.- Specified by:
startIgnoreArchiveForRevertin interfaceWorkflowStateManager
-
endIgnoreArchiveForRevert
public void endIgnoreArchiveForRevert()Description copied from interface:WorkflowStateManagerEntity archival operations that are part of a revert will resume normal operation.- Specified by:
endIgnoreArchiveForRevertin interfaceWorkflowStateManager
-
startInhibitDeleteCascade
public void startInhibitDeleteCascade()- Specified by:
startInhibitDeleteCascadein interfaceWorkflowStateManager
-
endInhibitDeleteCascade
public void endInhibitDeleteCascade()- Specified by:
endInhibitDeleteCascadein interfaceWorkflowStateManager
-
startVetoProductionUpdate
public void startVetoProductionUpdate()- Specified by:
startVetoProductionUpdatein interfaceWorkflowStateManager
-
endVetoProductionUpdate
public void endVetoProductionUpdate()- Specified by:
endVetoProductionUpdatein interfaceWorkflowStateManager
-
startVetoSandBoxUpdate
public void startVetoSandBoxUpdate()- Specified by:
startVetoSandBoxUpdatein interfaceWorkflowStateManager
-
endVetoSandBoxUpdate
public void endVetoSandBoxUpdate()- Specified by:
endVetoSandBoxUpdatein interfaceWorkflowStateManager
-
startCausedBy
Description copied from interface:WorkflowStateManagerFor auto rejects, operations performed after this call are understood be have been prompted by thisWorkflowSandBoxItem- Specified by:
startCausedByin interfaceWorkflowStateManager- Parameters:
workflowSandBoxItemId- the primary key value
-
endCausedBy
public void endCausedBy()Description copied from interface:WorkflowStateManagerOperations performed after this call are no longer understood be have been prompted by thisWorkflowSandBoxItem- Specified by:
endCausedByin interfaceWorkflowStateManager
-
startAutoPromotionState
public void startAutoPromotionState()Description copied from interface:WorkflowStateManagerPromotion activities performed after this call will ignore workflow steps and cause deployment to production for the change to happen immediately.- Specified by:
startAutoPromotionStatein interfaceWorkflowStateManager
-
endAutoPromotionState
public void endAutoPromotionState()Description copied from interface:WorkflowStateManagerPromotion activities after this call will resume normal workflow steps.- Specified by:
endAutoPromotionStatein interfaceWorkflowStateManager
-
startEntityPersistState
public void startEntityPersistState()Description copied from interface:WorkflowStateManagerEstablish the state in which theWorkflowSandBoxItemid created during a promotion can be stored for the request. Defaults to -1L.- Specified by:
startEntityPersistStatein interfaceWorkflowStateManager
-
endEntityPersistState
public void endEntityPersistState()Description copied from interface:WorkflowStateManagerEnd the state in which the promotedWorkflowSandBoxItemid is stored on the request.- Specified by:
endEntityPersistStatein interfaceWorkflowStateManager
-
startConstrainFilterGroups
Description copied from interface:WorkflowStateManagerAny operations performed after this call will causeFilterEnablerinstances whose name matches one of the groupNames to be available for enabling. Non-matches will be disabled.- Specified by:
startConstrainFilterGroupsin interfaceWorkflowStateManager- Parameters:
groupNames- the names of qualified FilterEnabler instances
-
endConstrainFilterGroups
public void endConstrainFilterGroups()Description copied from interface:WorkflowStateManagerNo longer constrainFilterEnablerinstances based on groupNames.- Specified by:
endConstrainFilterGroupsin interfaceWorkflowStateManager
-
startRejectState
public void startRejectState()Description copied from interface:WorkflowStateManagerAny operation performed after this call will be understood to be part of aRejectionStrategy.rejectSandBoxItemChanges(Long[], String)call.- Specified by:
startRejectStatein interfaceWorkflowStateManager
-
endRejectState
public void endRejectState()Description copied from interface:WorkflowStateManagerAny operation performed after this call will no longer be understood to be part of aRejectionStrategy.rejectSandBoxItemChanges(Long[], String)call.- Specified by:
endRejectStatein interfaceWorkflowStateManager
-
startPromoteState
public void startPromoteState()Description copied from interface:WorkflowStateManagerAny operation performed after this call will be understood to be part of aPromotionStrategy.promoteSandBoxItemChanges(Long, Long[], boolean, String, String, boolean)call.- Specified by:
startPromoteStatein interfaceWorkflowStateManager
-
startAddState
public void startAddState()- Specified by:
startAddStatein interfaceWorkflowStateManager
-
endAddState
public void endAddState()- Specified by:
endAddStatein interfaceWorkflowStateManager
-
endPromoteState
public void endPromoteState()Description copied from interface:WorkflowStateManagerAny operation performed after this call will no longer be understood to be part of aPromotionStrategy.promoteSandBoxItemChanges(Long, Long[], boolean, String, String, boolean)call.- Specified by:
endPromoteStatein interfaceWorkflowStateManager
-
startSyncState
public void startSyncState()Description copied from interface:WorkflowStateManagerAny operation performed after this call will be understood to be part of aSyncWorkflowManager.syncChanges(Long, Long)} call.- Specified by:
startSyncStatein interfaceWorkflowStateManager
-
endSyncState
public void endSyncState()Description copied from interface:WorkflowStateManagerAny operation performed after this call will no longer be understood to be part of aSyncWorkflowManager.syncChanges(Long, Long)call.- Specified by:
endSyncStatein interfaceWorkflowStateManager
-
startReplayState
Description copied from interface:WorkflowStateManagerAny operation performed after this call will be understood to be part of aAbstractWorkflowManager.replayChange(Long, Long, WorkflowSandBoxItem, boolean, boolean, boolean, String)call.- Specified by:
startReplayStatein interfaceWorkflowStateManager
-
endReplayState
public void endReplayState()Description copied from interface:WorkflowStateManagerAny operation performed after this call will no longer be understood to be part of aAbstractWorkflowManager.replayChange(Long, Long, WorkflowSandBoxItem, boolean, boolean, boolean, String)call.- Specified by:
endReplayStatein interfaceWorkflowStateManager
-
startIncludeSandBoxInheritance
Description copied from interface:WorkflowStateManagerSome operations performed after this call will utilize the includeSandBoxInheritance param for the boolean parameter toSandBox.getSandBoxIdsForUpwardHierarchy(boolean).- Specified by:
startIncludeSandBoxInheritancein interfaceWorkflowStateManager- Parameters:
includeSandBoxInheritance- whether or not all parent sandboxes, in addition to the current sandbox, should be used
-
endIncludeSandBoxInheritance
public void endIncludeSandBoxInheritance()Description copied from interface:WorkflowStateManagerResume normal operation for including sandbox inheritance, which is to pass true toSandBox.getSandBoxIdsForUpwardHierarchy(boolean).- Specified by:
endIncludeSandBoxInheritancein interfaceWorkflowStateManager
-
startOriginalSandBoxState
public void startOriginalSandBoxState(Long originalSandBox, SandBoxOperationOrigin origin, Long originWorkflowItemId, String msg) Description copied from interface:WorkflowStateManagerAny operation performed after this call will be understood to have originated from this information.- Specified by:
startOriginalSandBoxStatein interfaceWorkflowStateManager- Parameters:
originalSandBox- the sandbox that contained the original changeorigin- the type of change operationoriginWorkflowItemId- the original change itselfmsg- the message with the original change
-
endOriginalSandBoxState
public void endOriginalSandBoxState()Description copied from interface:WorkflowStateManagerAny operation performed after this call will no longer be associated with originating information.- Specified by:
endOriginalSandBoxStatein interfaceWorkflowStateManager
-
startCascadeWorkflowItem
- Specified by:
startCascadeWorkflowItemin interfaceWorkflowStateManager
-
endCascadeWorkflowItem
public void endCascadeWorkflowItem()- Specified by:
endCascadeWorkflowItemin interfaceWorkflowStateManager
-
getCascadeWorkflowItemId
- Specified by:
getCascadeWorkflowItemIdin interfaceWorkflowStateManager
-
startLoadedEntitiesState
public void startLoadedEntitiesState()Description copied from interface:WorkflowStateManagerAny 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. This can occur when a sandbox version of an entity exists for a requested production record.- Specified by:
startLoadedEntitiesStatein interfaceWorkflowStateManager
-
startProdAddedEntitiesState
public void startProdAddedEntitiesState()- Specified by:
startProdAddedEntitiesStatein interfaceWorkflowStateManager
-
startRevertState
Description copied from interface:WorkflowStateManagerAny operation performed after this call will be understood to be part of aRevertWorkflowManager.revertSandBoxItem(com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem, com.broadleafcommerce.enterprise.workflow.service.type.SandBoxOperationType)call.- Specified by:
startRevertStatein interfaceWorkflowStateManager- Parameters:
operationType- the type of revert
-
startRollbackState
- Specified by:
startRollbackStatein interfaceWorkflowStateManager
-
endRollbackState
public void endRollbackState()- Specified by:
endRollbackStatein interfaceWorkflowStateManager
-
endRevertState
public void endRevertState()Description copied from interface:WorkflowStateManagerAny operation performed after this call will no longer be understood to be part of aRevertWorkflowManager.revertSandBoxItem(com.broadleafcommerce.enterprise.workflow.domain.WorkflowSandBoxItem, com.broadleafcommerce.enterprise.workflow.service.type.SandBoxOperationType)call.- Specified by:
endRevertStatein interfaceWorkflowStateManager
-
startDontPersistEntityItemState
public void startDontPersistEntityItemState()Description copied from interface:WorkflowStateManagerAny admin operation performed after this call will not cause anEntityItemto be persisted.- Specified by:
startDontPersistEntityItemStatein interfaceWorkflowStateManager
-
startReversePropertyValue
public void startReversePropertyValue()Description copied from interface:WorkflowStateManagerAnyPropertypersistence 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.- Specified by:
startReversePropertyValuein interfaceWorkflowStateManager
-
endReversePropertyValue
public void endReversePropertyValue()Description copied from interface:WorkflowStateManagerResume normalPropertypersistence behavior where the persistence package property value is used directly for the persisted value.- Specified by:
endReversePropertyValuein interfaceWorkflowStateManager
-
startHardDeleteState
public void startHardDeleteState()Description copied from interface:WorkflowStateManagerAnyEntityManager.remove(Object)operation for sandboxable entities performed after this call will be hard deleted from the persistence store, rather than soft deleted.- Specified by:
startHardDeleteStatein interfaceWorkflowStateManager
-
endHardDeleteState
public void endHardDeleteState()Description copied from interface:WorkflowStateManagerAnyEntityManager.remove(Object)operation for sandboxable entities will resume normal operation, which is to soft delete (i.e. set sandBoxArchived state to true)- Specified by:
endHardDeleteStatein interfaceWorkflowStateManager
-
endDontPersistEntityItemState
public void endDontPersistEntityItemState()Description copied from interface:WorkflowStateManagerAny admin operation performed after this call resume normalEntityItempersistence behavior.- Specified by:
endDontPersistEntityItemStatein interfaceWorkflowStateManager
-
getContextObject
-
getSandBoxOperationType
Description copied from interface:WorkflowStateManagerRetrieve the operation type established byWorkflowStateManager.startRevertState(com.broadleafcommerce.enterprise.workflow.service.type.SandBoxOperationType).- Specified by:
getSandBoxOperationTypein interfaceWorkflowStateManager- Returns:
- the operation type
-
getCausedBy
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startCausedBy(Long)- Specified by:
getCausedByin interfaceWorkflowStateManager- Returns:
- the id for the
WorkflowSandBoxItemthat prompted an auto reject
-
dontPersistEntityItem
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startDontPersistEntityItemState().- Specified by:
dontPersistEntityItemin interfaceWorkflowStateManager- Returns:
- entity item persistence state
-
getAutoPromotion
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startAutoPromotionState()- Specified by:
getAutoPromotionin interfaceWorkflowStateManager- Returns:
- whether or not changes should be immediately deployed to production without workflow steps
-
getHardDeleteState
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startHardDeleteState()- Specified by:
getHardDeleteStatein interfaceWorkflowStateManager- Returns:
- whether or not entities should be hard deleted from the persistence store
-
getIgnoreArchiveForRevert
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startIgnoreArchiveForRevert()- Specified by:
getIgnoreArchiveForRevertin interfaceWorkflowStateManager- Returns:
- whether or not to archive an entity on revert
-
getIgnoreUpdateInsertState
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startIgnoreUpdateInsertState()- Specified by:
getIgnoreUpdateInsertStatein interfaceWorkflowStateManager- Returns:
- whether or not to automatically update sandboxable associations to the original id during an insert
-
getIgnoreUpdateInsertStateClass
- Specified by:
getIgnoreUpdateInsertStateClassin interfaceWorkflowStateManager
-
getVetoProductionUpdate
- Specified by:
getVetoProductionUpdatein interfaceWorkflowStateManager
-
getVetoSandBoxUpdate
- Specified by:
getVetoSandBoxUpdatein interfaceWorkflowStateManager
-
getIgnoreCloning
Description copied from interface:WorkflowStateManagerRetrieve the state established by#startIgnoreCloning()- Specified by:
getIgnoreCloningin interfaceWorkflowStateManager- Returns:
- whether or not to allow clone generation as the result of a persistence operation
-
addRollback
- Specified by:
addRollbackin interfaceWorkflowStateManager- Returns:
-
getSerializedRollback
public byte[] getSerializedRollback()- Specified by:
getSerializedRollbackin interfaceWorkflowStateManager- Returns:
-
getGroupDescriptionRollback
- Specified by:
getGroupDescriptionRollbackin interfaceWorkflowStateManager- Returns:
-
getEntityPrimaryKeyRollback
- Specified by:
getEntityPrimaryKeyRollbackin interfaceWorkflowStateManager- Returns:
-
getIncludeSandboxInheritance
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startIncludeSandBoxInheritance(Boolean). Defaults to true.- Specified by:
getIncludeSandboxInheritancein interfaceWorkflowStateManager- Returns:
- whether or not all parent sandboxes, in addition to the current sandbox, should be used
-
getLoadedEntities
Description copied from interface:WorkflowStateManagerRetrieve a list of sandbox entities that have been loaded in this request.- Specified by:
getLoadedEntitiesin interfaceWorkflowStateManager- Returns:
- sandbox entities that have been loaded in this request.
- See Also:
-
getProdAddedEntities
- Specified by:
getProdAddedEntitiesin interfaceWorkflowStateManager
-
addTransactionBoundCloneLibraryMember
public void addTransactionBoundCloneLibraryMember(WorkflowCloneLibrary item, TransactionBoundOperationType operationType) - Specified by:
addTransactionBoundCloneLibraryMemberin interfaceWorkflowStateManager
-
addSandBoxCollectionMemberBatchFetch
Description copied from interface:WorkflowStateManagerAdd a list of batch fetch members to a thread local cache. SeeEnterpriseCollectionDao.batchFetchSandBoxCollectionMembers(List, SandBoxCollectionHelper)for more information.- Specified by:
addSandBoxCollectionMemberBatchFetchin interfaceWorkflowStateManager- Parameters:
key- the key describing the batch fetch collection query. SeeSandBoxCollectionHelper.getCacheKey().members- the cache results of the batch fetch
-
getSandBoxCollectionMemberBatchFetch
Description copied from interface:WorkflowStateManagerRetrieve any previously batch fetched member match the cache key. SeeSandBoxCollectionHelper.getCacheKey().- Specified by:
getSandBoxCollectionMemberBatchFetchin interfaceWorkflowStateManager- Parameters:
key- the key describing the batch fetch collection query. SeeSandBoxCollectionHelper.getCacheKey().- Returns:
- the cached results of the batch fetch
-
clearSandBoxCollectionMemberBatchFetch
public void clearSandBoxCollectionMemberBatchFetch()Description copied from interface:WorkflowStateManagerRemove any previously cache batch fetch results from threadlocal.- Specified by:
clearSandBoxCollectionMemberBatchFetchin interfaceWorkflowStateManager
-
removeTransactionBoundCloneLibraryMembers
- Specified by:
removeTransactionBoundCloneLibraryMembersin interfaceWorkflowStateManager
-
getConstrainedFilterGroups
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startConstrainFilterGroups(java.util.List)- Specified by:
getConstrainedFilterGroupsin interfaceWorkflowStateManager- Returns:
- the list of
FilterEnablernames to restrict by
-
getReversePropertyValues
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startReversePropertyValue()- Specified by:
getReversePropertyValuesin interfaceWorkflowStateManager- Returns:
- whether or not
Propertypersistence values should be altered for reject.
-
isPromotion
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startPromoteState()- Specified by:
isPromotionin interfaceWorkflowStateManager- Returns:
- whether or not this is a promotion
-
isReject
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startRejectState()- Specified by:
isRejectin interfaceWorkflowStateManager- Returns:
- is this a reject
-
isProdAdminFilter
Description copied from interface:WorkflowStateManagerRetrieve the state established by#startProductionAdminFilterState()- Specified by:
isProdAdminFilterin interfaceWorkflowStateManager- Returns:
- whether or not to filter for production records, rather than sandbox records
-
isSync
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startSyncState()- Specified by:
isSyncin interfaceWorkflowStateManager- Returns:
- is this a sync
-
getCreationSandBox
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startReplayState(Long)- Specified by:
getCreationSandBoxin interfaceWorkflowStateManager- Returns:
- sandbox id
-
getOriginalSandBox
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startOriginalSandBoxState(Long, SandBoxOperationOrigin, Long, String)- Specified by:
getOriginalSandBoxin interfaceWorkflowStateManager- Returns:
- the sandbox id
-
getSandBoxOperationOrigin
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startOriginalSandBoxState(Long, SandBoxOperationOrigin, Long, String)- Specified by:
getSandBoxOperationOriginin interfaceWorkflowStateManager- Returns:
- the origin
-
getOriginalWorkflowItemId
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startOriginalSandBoxState(Long, SandBoxOperationOrigin, Long, String)- Specified by:
getOriginalWorkflowItemIdin interfaceWorkflowStateManager- Returns:
- the primary key value
-
getPromotionMessage
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startOriginalSandBoxState(Long, SandBoxOperationOrigin, Long, String)- Specified by:
getPromotionMessagein interfaceWorkflowStateManager- Returns:
- the message
-
getIgnoreFilters
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startIgnoreFiltersState()- Specified by:
getIgnoreFiltersin interfaceWorkflowStateManager- Returns:
- whether or not to ignore
FilterEnablerinstances
-
isWorkflowManagerControlFlow
Description copied from interface:WorkflowStateManagerWhether or not the current request thread is part of a call toWorkflowManager. This includes reject, promote, sync and revert.- Specified by:
isWorkflowManagerControlFlowin interfaceWorkflowStateManager- Returns:
- whether or not the current thread is a WorkflowManager call.
-
isConditionallyIgnoreFilterState
Description copied from interface:WorkflowStateManagerDetermine whether or not the flag has been set - generally used by components that need to determine whether or not to callWorkflowStateManager.startIgnoreFiltersState()- Specified by:
isConditionallyIgnoreFilterStatein interfaceWorkflowStateManager- Returns:
- whether or not the flag has been set
-
isAddControlFlow
- Specified by:
isAddControlFlowin interfaceWorkflowStateManager
-
isInhibitDeleteCascade
- Specified by:
isInhibitDeleteCascadein interfaceWorkflowStateManager
-
getEntityPersistSandBoxItem
Description copied from interface:WorkflowStateManagerRetrieve the id for theWorkflowSandBoxItempromoted recently in this request.- Specified by:
getEntityPersistSandBoxItemin interfaceWorkflowStateManager- Returns:
- the primary key value of the promoted item
-
getSandBoxStateFetchCache
Description copied from interface:WorkflowStateManagerRetrieve the state established byWorkflowStateManager.startSandBoxStateFetchCache()- Specified by:
getSandBoxStateFetchCachein interfaceWorkflowStateManager- Returns:
- the cache of sandboxable entities that have been loaded during an admin fetch operation
-
getPropagationOriginalIdCache
- Specified by:
getPropagationOriginalIdCachein interfaceWorkflowStateManager
-
isEntityPersistActive
Description copied from interface:WorkflowStateManagerWhether or not aWorkflowSandBoxItemwas promoted in this thread.- Specified by:
isEntityPersistActivein interfaceWorkflowStateManager- Returns:
- whether or not there was a promotion
-
setEntityPersistSandBoxItem
Description copied from interface:WorkflowStateManagerSet the primary key value of theWorkflowSandBoxItemthat was just promoted on the thread.- Specified by:
setEntityPersistSandBoxItemin interfaceWorkflowStateManager- Parameters:
sandBoxItem- the primary key of the promoted item
-
setItemContainerOverride
Description copied from interface:WorkflowStateManagerSets a container item that all other createdWorkflowSandBoxItems within the current thread should fall under- Specified by:
setItemContainerOverridein interfaceWorkflowStateManager
-
getItemContainerOverride
- Specified by:
getItemContainerOverridein interfaceWorkflowStateManager- Returns:
- the container item that all other created
WorkflowSandBoxItems within the current thread should fall under. All of the created items should have theirWorkflowSandBoxItem.setContainer(WorkflowSandBoxItem)set to this
-
startIgnorePendingDeploymentsOnEntitySave
public void startIgnorePendingDeploymentsOnEntitySave()- Specified by:
startIgnorePendingDeploymentsOnEntitySavein interfaceWorkflowStateManager
-
endIgnorePendingDeploymentsOnEntitySave
public void endIgnorePendingDeploymentsOnEntitySave()- Specified by:
endIgnorePendingDeploymentsOnEntitySavein interfaceWorkflowStateManager
-
getIgnorePendingDeploymentsOnEntitySave
- Specified by:
getIgnorePendingDeploymentsOnEntitySavein interfaceWorkflowStateManager
-
useSandBoxStateInProduction
- Specified by:
useSandBoxStateInProductionin interfaceWorkflowStateManager
-
getWorkflowStateManager
-
getSandBoxService
public static org.broadleafcommerce.common.sandbox.service.SandBoxService getSandBoxService()
-