public interface WorkflowEventDao
WorkflowEvent
s and WorkflowDeployment
s.Modifier and Type | Method and Description |
---|---|
int |
completeEvents(List<Long> sandBoxItemIds)
Based on the list of
WorkflowSandBoxItem ids, find all
associated WorkflowEvent instances that have no un-completed
WorkflowSandBoxItem instances and set those events to completed status. |
void |
delete(WorkflowEvent event)
Deletes the specified WorkflowEvent from the database
|
void |
detach(WorkflowDeployment deployment)
Detaches the given WorkflowDeployment instance from the entity manager.
|
void |
finishDeployment(Long deploymentId)
Set the
StatusTiming#getDateFinished() on WorkflowDeployment . |
WorkflowEvent |
merge(WorkflowEvent event)
Saves the given WorkflowEvent
|
WorkflowDeployment |
persist(WorkflowDeployment deployment)
Saves the given WorkflowDeployment
|
WorkflowEvent |
persist(WorkflowEvent event)
Saves the given WorkflowEvent
|
List<Long> |
readAllDeployInProgressIdsForSandBox(Long sandBoxId)
Reads the ids corresponding to WorkflowEvents that are in the specified sanbox
and are in the process of deploying
|
List<WorkflowEvent> |
readAllForSandBox(Long sandBoxId)
Reads all WorkflowEvents that are currently associated with the given sandbox
|
List<WorkflowDeployment> |
readAllFutureDeployments()
Reads a list of WorkflowDeployments that are set to deploy at a future time.
|
List<Long> |
readAllIdsForSandBox(Long sandBoxId)
Reads the ids corresponding to WorkflowEvents that are in the specified sandbox.
|
List<Long> |
readAllNotDeployedIdsForSandBox(Long sandBoxId)
Reads the ids corresponding to WorkflowEvents that are in the specified sandbox
and are not yet deployed.
|
WorkflowEvent |
readById(Long id)
Reads a given WorkflowEvent by its internal id
|
List<WorkflowEvent> |
readByIds(List<Long> ids)
Reads several WorkflowEvents by the given internal ids
|
List<Long> |
readBySandBoxItems(List<Long> sandBoxItemIds)
Reads the WorkflowEvents ids that are associated with the given
WorkflowSandBoxItem ids |
WorkflowDeployment |
readDeploymentById(Long id)
Reads a WorkflowDeployment instance that corresponds to the given id
|
WorkflowDeployment |
readDeploymentByJob(Long jobId)
Reads a WorkflowDeployment instance that corresponds to the given job id
|
List<WorkflowDeployment> |
readDeploymentsByEvents(List<Long> events)
Reads a list of WorkflowDeployments that are associated to the given list of WorkflowEvent ids.
|
List<WorkflowEvent> |
readEntitiesBySandBoxItems(List<Long> sandBoxItemIds)
Reads the WorkflowEvents that are associated with the given
WorkflowSandBoxItem ids |
List<Long> |
readEventIdsByDeployment(Long deploymentId)
Based on the id value from a
WorkflowDeployment , find all
associated WorkflowEvent.getId() values. |
List<Long> |
readUnscheduledEventIdsByApprovalStatus(Long sandboxId,
boolean isApproved)
Finds all
WorkflowEvent s associated by WorkflowEventImpl.sandBox
and that are not deployed or scheduled for deployment |
List<Long> |
readUnscheduledEventIdsByCriticalAndApprovalStatus(Long sandboxId,
boolean isCritical,
boolean isApproved)
Finds all
WorkflowEvent s associated by WorkflowEventImpl.sandBox and
WorkflowEventImpl.isCritical and that are not deployed or scheduled for deployment |
WorkflowEvent |
refresh(WorkflowEvent event)
Reloads the given WorkflowEvent with the latest version from the database.
|
void |
removeDeployment(WorkflowDeployment deployment)
Deletes the specified WorkflowDeployment from the database
|
int |
resetEventsForApproval(List<Long> sandBoxItemIds)
Based on the list of
WorkflowSandBoxItem ids, find all
associated WorkflowEvent instances and reset the status
information for an WorkflowEvent that
has already been promoted and is about to be approved. |
void |
startDeployment(Long deploymentId)
Set the
StatusTiming#getDateStarted() on WorkflowDeployment . |
void |
updateApprovalStatus(Long eventId)
Marks the given WorkflowEvent id as Approved but not scheduled.
|
void |
updateEventDeployment(Long eventId,
WorkflowDeployment deployment)
Associates the given WorkflowEvent id to the given WorkflowDeployment.
|
void |
updateEventSetupStatus(List<Long> eventIds,
int status)
Change the setup status for one or more
WorkflowEvent instances. |
void |
updateEventSetupStatus(List<Long> eventIds,
int status,
SandBoxActionType actionType,
String message) |
WorkflowEvent persist(WorkflowEvent event)
event
- WorkflowEvent
WorkflowEvent readById(Long id)
id
- List<WorkflowEvent> readByIds(List<Long> ids)
ids
- List<WorkflowEvent> readAllForSandBox(Long sandBoxId)
sandBoxId
- void delete(WorkflowEvent event)
event
- List<Long> readBySandBoxItems(List<Long> sandBoxItemIds)
WorkflowSandBoxItem
idssandBoxItemIds
- List<WorkflowEvent> readEntitiesBySandBoxItems(List<Long> sandBoxItemIds)
WorkflowSandBoxItem
idssandBoxItemIds
- List<Long> readAllIdsForSandBox(Long sandBoxId)
sandBoxId
- WorkflowEvent refresh(WorkflowEvent event)
event
- List<Long> readAllNotDeployedIdsForSandBox(Long sandBoxId)
sandBoxId
- List<Long> readAllDeployInProgressIdsForSandBox(Long sandBoxId)
sandBoxId
- WorkflowDeployment persist(WorkflowDeployment deployment)
deployment
- void updateApprovalStatus(Long eventId)
eventId
- void updateEventDeployment(Long eventId, WorkflowDeployment deployment)
eventId
- deployment
- void updateEventSetupStatus(List<Long> eventIds, int status)
WorkflowEvent
instances.eventIds
- the primary key values for the WorkflowEvent instances to updatestatus
- arbitrary status - known values defined in WorkflowEventSetupStatus
void updateEventSetupStatus(List<Long> eventIds, int status, SandBoxActionType actionType, String message)
WorkflowDeployment readDeploymentByJob(Long jobId)
jobId
- WorkflowDeployment readDeploymentById(Long id)
id
- void startDeployment(Long deploymentId)
StatusTiming#getDateStarted()
on WorkflowDeployment
. Currently, this requires the
'enable.status.timing' property be set to 'true', as the StatusTiming fields are conditionally
weaved into the domain. Additionally, the 'DATE_STARTED' column must be setup on the BLC_SNDBX_WRKFLW_DEPLOY table.
See StatusTimingImpl
for more info on the field.deploymentId
- void finishDeployment(Long deploymentId)
StatusTiming#getDateFinished()
on WorkflowDeployment
. Currently, this requires the
'enable.status.timing' property be set to 'true', as the StatusTiming fields are conditionally
weaved into the domain. Additionally, the 'DATE_FINISHED' column must be setup on the BLC_SNDBX_WRKFLW_DEPLOY table.
See StatusTimingImpl
for more info on the field.deploymentId
- List<WorkflowDeployment> readDeploymentsByEvents(List<Long> events)
events
- void detach(WorkflowDeployment deployment)
deployment
- WorkflowEvent merge(WorkflowEvent event)
event
- int completeEvents(List<Long> sandBoxItemIds)
WorkflowSandBoxItem
ids, find all
associated WorkflowEvent
instances that have no un-completed
WorkflowSandBoxItem instances and set those events to completed status.sandBoxItemIds
- int resetEventsForApproval(List<Long> sandBoxItemIds)
WorkflowSandBoxItem
ids, find all
associated WorkflowEvent
instances and reset the status
information for an WorkflowEvent
that
has already been promoted and is about to be approved.sandBoxItemIds
- List<Long> readEventIdsByDeployment(Long deploymentId)
WorkflowDeployment
, find all
associated WorkflowEvent.getId()
values.deploymentId
- List<WorkflowDeployment> readAllFutureDeployments()
void removeDeployment(WorkflowDeployment deployment)
deployment
- List<Long> readUnscheduledEventIdsByCriticalAndApprovalStatus(Long sandboxId, boolean isCritical, boolean isApproved)
WorkflowEvent
s associated by WorkflowEventImpl.sandBox
and
WorkflowEventImpl.isCritical
and that are not deployed or scheduled for deploymentsandboxId
- isCritical
- isApproved
- List<Long> readUnscheduledEventIdsByApprovalStatus(Long sandboxId, boolean isApproved)
WorkflowEvent
s associated by WorkflowEventImpl.sandBox
and that are not deployed or scheduled for deploymentsandboxId
- isApproved
- Copyright © 2019. All rights reserved.