@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
ApprovalDetails s |
int |
batchRemoveDeployments()
Removes all orphaned
WorkflowDeployment s |
int |
batchRemovePromotions()
Removes all orphaned
PromotionDetails s |
int |
batchRemoveWorkflowEvents()
Removes all orphaned
WorkflowEvent s |
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
WorkflowSandBoxItem s for the given ids |
List<WorkflowSandBoxItem> |
readArchivedParentWorkflowSandBoxItems(Set<Long> itemsToIgnore,
Date expiryDate,
int maxResults,
boolean filterSiteOverrides)
Retrieves the
WorkflowSandBoxItem s 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)
PurgeSandboxWorkflowEntitiesDao
WorkflowSandBoxItem
s 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 WorkflowSandBoxItem
s that are for a site override.readArchivedParentWorkflowSandBoxItems
in interface PurgeSandboxWorkflowEntitiesDao
itemsToIgnore
- 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 resultWorkflowSandBoxItem
s that meet the given criteriapublic WorkflowEvent readWorkflowEventByWorkflowSandBoxItem(WorkflowSandBoxItem item)
PurgeSandboxWorkflowEntitiesDao
WorkflowEvent
, if it exists, for the given WorkflowSandBoxItem
readWorkflowEventByWorkflowSandBoxItem
in interface PurgeSandboxWorkflowEntitiesDao
item
- The WorkflowSandBoxItem
to find the WorkflowEvent
forWorkflowEvent
for the given WorkflowSandBoxItem
public int batchRemoveWorkflowSandBoxEventItems(Set<Long> workflowIds)
PurgeSandboxWorkflowEntitiesDao
WorkflowEventWorkflowItemXref
where the item id is in the given set of longsbatchRemoveWorkflowSandBoxEventItems
in interface PurgeSandboxWorkflowEntitiesDao
workflowIds
- The WorkflowSandBoxItem
ids whose WorkflowEventWorkflowItemXref
s should be removed forpublic int batchRemoveWorkflowSandBoxItems(Set<Long> workflowIds)
PurgeSandboxWorkflowEntitiesDao
WorkflowSandBoxItem
s for the given idsbatchRemoveWorkflowSandBoxItems
in interface PurgeSandboxWorkflowEntitiesDao
workflowIds
- The ids for the WorkflowSandBoxItem
s that should be removedpublic int batchRemoveWorkflowEvents()
PurgeSandboxWorkflowEntitiesDao
WorkflowEvent
sbatchRemoveWorkflowEvents
in interface PurgeSandboxWorkflowEntitiesDao
public int batchRemoveDeployments()
PurgeSandboxWorkflowEntitiesDao
WorkflowDeployment
sbatchRemoveDeployments
in interface PurgeSandboxWorkflowEntitiesDao
public int batchRemoveApprovals()
PurgeSandboxWorkflowEntitiesDao
ApprovalDetails
sbatchRemoveApprovals
in interface PurgeSandboxWorkflowEntitiesDao
public int batchRemovePromotions()
PurgeSandboxWorkflowEntitiesDao
PromotionDetails
sbatchRemovePromotions
in interface PurgeSandboxWorkflowEntitiesDao
Copyright © 2021. All rights reserved.