public class TaskGroupCommitCmdImpl extends ControllerCommandImpl implements TaskGroupCommitCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
Define the CLASSNAME.
|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
TaskGroupCommitCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | commitTaskgroup(java.lang.Long lWorkspaceId, java.lang.Long lTaskGroupId)
Commits a task group in a workspace.
|
protected void | commitTaskgroups(java.util.Vector vTaskgroups, java.lang.Long lWorkspaceId)
Commits one or a list of task groups.
|
protected void | commitTaskgroupsInWorkspace(java.lang.Long lWorkspaceId)
Commits all READY TO COMMIT task groups in a workspace.
|
protected void | deferredCommitTaskgroup(java.lang.Long lTaskGroupId)
Updates the state of as task group to READY TO COMMIT, so that IT staff can commit it through a scheduled job.
|
protected void | executeCommitTaskgroups(java.lang.Long lWorkspaceId, java.util.Vector vReadyToCommitTaskgroups, java.util.Vector vFailedTaskgroups)
Executes various commit scenarios.
|
AccessVector | getResources()
Gets the resources accessed by this command.
|
java.lang.Long | getTaskGroupId()
Gets the Task Group Id.
|
protected java.lang.Long | getTaskGroupID(java.lang.String strTaskgroupIdentifier)
Gets task group ID by task group identifier.
|
java.lang.Long | getWorkspaceId()
Gets the Workspace Id
|
boolean | isDeferredCommit()
Indicates whether the deferred commit option is used.
|
boolean | isITScheduledJob()
Indicates whether the command is executed as an IT staff scheduled job.
|
protected boolean | isTaskgroupToCommit(java.lang.Long lTaskgroupId)
Checks whether task groups are in state to commit.
|
void | performExecute()
Performs the execution of the command.
|
void | reset()
Resets the command to enable for another execution.
|
void | setRequestProperties(TypedProperty reqParms)
Set the parameters from the request properties.
|
void | setTaskGroupId(java.lang.Long anTaskGroupId)
Set the Task Group Id
|
void | setWorkspaceId(java.lang.Long anWorkspaceId)
Sets the Workspace Id.
|
void | validateParameters()
Validates the input parameters.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.Long getTaskGroupId()
public java.lang.Long getWorkspaceId()
public void performExecute() throws ECException
protected void deferredCommitTaskgroup(java.lang.Long lTaskGroupId) throws ECException
protected void commitTaskgroupsInWorkspace(java.lang.Long lWorkspaceId) throws ECException
protected void executeCommitTaskgroups(java.lang.Long lWorkspaceId, java.util.Vector vReadyToCommitTaskgroups, java.util.Vector vFailedTaskgroups) throws java.lang.Exception
protected void commitTaskgroup(java.lang.Long lWorkspaceId, java.lang.Long lTaskGroupId) throws ECException
protected boolean isTaskgroupToCommit(java.lang.Long lTaskgroupId)
protected void commitTaskgroups(java.util.Vector vTaskgroups, java.lang.Long lWorkspaceId) throws java.lang.Exception
public void reset()
public void setTaskGroupId(java.lang.Long anTaskGroupId)
public void setWorkspaceId(java.lang.Long anWorkspaceId)
public void validateParameters() throws ECException
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
public AccessVector getResources() throws ECException
public boolean isDeferredCommit()
public boolean isITScheduledJob()
protected java.lang.Long getTaskGroupID(java.lang.String strTaskgroupIdentifier)