@Repository(value="blWorkflowSandBoxItemDao") public class WorkflowSandBoxItemDaoImpl extends Object implements WorkflowSandBoxItemDao
UpdateExecutor,
WorkflowSandBoxItemDao| Modifier and Type | Field and Description |
|---|---|
static String |
BC_REVERT_SCHEDULED_EVENTS |
static String |
BC_REVERT_SCHEDULED_ITEMS |
static String |
BC_UPDATE_ARCHIVE_EMPTY_EVENTS |
static String |
BC_UPDATE_ARCHIVE_STALE_EVENTS |
static String |
BC_UPDATE_CLEAR_ITEMS |
static String |
BC_UPDATE_ORIGINAL_VERSION |
static String |
BC_UPDATE_PROMOTION_MARKER_ITEMS |
static String |
BC_UPDATE_RESET_ITEMS_PROMOTION |
static String |
BC_UPDATE_SCHEDULED_EVENTS |
static String |
BC_UPDATE_SCHEDULED_ITEMS |
static String |
BC_UPDATE_TARGET_VERSION |
protected javax.persistence.EntityManager |
em |
protected com.broadleafcommerce.enterprise.common.extension.enterprise.WorkflowSandBoxItemDaoExtensionManager |
extensionManager |
protected com.broadleafcommerce.enterprise.common.extension.enterprise.WorkflowSandBoxItemDaoQueryExtensionManager |
queryExtensionManager |
protected com.broadleafcommerce.jobsevents.service.DatabaseSystemEventNode |
systemEventNode |
protected org.springframework.orm.jpa.JpaTransactionManager |
transactionManager |
protected VersionDao |
versionDao |
protected EnterpriseWorkflowLogger |
workflowLogger |
protected com.broadleafcommerce.enterprise.common.extension.enterprise.AbstractWorkflowManagerExtensionManager |
workflowManagerExtensionManager |
protected WorkflowStateManager |
workflowStateManager |
| Constructor and Description |
|---|
WorkflowSandBoxItemDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
WorkflowSandBoxItem |
addWorkflowSandBoxItem(Long sandBox,
Long originalSandBox,
Long creationSandBox,
Long parentSandBox,
SandBoxOperationType operationType,
String description,
String groupDescription,
Long temporaryId,
Long originalId,
String itemName,
SandBoxOperationOrigin operationOrigin,
String msg,
Long originalWorkflowItemId) |
int |
archiveAllEmptyEvents() |
int |
archiveAllEmptyProgressEventsByPromotionMarker()
Archive any inprogress WorkflowEvents whose promotionMarker related WorkflowSandBoxItems are all archived and who
does not have any completed promotion WorkflowSandBoxItem associated.
|
int |
archiveEmptyEventIfNecessary(Long eventId)
Archive any events that have no associated
WorkflowSandBoxItem instances |
int |
archiveEmptyEventWithStatus(Long eventId) |
int |
archiveEvents(List<Long> eventIds)
Updates the archived flag for the given
WorkflowEvents to be Y. |
int |
archiveStaleEventsIfNecessary(Long eventId,
Long itemId) |
int |
clearItems(List<Long> sandBoxItemIds)
Remove the
WorkflowSandBoxItem.getPromotionMarker() value
for the list of sandBoxItemIds. |
void |
delete(WorkflowSandBoxItem item) |
List<Long> |
filterWorkflowItemsByClass(Long[] workflowItemIds,
String className)
Returns a list of workflowSandBoxItem IDs that are a subset of the given workflowItemIds that
have an entity class matching the given className
|
List<Long> |
getIdsByPromotionMarker(Long promotionMarker) |
boolean |
isDeploymentRetryable(long deploymentId)
Detect whether or not a deployment can be retried via the admin UI.
|
boolean |
isEventInProgress(List<Long> eventId) |
boolean |
lockExecution(String key)
Attempt to perform an optimistic lock on the key.
|
WorkflowSandBoxItem |
merge(WorkflowSandBoxItem workflowSandBoxItem)
Saves the given WorkflowSandBoxItem
|
int |
resetItemsForPromotion(List<Long> sandBoxItemIds,
Long eventId)
Update the
WorkflowSandBoxItem.getPromotionMarker() value
with the eventId for the list of sandBoxItemIds. |
List<Long> |
retrieveAllContainersByCeilingTypeAndId(String ceiling,
Long id)
Retrieve all container item ids for a given ceiling entity and original id
|
List<Long> |
retrieveAllContainersByCeilingTypeAndId(String ceiling,
String itemId)
Retrieve all container item ids for a given ceiling entity and original id
|
List<Long> |
retrieveAllContainersByCeilingTypeAndId(String ceiling,
String itemId,
boolean includeArchived) |
List<WorkflowSandBoxItem> |
retrieveAllNonContainerSandboxItemsForEntityId(Long entityId,
String className,
Boolean includeArchived,
Long siteId)
Retrieves all WorkflowSandBoxItem associated with container instances targeting that id in production
|
Map<Long,String> |
retrieveAuthorNamesForWorkflowItems(Set<Long> workflowItemIds) |
List<WorkflowSandBoxItem> |
retrieveChildItemsForContainerItems(List<Long> containerIds,
Long sandBoxId)
Based on a list of
WorkflowSandBoxItem ids that are containers
(containers are WorkflowSandBoxItem instances that have
child items), retrieve all the associated child items. |
List<Long> |
retrieveContainerSandboxItemsForPromotion(Long sandboxId,
String origin)
Returns a list of Ids of workflowSandBoxItems that are associated to the given SandBox and SandBox origin
that do not have an associated
WorkflowSandBoxItem.getPromotionMarker()
which would signify that it has been promoted or has an associated failed promotion. |
List<EarlyAbortedPromotionCandidate> |
retrieveEarlyAbortedInProgressApprovals()
Retrieve in progress approvals that appear to have failed before being completely setup.
|
List<EarlyAbortedPromotionCandidate> |
retrieveEarlyAbortedInProgressPromotions()
Retrieve in progress promotions that appear to have failed before being completely setup.
|
List<ChildItem> |
retrieveForwardDependentItems(List<Long> sandBoxItemids,
Long sandBoxId)
Retrieve dependent items
|
List<String> |
retrieveGroupNames(Long sandBox)
Find all the unique change group names that currently exist in the sandbox
|
List<Long> |
retrieveItemIdsForEvent(Long eventId) |
List<Long> |
retrieveItemIdsForEventIncludingArchived(Long eventId) |
List<Long> |
retrieveItemIdsForEventIncludingArchivedByPromotionMarker(Long eventId) |
List<Long> |
retrieveItemIdsForEvents(Long[] eventIds) |
List<WorkflowSandBoxItem> |
retrieveItemsByEntityItemAndChangeType(Long entityItemId,
org.broadleafcommerce.openadmin.server.service.type.ChangeType changeType)
Look for items for a specific change and change type
|
WorkflowSandBoxItem |
retrieveMostRecentItemBasedOnOriginal(List<Long> ids) |
List<ChildItem> |
retrieveReverseDependentItems(List<Long> sandBoxItemids,
Long sandBoxId)
Retrieve dependent items
|
List<Long> |
retrieveSandBoxItemIdsForSandbox(Long sandBox,
boolean containerOnly)
Retrieve
WorkflowSandBoxItem ids in the sandbox |
List<Long> |
retrieveSandBoxItemIdsWithEventsForSandbox(Long sandBox)
Retrieve
WorkflowSandBoxItem ids in the sandbox that have a non-archived WorkflowEvent |
List<Long> |
retrieveSandboxItemsBySandboxOrigin(Long sandboxId,
String origin)
Returns a list of Ids of workflowSandBoxItems that are associated to the given SandBox and SandBox origin
|
List<WorkflowSandBoxItem> |
retrieveSandboxItemsForEntityId(Long entityId,
String className,
Boolean includeArchived,
Long siteId)
Retrieves container instances targeting that id in production
|
WorkflowSandBoxItem |
retrieveWorkflowItemById(Long id) |
WorkflowSandBoxItem |
retrieveWorkflowItemById(Long id,
boolean useCache) |
List<WorkflowSandBoxItem> |
retrieveWorkflowItemByIds(List<Long> ids,
boolean ascending) |
List<WorkflowSandBoxItem> |
retrieveWorkflowItemByOriginalEntityId(Long id) |
List<WorkflowSandBoxItem> |
retrieveWorkflowItemByOriginalItemIds(List<Long> ids) |
List<WorkflowSandBoxItem> |
retrieveWorkflowItemsByGroupName(Long sandBoxId,
Long originalSandBoxId,
String groupName,
boolean isContainer)
Retrieve by sandbox and change group name
|
List<WorkflowSandBoxItem> |
retrieveWorkflowItemsByGroupName(Long sandBoxId,
String groupName)
Retrieve by sandbox and change group name
|
List<WorkflowSandBoxItem> |
retrieveWorkflowItemsByGroupName(Long sandBoxId,
String groupName,
boolean isContainer)
Retrieve by sandbox and change group name
|
Long |
retrieveWorkflowItemsCountByGroupName(Long sandBoxId,
String groupName,
Long causedBy)
Retrieve the count by sandbox and change group name
|
Long |
retrieveWorkflowItemsCountByGroupNameAndType(Long sandBoxId,
String groupName,
SandBoxOperationType type,
Long causedBy)
Retrieve the items by sandbox and change group name
|
List<WorkflowSandBoxItem> |
retrieveWorkflowItemsForSync(Long sandBoxId,
String groupName,
Long inheritedVersion)
Retrieve items that need to be synced
|
WorkflowSandBoxItem |
retrieveWorkflowSandBoxItemByCeilingTypeAndItemId(Long currentSandBoxId,
String ceil,
Long itemId)
Retrieve instances based on sandbox, ceiling entity, and entity id
|
WorkflowSandBoxItem |
retrieveWorkflowSandBoxItemByEntityItemId(Long entityItemId)
Find by the associated
EntityItem |
WorkflowSandBoxItem |
retrieveWorkflowSandBoxItemBySandboxAndItemId(List<Long> sandBoxIds,
Long currentSandBoxId,
Long itemId,
boolean includeArchived)
Retrieve instances based on sandbox and entity item id
|
WorkflowSandBoxItem |
retrieveWorkflowSandBoxItemBySandboxAndItemId(Long currentSandBoxId,
Long itemId)
Retrieve instances based on sandbox and entity item id
|
List<WorkflowSandBoxItem> |
retrieveWorkflowSandBoxItemsBySandBoxId(Long sandBoxId)
Returns a list of workflowSandBoxItems that are associated to the given SandBox
|
List<WorkflowSandBoxItem> |
retrieveWorkflowSandBoxItemsBySandBoxId(Long sandBoxId,
boolean containerOnly) |
WorkflowSandBoxItem |
save(WorkflowSandBoxItem item) |
int |
setPromotionMarker(List<Long> itemIds,
Long eventId) |
int |
setScheduledEvents(Long eventId,
Date scheduledDate) |
int |
setScheduledItems(List<Long> itemIds,
Date scheduledDate)
Set the deployment date for one or more items
|
void |
unlockExecution(String key)
Attempt to perform an optimistic unlock on the key.
|
void |
unSetScheduledEvents(Long eventId) |
void |
unSetScheduledItems(List<Long> itemIds) |
void |
updateItemVersionAndInheritedVersionByGroup(Long sandBoxId,
String groupName,
Long version,
Long inheritedVersion) |
void |
updateItemVersionByGroup(Long sandBoxId,
String groupName,
Long version) |
public static final String BC_UPDATE_SCHEDULED_ITEMS
public static final String BC_UPDATE_TARGET_VERSION
public static final String BC_UPDATE_ORIGINAL_VERSION
public static final String BC_REVERT_SCHEDULED_ITEMS
public static final String BC_UPDATE_SCHEDULED_EVENTS
public static final String BC_REVERT_SCHEDULED_EVENTS
public static final String BC_UPDATE_ARCHIVE_EMPTY_EVENTS
public static final String BC_UPDATE_ARCHIVE_STALE_EVENTS
public static final String BC_UPDATE_RESET_ITEMS_PROMOTION
public static final String BC_UPDATE_CLEAR_ITEMS
public static final String BC_UPDATE_PROMOTION_MARKER_ITEMS
protected javax.persistence.EntityManager em
protected VersionDao versionDao
protected WorkflowStateManager workflowStateManager
protected com.broadleafcommerce.enterprise.common.extension.enterprise.WorkflowSandBoxItemDaoExtensionManager extensionManager
protected com.broadleafcommerce.enterprise.common.extension.enterprise.WorkflowSandBoxItemDaoQueryExtensionManager queryExtensionManager
protected com.broadleafcommerce.jobsevents.service.DatabaseSystemEventNode systemEventNode
protected org.springframework.orm.jpa.JpaTransactionManager transactionManager
protected EnterpriseWorkflowLogger workflowLogger
protected com.broadleafcommerce.enterprise.common.extension.enterprise.AbstractWorkflowManagerExtensionManager workflowManagerExtensionManager
public WorkflowSandBoxItem retrieveWorkflowItemById(Long id)
retrieveWorkflowItemById in interface WorkflowSandBoxItemDaopublic WorkflowSandBoxItem retrieveWorkflowItemById(Long id, boolean useCache)
retrieveWorkflowItemById in interface WorkflowSandBoxItemDaopublic List<Long> filterWorkflowItemsByClass(Long[] workflowItemIds, String className)
WorkflowSandBoxItemDaofilterWorkflowItemsByClass in interface WorkflowSandBoxItemDaopublic List<WorkflowSandBoxItem> retrieveWorkflowSandBoxItemsBySandBoxId(Long sandBoxId)
WorkflowSandBoxItemDaoretrieveWorkflowSandBoxItemsBySandBoxId in interface WorkflowSandBoxItemDaopublic List<WorkflowSandBoxItem> retrieveWorkflowSandBoxItemsBySandBoxId(Long sandBoxId, boolean containerOnly)
retrieveWorkflowSandBoxItemsBySandBoxId in interface WorkflowSandBoxItemDaopublic WorkflowSandBoxItem merge(WorkflowSandBoxItem workflowSandBoxItem)
WorkflowSandBoxItemDaomerge in interface WorkflowSandBoxItemDaopublic List<WorkflowSandBoxItem> retrieveSandboxItemsForEntityId(Long entityId, String className, Boolean includeArchived, Long siteId)
WorkflowSandBoxItemDaoretrieveSandboxItemsForEntityId in interface WorkflowSandBoxItemDaositeId - @returnpublic List<WorkflowSandBoxItem> retrieveAllNonContainerSandboxItemsForEntityId(Long entityId, String className, Boolean includeArchived, Long siteId)
WorkflowSandBoxItemDaoretrieveAllNonContainerSandboxItemsForEntityId in interface WorkflowSandBoxItemDaositeId - @returnpublic Map<Long,String> retrieveAuthorNamesForWorkflowItems(Set<Long> workflowItemIds)
retrieveAuthorNamesForWorkflowItems in interface WorkflowSandBoxItemDaopublic List<WorkflowSandBoxItem> retrieveWorkflowItemByIds(List<Long> ids, boolean ascending)
retrieveWorkflowItemByIds in interface WorkflowSandBoxItemDaopublic List<WorkflowSandBoxItem> retrieveWorkflowItemByOriginalItemIds(List<Long> ids)
retrieveWorkflowItemByOriginalItemIds in interface WorkflowSandBoxItemDaopublic List<WorkflowSandBoxItem> retrieveWorkflowItemByOriginalEntityId(Long id)
retrieveWorkflowItemByOriginalEntityId in interface WorkflowSandBoxItemDaopublic WorkflowSandBoxItem retrieveMostRecentItemBasedOnOriginal(List<Long> ids)
retrieveMostRecentItemBasedOnOriginal in interface WorkflowSandBoxItemDaopublic List<Long> retrieveSandBoxItemIdsForSandbox(Long sandBox, boolean containerOnly)
WorkflowSandBoxItemDaoWorkflowSandBoxItem ids in the sandboxretrieveSandBoxItemIdsForSandbox in interface WorkflowSandBoxItemDaosandBox - the sandbox to search incontainerOnly - whether or not to only include container items WorkflowSandBoxItem.getContainer()public List<Long> retrieveSandBoxItemIdsWithEventsForSandbox(Long sandBox)
WorkflowSandBoxItemDaoWorkflowSandBoxItem ids in the sandbox that have a non-archived WorkflowEventretrieveSandBoxItemIdsWithEventsForSandbox in interface WorkflowSandBoxItemDaosandBox - the sandbox to search inpublic List<String> retrieveGroupNames(Long sandBox)
WorkflowSandBoxItemDaoretrieveGroupNames in interface WorkflowSandBoxItemDaosandBox - the sandbox to search inpublic List<WorkflowSandBoxItem> retrieveWorkflowItemsByGroupName(Long sandBoxId, String groupName)
WorkflowSandBoxItemDaoretrieveWorkflowItemsByGroupName in interface WorkflowSandBoxItemDaosandBoxId - the sandbox to search ingroupName - the change group namepublic List<WorkflowSandBoxItem> retrieveWorkflowItemsByGroupName(Long sandBoxId, Long originalSandBoxId, String groupName, boolean isContainer)
WorkflowSandBoxItemDaoretrieveWorkflowItemsByGroupName in interface WorkflowSandBoxItemDaosandBoxId - the sandbox to search inoriginalSandBoxId - the original sandbox from which this item was promoted (null for user sandbox items)groupName - the change group nameisContainer - whether or not to search for items that are containers WorkflowSandBoxItem.getContainer()public List<WorkflowSandBoxItem> retrieveWorkflowItemsByGroupName(Long sandBoxId, String groupName, boolean isContainer)
WorkflowSandBoxItemDaoretrieveWorkflowItemsByGroupName in interface WorkflowSandBoxItemDaosandBoxId - the sandbox to search ingroupName - the change group nameisContainer - whether or not to search for items that are containers WorkflowSandBoxItem.getContainer()public Long retrieveWorkflowItemsCountByGroupNameAndType(Long sandBoxId, String groupName, SandBoxOperationType type, Long causedBy)
WorkflowSandBoxItemDaoretrieveWorkflowItemsCountByGroupNameAndType in interface WorkflowSandBoxItemDaosandBoxId - the sandbox to search ingroupName - the change group nametype - the operation performed (i.e. add, update, etc...)causedBy - filter out results that were generated as a result of this WorkflowSandboxItem (optional, can be null)WorkflowSandBoxItem instancespublic Long retrieveWorkflowItemsCountByGroupName(Long sandBoxId, String groupName, Long causedBy)
WorkflowSandBoxItemDaoretrieveWorkflowItemsCountByGroupName in interface WorkflowSandBoxItemDaosandBoxId - the sandbox to search ingroupName - the change group namecausedBy - filter out results that were generated as a result of this WorkflowSandboxItem (optional, can be null)WorkflowSandBoxItem instancespublic List<WorkflowSandBoxItem> retrieveWorkflowItemsForSync(Long sandBoxId, String groupName, Long inheritedVersion)
WorkflowSandBoxItemDaoretrieveWorkflowItemsForSync in interface WorkflowSandBoxItemDaosandBoxId - the sandbox to search ingroupName - the change group nameinheritedVersion - any items whose version is greater than this are candidatespublic int archiveEmptyEventIfNecessary(Long eventId)
WorkflowSandBoxItemDaoWorkflowSandBoxItem instancesarchiveEmptyEventIfNecessary in interface WorkflowSandBoxItemDaoeventId - the event to checkpublic int archiveEmptyEventWithStatus(Long eventId)
archiveEmptyEventWithStatus in interface WorkflowSandBoxItemDaopublic int archiveAllEmptyEvents()
archiveAllEmptyEvents in interface WorkflowSandBoxItemDaopublic int archiveEvents(List<Long> eventIds)
WorkflowSandBoxItemDaoWorkflowEvents to be Y.archiveEvents in interface WorkflowSandBoxItemDaoeventIds - the WorkflowEvents to updatepublic int archiveAllEmptyProgressEventsByPromotionMarker()
WorkflowSandBoxItemDaoarchiveAllEmptyProgressEventsByPromotionMarker in interface WorkflowSandBoxItemDaopublic int archiveStaleEventsIfNecessary(Long eventId, Long itemId)
archiveStaleEventsIfNecessary in interface WorkflowSandBoxItemDaopublic List<Long> retrieveItemIdsForEvent(Long eventId)
retrieveItemIdsForEvent in interface WorkflowSandBoxItemDaopublic List<Long> retrieveItemIdsForEventIncludingArchived(Long eventId)
retrieveItemIdsForEventIncludingArchived in interface WorkflowSandBoxItemDaopublic List<Long> retrieveItemIdsForEventIncludingArchivedByPromotionMarker(Long eventId)
retrieveItemIdsForEventIncludingArchivedByPromotionMarker in interface WorkflowSandBoxItemDaopublic List<Long> retrieveItemIdsForEvents(Long[] eventIds)
retrieveItemIdsForEvents in interface WorkflowSandBoxItemDaopublic WorkflowSandBoxItem addWorkflowSandBoxItem(Long sandBox, Long originalSandBox, Long creationSandBox, Long parentSandBox, SandBoxOperationType operationType, String description, String groupDescription, Long temporaryId, Long originalId, String itemName, SandBoxOperationOrigin operationOrigin, String msg, Long originalWorkflowItemId)
addWorkflowSandBoxItem in interface WorkflowSandBoxItemDaopublic WorkflowSandBoxItem retrieveWorkflowSandBoxItemBySandboxAndItemId(Long currentSandBoxId, Long itemId)
WorkflowSandBoxItemDaoretrieveWorkflowSandBoxItemBySandboxAndItemId in interface WorkflowSandBoxItemDaocurrentSandBoxId - the current sandboxitemId - the entity item id EntityItem.getId()WorkflowSandBoxItem instancepublic WorkflowSandBoxItem retrieveWorkflowSandBoxItemByCeilingTypeAndItemId(Long currentSandBoxId, String ceil, Long itemId)
WorkflowSandBoxItemDaoretrieveWorkflowSandBoxItemByCeilingTypeAndItemId in interface WorkflowSandBoxItemDaoWorkflowSandBoxItem instancepublic WorkflowSandBoxItem retrieveWorkflowSandBoxItemBySandboxAndItemId(List<Long> sandBoxIds, Long currentSandBoxId, Long itemId, boolean includeArchived)
WorkflowSandBoxItemDaoretrieveWorkflowSandBoxItemBySandboxAndItemId in interface WorkflowSandBoxItemDaosandBoxIds - the sandboxes to search incurrentSandBoxId - the current sandboxitemId - the entity item id EntityItem.getId()includeArchived - whether or not to include archived WorkflowSandBoxItem instancesWorkflowSandBoxItem instancepublic List<Long> retrieveAllContainersByCeilingTypeAndId(String ceiling, Long id)
WorkflowSandBoxItemDaoretrieveAllContainersByCeilingTypeAndId in interface WorkflowSandBoxItemDaopublic List<Long> retrieveAllContainersByCeilingTypeAndId(String ceiling, String itemId)
WorkflowSandBoxItemDaoretrieveAllContainersByCeilingTypeAndId in interface WorkflowSandBoxItemDaopublic List<Long> retrieveAllContainersByCeilingTypeAndId(String ceiling, String itemId, boolean includeArchived)
retrieveAllContainersByCeilingTypeAndId in interface WorkflowSandBoxItemDaopublic WorkflowSandBoxItem retrieveWorkflowSandBoxItemByEntityItemId(Long entityItemId)
WorkflowSandBoxItemDaoEntityItemretrieveWorkflowSandBoxItemByEntityItemId in interface WorkflowSandBoxItemDaoentityItemId - the associated entity item id to search bypublic List<WorkflowSandBoxItem> retrieveChildItemsForContainerItems(List<Long> containerIds, Long sandBoxId)
WorkflowSandBoxItemDaoWorkflowSandBoxItem ids that are containers
(containers are WorkflowSandBoxItem instances that have
child items), retrieve all the associated child items.retrieveChildItemsForContainerItems in interface WorkflowSandBoxItemDaocontainerIds - the ids for WorkflowSandBoxItem instances that are containerssandBoxId - the sandbox to search inWorkflowSandBoxItem instances that are childrenpublic List<ChildItem> retrieveForwardDependentItems(List<Long> sandBoxItemids, Long sandBoxId)
WorkflowSandBoxItemDaoretrieveForwardDependentItems in interface WorkflowSandBoxItemDaocom.broadleafcommerce.enterprise.workflow.admin.service.behavior.DependencyWorkflowManager#getForwardDependentItems(Long[])public List<ChildItem> retrieveReverseDependentItems(List<Long> sandBoxItemids, Long sandBoxId)
WorkflowSandBoxItemDaoretrieveReverseDependentItems in interface WorkflowSandBoxItemDaocom.broadleafcommerce.enterprise.workflow.admin.service.behavior.DependencyWorkflowManager#getReverseDependentItems(Long[])public void delete(WorkflowSandBoxItem item)
delete in interface WorkflowSandBoxItemDaopublic WorkflowSandBoxItem save(WorkflowSandBoxItem item)
save in interface WorkflowSandBoxItemDaopublic void updateItemVersionAndInheritedVersionByGroup(Long sandBoxId, String groupName, Long version, Long inheritedVersion)
updateItemVersionAndInheritedVersionByGroup in interface WorkflowSandBoxItemDaopublic int setScheduledItems(List<Long> itemIds, Date scheduledDate)
WorkflowSandBoxItemDaosetScheduledItems in interface WorkflowSandBoxItemDaoitemIds - the WorkflowSandBoxItem records to updatescheduledDate - the deployment datepublic int setPromotionMarker(List<Long> itemIds, Long eventId)
setPromotionMarker in interface WorkflowSandBoxItemDaopublic List<Long> getIdsByPromotionMarker(Long promotionMarker)
getIdsByPromotionMarker in interface WorkflowSandBoxItemDaopublic void unSetScheduledItems(List<Long> itemIds)
unSetScheduledItems in interface WorkflowSandBoxItemDaopublic int setScheduledEvents(Long eventId, Date scheduledDate)
setScheduledEvents in interface WorkflowSandBoxItemDaopublic boolean isEventInProgress(List<Long> eventId)
isEventInProgress in interface WorkflowSandBoxItemDaopublic void unSetScheduledEvents(Long eventId)
unSetScheduledEvents in interface WorkflowSandBoxItemDaopublic void updateItemVersionByGroup(Long sandBoxId, String groupName, Long version)
updateItemVersionByGroup in interface WorkflowSandBoxItemDaopublic List<EarlyAbortedPromotionCandidate> retrieveEarlyAbortedInProgressPromotions()
WorkflowSandBoxItemDaoretrieveEarlyAbortedInProgressPromotions in interface WorkflowSandBoxItemDaopublic List<EarlyAbortedPromotionCandidate> retrieveEarlyAbortedInProgressApprovals()
WorkflowSandBoxItemDaoretrieveEarlyAbortedInProgressApprovals in interface WorkflowSandBoxItemDaopublic List<WorkflowSandBoxItem> retrieveItemsByEntityItemAndChangeType(Long entityItemId, org.broadleafcommerce.openadmin.server.service.type.ChangeType changeType)
WorkflowSandBoxItemDaoretrieveItemsByEntityItemAndChangeType in interface WorkflowSandBoxItemDaoentityItemId - the change record (WorkflowSandBoxItem.getEntityItemId()changeType - add, update, deletepublic List<Long> retrieveSandboxItemsBySandboxOrigin(Long sandboxId, String origin)
WorkflowSandBoxItemDaoretrieveSandboxItemsBySandboxOrigin in interface WorkflowSandBoxItemDaopublic List<Long> retrieveContainerSandboxItemsForPromotion(Long sandboxId, String origin)
WorkflowSandBoxItemDaoWorkflowSandBoxItem.getPromotionMarker()
which would signify that it has been promoted or has an associated failed promotion.retrieveContainerSandboxItemsForPromotion in interface WorkflowSandBoxItemDaopublic boolean isDeploymentRetryable(long deploymentId)
WorkflowSandBoxItemDaoWorkflowEventSetupStatus.PROMOTION_PROCESSING_RETRY_CAPABLE for one or more of the associated WorkflowEvent
instances. See WorkflowEvent.getSetupStatus().isDeploymentRetryable in interface WorkflowSandBoxItemDaopublic boolean lockExecution(String key)
WorkflowSandBoxItemDaoExecutionLockUtillockExecution in interface WorkflowSandBoxItemDaokey - the key to lock onpublic void unlockExecution(String key)
WorkflowSandBoxItemDaoExecutionLockUtilunlockExecution in interface WorkflowSandBoxItemDaokey - the key to unlockpublic int resetItemsForPromotion(List<Long> sandBoxItemIds, Long eventId)
WorkflowSandBoxItemDaoWorkflowSandBoxItem.getPromotionMarker() value
with the eventId for the list of sandBoxItemIds.resetItemsForPromotion in interface WorkflowSandBoxItemDaopublic int clearItems(List<Long> sandBoxItemIds)
WorkflowSandBoxItemDaoWorkflowSandBoxItem.getPromotionMarker() value
for the list of sandBoxItemIds.clearItems in interface WorkflowSandBoxItemDaoCopyright © 2019. All rights reserved.