public class WorkItemLifecycleEventUtil extends Object
Constructor and Description |
---|
WorkItemLifecycleEventUtil() |
Modifier and Type | Method and Description |
---|---|
protected static IWorkItemLifecycleEvent |
createEvent(String workItemUid,
String workItemDetails,
WorkItemLifecyclePhase workItemLifecyclePhase,
String lifecycleDetails,
Date sourceTimestamp) |
static void |
publish(IWorkItemLifecycleEvent workItemLifecycleEvent)
A convenience method for publishing changes to the work item's lifecycles.
|
static void |
publish(String workItemUid,
Map<String,Serializable> details,
WorkItemLifecyclePhase workItemLifecyclePhase)
A convenience method for publishing changes to the work item's lifecycles that calls
publish(String, Map,
WorkItemLifecyclePhase, String, Date) with a null lifecycleDetails and sourceTimestamp |
static void |
publish(String workItemUid,
Map<String,Serializable> details,
WorkItemLifecyclePhase workItemLifecyclePhase,
String lifecycleDetails)
A convenience method for publishing changes to the work item's lifecycles that calls
publish(String, Map,
WorkItemLifecyclePhase, String, Date) with a null sourceTimestamp |
static void |
publish(String workItemUid,
Map<String,Serializable> details,
WorkItemLifecyclePhase workItemLifecyclePhase,
String lifecycleDetails,
Date sourceTimestamp)
A convenience method for publishing changes to the work item's lifecycles that creates an instance of
WorkItemLifecycleEvent and calls the publish(IWorkItemLifecycleEvent) method |
public static void publish(String workItemUid, Map<String,Serializable> details, WorkItemLifecyclePhase workItemLifecyclePhase)
publish(String, Map,
WorkItemLifecyclePhase, String, Date)
with a null lifecycleDetails
and sourceTimestamp
workItemUid
- a String
containing unique identifier for the WorkItemLifecycleEvent
details
- an Map
containing details of the WorkItemLifecycleEvent
workItemLifecyclePhase
- a WorkItemLifecyclePhase
representing the lifecycle eventpublic static void publish(String workItemUid, Map<String,Serializable> details, WorkItemLifecyclePhase workItemLifecyclePhase, String lifecycleDetails)
publish(String, Map,
WorkItemLifecyclePhase, String, Date)
with a null sourceTimestamp
workItemUid
- a String
containing unique identifier for the WorkItemLifecycleEvent
details
- an Map
containing details of the WorkItemLifecycleEvent
workItemLifecyclePhase
- a WorkItemLifecyclePhase
representing the lifecycle eventlifecycleDetails
- a String
containing any additional details about the lifecycle event, such as
pertinent failure messagespublic static void publish(String workItemUid, Map<String,Serializable> details, WorkItemLifecyclePhase workItemLifecyclePhase, String lifecycleDetails, Date sourceTimestamp)
WorkItemLifecycleEvent
and calls the publish(IWorkItemLifecycleEvent)
methodworkItemUid
- a String
containing unique identifier for the IWorkItemLifecycleEvent
details
- an Map
containing details of the IWorkItemLifecycleEvent
workItemLifecyclePhase
- a WorkItemLifecyclePhase
representing the lifecycle eventlifecycleDetails
- a String
containing any additional details about the lifecycle event, such as
pertinent failure messagessourceTimestamp
- a Date
representing the time the lifecycle change occurred.protected static IWorkItemLifecycleEvent createEvent(String workItemUid, String workItemDetails, WorkItemLifecyclePhase workItemLifecyclePhase, String lifecycleDetails, Date sourceTimestamp)
public static void publish(IWorkItemLifecycleEvent workItemLifecycleEvent)
IWorkItemLifecycleEventPublisher
bean, and if available, calls its post method. Otherwise does nothing, as the
IWorkItemLifecycleEventPublisher
bean may not be available, which is a perfectly valid scenario, if we do
not care about publishing IWorkItemLifecycleEvent
's.workItemLifecycleEvent
- the IWorkItemLifecycleEvent
Copyright © 2017 Hitachi Vantara. All rights reserved.