com.ibm.commerce.contentmanagement.commands
Class RejectSingleTaskAndTaskGroupCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.TaskCommandImpl
-
- com.ibm.commerce.contentmanagement.commands.RejectSingleTaskAndTaskGroupCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, RejectSingleTaskAndTaskGroupCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class RejectSingleTaskAndTaskGroupCmdImpl extends TaskCommandImpl implements RejectSingleTaskAndTaskGroupCmd
TheRejectSingleTaskAndTaskGroupCmd
is a task command that:- Changes the Task Group status to Working
- Change the Task status to Working
- If email notification is enabled, sends email notification to all content contributors that the task has been rejected
- taskGroupId
- taskId
- SendRejectTaskEmailCmd
Additional Parameters: none
Optional Parameters: none- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
CLASSNAME
Define the CLASSNAME.static java.lang.String
COPYRIGHT
The internal copyright field.
-
Constructor Summary
Constructors Constructor and Description RejectSingleTaskAndTaskGroupCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AccessVector
getResources()
Gets the resources accessed by this command.java.lang.Long
getTaskGroupId()
Returns the Task Group ID.java.lang.Long
getTaskId()
Returns the Task ID.void
performExecute()
Performs the execution of the command.void
reset()
Resets all the values to nullvoid
setTaskGroupId(java.lang.Long aTaskGroupId)
Sets the Task Group IDvoid
setTaskId(java.lang.Long aTaskId)
Sets the Task IDvoid
validateParameters()
Validates the input parameters.-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
The internal copyright field.- See Also:
- Constant Field Values
-
CLASSNAME
public static final java.lang.String CLASSNAME
Define the CLASSNAME.- See Also:
- Constant Field Values
-
-
Method Detail
-
getTaskId
public java.lang.Long getTaskId()
Returns the Task ID.- Specified by:
getTaskId
in interfaceRejectSingleTaskAndTaskGroupCmd
- Returns:
- The unique ID of the Task.
-
getTaskGroupId
public java.lang.Long getTaskGroupId()
Returns the Task Group ID.- Specified by:
getTaskGroupId
in interfaceRejectSingleTaskAndTaskGroupCmd
- Returns:
- The unique ID of the Task Group.
-
performExecute
public void performExecute() throws ECException
Performs the execution of the command.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
ECException
-
reset
public void reset()
Resets all the values to null- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
- Overrides:
reset
in classAbstractECTargetableCommand
-
setTaskGroupId
public void setTaskGroupId(java.lang.Long aTaskGroupId)
Sets the Task Group ID- Specified by:
setTaskGroupId
in interfaceRejectSingleTaskAndTaskGroupCmd
- Parameters:
aTaskGroupId
- The ID of the Task Group.
-
setTaskId
public void setTaskId(java.lang.Long aTaskId)
Sets the Task ID- Specified by:
setTaskId
in interfaceRejectSingleTaskAndTaskGroupCmd
- Parameters:
aTaskId
- The ID of the Task.
-
validateParameters
public void validateParameters() throws ECException
Validates the input parameters.- Specified by:
validateParameters
in interfaceECCommand
- Overrides:
validateParameters
in classAbstractECTargetableCommand
- Throws:
ECException
-
getResources
public AccessVector getResources() throws ECException
Gets the resources accessed by this command.- Specified by:
getResources
in interfaceECCommand
- Overrides:
getResources
in classAbstractECTargetableCommand
- Returns:
- resource access vector.
- Throws:
ECException
-
-