java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.utf.commands.DeleteOrderCommentsTCCmdImpl
Deletes terms and conditions of type "OrderComments".
Behaviour
Field Summary | |
---|---|
java.util.Vector |
tcVector Vector. |
java.lang.Long |
tradingId Trading Id. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.utf.commands. DeleteOrderCommentsTCCmd |
COPYRIGHT,
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
DeleteOrderCommentsTCCmdImpl() Default Constructor. |
Method Summary | |
---|---|
void |
deleteAllOrderCommentsTCs() Finds all the terms and conditions of type "OrderComments" for the given trading agreement ID and deletes them. |
void |
deleteIncomingTCs() Finds all the terms and conditions of type "OrderComments" for the given trading agreement ID. |
java.util.Vector |
getTcVector() Retrieves the list of IDs of terms and conditions to be deleted. |
java.lang.Long |
getTradingId() Retrieves the trading agreement ID. |
void |
performExecute() Calls the deleteAllOrderCommentsTCs method if the incoming tcVector is null. |
void |
reset() Reset the command. |
void |
setTcVector(java.util.Vector newTcVector) Stores the list of IDs corresponding to the term and conditions to be deleted. |
void |
setTradingId(java.lang.Long newTradingId) Stores the trading ID. |
void |
validateParameters() Checks for an incoming trading agreement ID. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public java.lang.Long tradingId
public java.util.Vector tcVector
Constructor Detail |
---|
public DeleteOrderCommentsTCCmdImpl()
Method Detail |
---|
public void reset()
reset
in class
AbstractECTargetableCommand
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
- If the trading agreement ID has not been
provided.ECException
ECCommand#validateParameters()
public void deleteAllOrderCommentsTCs() throws ECException
ECApplicationException
- If an application error occurs while
deleting TCs.
ECSystemException
- If a system error occurs while deleting
TCs.ECException
public void deleteIncomingTCs() throws ECException
ECApplicationException
- If an application error occurs while
deleting TCs.
ECSystemException
- If a system error occurs while deleting
TCs.ECException
public java.util.Vector getTcVector()
public java.lang.Long getTradingId()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
ECCommand#performExecute()
public void setTcVector(java.util.Vector newTcVector)
setTcVector
in interface
DeleteOrderCommentsTCCmd
newTcVector
- The list of term and condition
IDs.public void setTradingId(java.lang.Long newTradingId)
setTradingId
in interface
DeleteOrderCommentsTCCmd
newTradingId
- The trading ID.