public class WorkspaceEventManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
void |
cancelTaskGroup(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
CommandContext cmdContext)
Event handler to process task groups in the cancel state.
|
void |
cleanupTaskGroup(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
CommandContext cmdContext)
Cleans up a task group.
|
void |
commitTaskGroup(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
CommandContext cmdContext)
Commit task group event handler.
|
void |
completeTask(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
java.lang.Long taskId,
CommandContext cmdContext)
Complete task event handler.
|
void |
initialize()
Initializes the workspace event manager.
|
boolean |
isDeferredCommit()
Check if configuration setting is enabled for deferred commit.
|
boolean |
isRetryCommitEnabled()
Check if configuration setting is enabled for retrying commits.
|
void |
postCommitTaskGroup(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
CommandContext cmdContext)
Event handler to process task groups in the commit complete state.
|
void |
publishTaskGroup(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
CommandContext cmdContext)
Event handler to process a task group in the ready to publish state.
|
void |
readyForApprovalTaskGroup(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
CommandContext cmdContext)
Event handler to process a task group in the ready for approval state.
|
static WorkspaceEventManager |
singleton()
Gets the WorkspaceEventManager as a singleton
|
void |
workingTask(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
java.lang.Long taskId,
CommandContext cmdContext)
Activated task event handler.
|
public static final java.lang.String COPYRIGHT
public void initialize() throws java.lang.Exception
java.lang.Exception
- A problem initializing the event manager.public static WorkspaceEventManager singleton()
public void completeTask(java.lang.Long workspaceId, java.lang.Long taskGroupId, java.lang.Long taskId, CommandContext cmdContext) throws ECException
workspaceId
- The Workspace identifier.taskGroupId
- The Task Group identifier.taskId
- The Task identifier.cmdContext
- CommandContextECException
public void workingTask(java.lang.Long workspaceId, java.lang.Long taskGroupId, java.lang.Long taskId, CommandContext cmdContext) throws ECException
workspaceId
- The Workspace identifier.taskGroupId
- The Task Group identifier.taskId
- The Task identifier.cmdContext
- CommandContextECException
public void commitTaskGroup(java.lang.Long workspaceId, java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
workspaceId
- The Workspace identifier.taskGroupId
- The Task Group identifier.cmdContext
- CommandContextECException
public void cancelTaskGroup(java.lang.Long workspaceId, java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
workspaceId
- The Workspace identifier.taskGroupId
- The Task Group identifier.cmdContext
- CommandContextECException
public void postCommitTaskGroup(java.lang.Long workspaceId, java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
workspaceId
- The Workspace identifier.taskGroupId
- The Task Group identifier.cmdContext
- CommandContextECException
public void publishTaskGroup(java.lang.Long workspaceId, java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
workspaceId
- The Workspace identifier.taskGroupId
- The Task Group identifier.cmdContext
- CommandContextECException
public void cleanupTaskGroup(java.lang.Long workspaceId, java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
workspaceId
- The Workspace identifier.taskGroupId
- The Task Group identifier.cmdContext
- CommandContextECException
public void readyForApprovalTaskGroup(java.lang.Long workspaceId, java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
workspaceId
- The Workspace identifier.taskGroupId
- The Task Group identifier.cmdContext
- CommandContextECException
public boolean isDeferredCommit()
public boolean isRetryCommitEnabled()