@Repository(value="blPurgeSandboxWorkflowEntitiesDao") public class PurgeSandboxWorkflowEntitiesDaoImpl extends Object implements PurgeSandboxWorkflowEntitiesDao
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
| Constructor and Description |
|---|
PurgeSandboxWorkflowEntitiesDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
batchRemoveApprovals()
Removes all orphaned
ApprovalDetailss |
int |
batchRemoveDeployments()
Removes all orphaned
WorkflowDeployments |
int |
batchRemovePromotions()
Removes all orphaned
PromotionDetailss |
int |
batchRemoveWorkflowEvents()
Removes all orphaned
WorkflowEvents |
int |
batchRemoveWorkflowSandBoxEventItems(Set<Long> workflowIds)
Removes
WorkflowEventWorkflowItemXref where the item id is in the given set of longs |
int |
batchRemoveWorkflowSandBoxItems(Set<Long> workflowIds)
Removes the
WorkflowSandBoxItems for the given ids |
List<WorkflowSandBoxItem> |
readArchivedParentWorkflowSandBoxItems(Set<Long> itemsToIgnore,
Date expiryDate,
int maxResults,
boolean filterSiteOverrides)
Retrieves the
WorkflowSandBoxItems that are archived, are older than expiryDate, whose id isn't in itemsToIgnore, and doesn't have a WorkflowSandBoxItem that depend on them. |
WorkflowEvent |
readWorkflowEventByWorkflowSandBoxItem(WorkflowSandBoxItem item)
Returns the
WorkflowEvent, if it exists, for the given WorkflowSandBoxItem |
public List<WorkflowSandBoxItem> readArchivedParentWorkflowSandBoxItems(Set<Long> itemsToIgnore, Date expiryDate, int maxResults, boolean filterSiteOverrides)
PurgeSandboxWorkflowEntitiesDaoWorkflowSandBoxItems that are archived, are older than expiryDate, whose id isn't in itemsToIgnore, and doesn't have a WorkflowSandBoxItem that depend on them.
Additionally the filterSiteOverrides parameter dictates if we should return WorkflowSandBoxItems that are for a site override.readArchivedParentWorkflowSandBoxItems in interface PurgeSandboxWorkflowEntitiesDaoitemsToIgnore - A set of longs that indicate the WorkflowSandBoxItem ids that should not filtered out from the result setexpiryDate - The most recent Date of an archived WorkflowSandBoxItem that shoudl be returnedmaxResults - The maximum number of results that should be returnedfilterSiteOverrides - A boolean indicating if WorkflowSandBoxItem for site overrides should be returned. If true then they will filtered; else they will be included in the resultWorkflowSandBoxItems that meet the given criteriapublic WorkflowEvent readWorkflowEventByWorkflowSandBoxItem(WorkflowSandBoxItem item)
PurgeSandboxWorkflowEntitiesDaoWorkflowEvent, if it exists, for the given WorkflowSandBoxItemreadWorkflowEventByWorkflowSandBoxItem in interface PurgeSandboxWorkflowEntitiesDaoitem - The WorkflowSandBoxItem to find the WorkflowEvent forWorkflowEvent for the given WorkflowSandBoxItempublic int batchRemoveWorkflowSandBoxEventItems(Set<Long> workflowIds)
PurgeSandboxWorkflowEntitiesDaoWorkflowEventWorkflowItemXref where the item id is in the given set of longsbatchRemoveWorkflowSandBoxEventItems in interface PurgeSandboxWorkflowEntitiesDaoworkflowIds - The WorkflowSandBoxItem ids whose WorkflowEventWorkflowItemXrefs should be removed forpublic int batchRemoveWorkflowSandBoxItems(Set<Long> workflowIds)
PurgeSandboxWorkflowEntitiesDaoWorkflowSandBoxItems for the given idsbatchRemoveWorkflowSandBoxItems in interface PurgeSandboxWorkflowEntitiesDaoworkflowIds - The ids for the WorkflowSandBoxItems that should be removedpublic int batchRemoveWorkflowEvents()
PurgeSandboxWorkflowEntitiesDaoWorkflowEventsbatchRemoveWorkflowEvents in interface PurgeSandboxWorkflowEntitiesDaopublic int batchRemoveDeployments()
PurgeSandboxWorkflowEntitiesDaoWorkflowDeploymentsbatchRemoveDeployments in interface PurgeSandboxWorkflowEntitiesDaopublic int batchRemoveApprovals()
PurgeSandboxWorkflowEntitiesDaoApprovalDetailssbatchRemoveApprovals in interface PurgeSandboxWorkflowEntitiesDaopublic int batchRemovePromotions()
PurgeSandboxWorkflowEntitiesDaoPromotionDetailssbatchRemovePromotions in interface PurgeSandboxWorkflowEntitiesDaoCopyright © 2021. All rights reserved.