public class WorkspaceEventFactory
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 |
---|---|
static WorkspaceEventFactory |
getInstance()
Returns an instance of the content context factory.
|
static int |
getTaskEventType(java.lang.Integer status)
Generates the Task event with the type specified.
|
static int |
getTaskGroupEventType(java.lang.Integer status)
Generates the Task event with the type specified.
|
static int |
getWorkspaceEventType(java.lang.Integer status)
Generates the Workspace event with the type specified.
|
void |
sendTaskCompleteEvent(java.lang.Long taskId,
CommandContext cmdContext)
Generates a Task Complete event.
|
void |
sendTaskCompleteEvent(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
java.lang.Long taskId,
CommandContext cmdContext)
Generates a Task Complete event.
|
void |
sendTaskEvent(int eventType,
java.lang.Integer oldStatus,
java.lang.Long taskId,
CommandContext cmdContext)
Generates the Task event with the type specified.
|
void |
sendTaskGroupApprovedEvent(java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Approved event.
|
void |
sendTaskGroupApprovedEvent(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Approved event.
|
void |
sendTaskGroupCommitFailedEvent(java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Commit Failed event.
|
void |
sendTaskGroupCommitFailedEvent(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Commit Failed event.
|
void |
sendTaskGroupCommitInProgressEvent(java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Commit in Progress event.
|
void |
sendTaskGroupCommitInProgressEvent(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Commit in Progress event.
|
void |
sendTaskGroupCommittedEvent(java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Committed event.
|
void |
sendTaskGroupCommittedEvent(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Committed event.
|
void |
sendTaskGroupCompleteEvent(java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Completed event.
|
void |
sendTaskGroupCompleteEvent(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Completed event.
|
void |
sendTaskGroupEvent(int eventType,
java.lang.Integer oldStatus,
java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates the Task Group event with the type specified.
|
void |
sendTaskGroupReadyForApprovalEvent(java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Ready for Approval event.
|
void |
sendTaskGroupReadyForApprovalEvent(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Ready for Approval event.
|
void |
sendTaskGroupReadyToCommitEvent(java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Ready to Commit event.
|
void |
sendTaskGroupReadyToCommitEvent(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Ready to Commit event.
|
void |
sendTaskGroupReadyToPublish(java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Ready for Publish event.
|
void |
sendTaskGroupReadyToPublish(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Ready for Publish event.
|
void |
sendTaskGroupWorkingEvent(java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Working event.
|
void |
sendTaskGroupWorkingEvent(java.lang.Long workspaceId,
java.lang.Long taskGroupId,
CommandContext cmdContext)
Generates a Task Group Working event.
|
void |
sendWorkspaceCancelledEvent(java.lang.Long workspaceId,
CommandContext cmdContext)
Generates a Task Group Commit Failed event.
|
void |
sendWorkspaceEvent(int eventType,
java.lang.Long workspaceId,
CommandContext cmdContext)
Generates the Task event with the type specified.
|
public static final java.lang.String COPYRIGHT
public static WorkspaceEventFactory getInstance()
public void sendTaskCompleteEvent(java.lang.Long workspaceId, java.lang.Long taskGroupId, java.lang.Long taskId, CommandContext cmdContext) throws ECException
workspaceId
- The workspace Id.taskGroupId
- The task group Id.taskId
- The task Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskCompleteEvent(java.lang.Long taskId, CommandContext cmdContext) throws ECException
workspaceId
- The workspace Id.taskGroupId
- The task group Id.taskId
- The task Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupWorkingEvent(java.lang.Long workspaceId, java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
workspaceId
- The workspace Id.taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupWorkingEvent(java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupReadyForApprovalEvent(java.lang.Long workspaceId, java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
workspaceId
- The workspace Id.taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupReadyForApprovalEvent(java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupApprovedEvent(java.lang.Long workspaceId, java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
workspaceId
- The workspace Id.taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupApprovedEvent(java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupReadyToCommitEvent(java.lang.Long workspaceId, java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
workspaceId
- The workspace Id.taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupReadyToCommitEvent(java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupCommitInProgressEvent(java.lang.Long workspaceId, java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
workspaceId
- The workspace Id.taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupCommitInProgressEvent(java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
workspaceId
- The workspace Id.taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupCommittedEvent(java.lang.Long workspaceId, java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
workspaceId
- The workspace Id.taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupCommittedEvent(java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupReadyToPublish(java.lang.Long workspaceId, java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
workspaceId
- The workspace Id.taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupReadyToPublish(java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupCompleteEvent(java.lang.Long workspaceId, java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
workspaceId
- The workspace Id.taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupCompleteEvent(java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupCommitFailedEvent(java.lang.Long workspaceId, java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
workspaceId
- The workspace Id.taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupCommitFailedEvent(java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendWorkspaceCancelledEvent(java.lang.Long workspaceId, CommandContext cmdContext) throws ECException
workspaceId
- The workspace Id.taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskGroupEvent(int eventType, java.lang.Integer oldStatus, java.lang.Long taskGroupId, CommandContext cmdContext) throws ECException
eventType
- The type of event to be send.oldStatus
- The previous status of the task group.taskGroupId
- The task group Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendTaskEvent(int eventType, java.lang.Integer oldStatus, java.lang.Long taskId, CommandContext cmdContext) throws ECException
eventType
- The type of event to be send.oldStatus
- The previous status of the task.taskId
- The task Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public void sendWorkspaceEvent(int eventType, java.lang.Long workspaceId, CommandContext cmdContext) throws ECException
eventType
- The type of event to be send.taskId
- The task Id.cmdContext
- The command context of the current session.ECException
- An exception may occur by the listener when the event is handled.public static int getTaskGroupEventType(java.lang.Integer status)
status
- The status of task group.ECException
- An exception may occur by the listener when the event is handled.public static int getTaskEventType(java.lang.Integer status)
status
- The status of task.public static int getWorkspaceEventType(java.lang.Integer status)
status
- The status of workspace.