@Service(value="blVersionManager") public class VersionManagerImpl extends Object implements VersionManager
VersionManager| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.common.sandbox.service.SandBoxService |
sandBoxService |
protected WorkflowSandBoxItemService |
sbItemService |
protected VersionDao |
versionDao |
protected EnterpriseWorkflowLogger |
workflowLogger |
protected WorkflowStateManager |
workflowStateManager |
| Constructor and Description |
|---|
VersionManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
handlePromote(Long targetSandBoxId,
String groupDescription,
Long version,
Long sandBoxId)
Update the version for a
WorkflowSandBoxItem resulting from a promotion |
void |
handleReject(Long mySandBoxId,
String groupDescription,
Long originalSandBox)
Update the version for a
WorkflowSandBoxItem resulting from a reject |
void |
handleSyncChanges(Long mySandBoxId,
Long parentSandBox,
String groupDescription)
Update the version for a
WorkflowSandBoxItem resulting from a sync |
boolean |
isSandBoxInSyncWithParent(Long parentSandBox,
Long mySandBox,
String groupName,
Long inheritedVersion)
Detect whether or not the current user context is behind in version from the next promotion sandbox.
|
protected VersionDao versionDao
protected WorkflowSandBoxItemService sbItemService
protected org.broadleafcommerce.common.sandbox.service.SandBoxService sandBoxService
protected WorkflowStateManager workflowStateManager
protected EnterpriseWorkflowLogger workflowLogger
public void handlePromote(Long targetSandBoxId, String groupDescription, Long version, Long sandBoxId)
VersionManagerWorkflowSandBoxItem resulting from a promotionhandlePromote in interface VersionManagertargetSandBoxId - the sandbox the change was promoted togroupDescription - the description for the group (this includes the entity name and id) WorkflowSandBoxItem.getGroupDescription()version - the current version of the promoted WorkflowSandBoxItemsandBoxId - the sandbox for the promoted WorkflowSandBoxItempublic void handleSyncChanges(Long mySandBoxId, Long parentSandBox, String groupDescription)
VersionManagerWorkflowSandBoxItem resulting from a synchandleSyncChanges in interface VersionManagermySandBoxId - the sandbox requesting the syncparentSandBox - the sandbox from which the sync is derived - presumably advanced beyond my sandboxgroupDescription - the description for the group (this includes the entity name and id) WorkflowSandBoxItem.getGroupDescription()public void handleReject(Long mySandBoxId, String groupDescription, Long originalSandBox)
VersionManagerWorkflowSandBoxItem resulting from a rejecthandleReject in interface VersionManagermySandBoxId - the current version of the WorkflowSandBoxItemgroupDescription - the description for the group (this includes the entity name and id) WorkflowSandBoxItem.getGroupDescription()originalSandBox - the version from which the WorkflowSandBoxItem originally came. WorkflowSandBoxItem.getOriginalSandBoxId()public boolean isSandBoxInSyncWithParent(Long parentSandBox, Long mySandBox, String groupName, Long inheritedVersion)
VersionManagerisSandBoxInSyncWithParent in interface VersionManagerparentSandBox - the next promotion sandboxmySandBox - the current promotion sandboxgroupName - the description for the group (this includes the entity name and id) WorkflowSandBoxItem.getGroupDescription()inheritedVersion - the version that my sandbox changes were most recently synced to, if at all (can be null). WorkflowSandBoxItem.getInheritedVersion()Copyright © 2021. All rights reserved.