com.ibm.commerce.utf.commands
Class ModifyOrderCommentsTCCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.utf.commands.ModifyOrderCommentsTCCmdImpl
- All Implemented Interfaces:
- ECCommand, ModifyOrderCommentsTCCmd, TaskCommand
- public class ModifyOrderCommentsTCCmdImpl
- extends TaskCommandImpl
- implements ModifyOrderCommentsTCCmd
Task command implementation to modify terms and conditions of type "OrderComments".
Method Summary |
java.util.Vector |
getCommentsVector()
Retrieves a vector of freeform comments. |
java.lang.Long |
getTradingId()
Retrieves the trading agreement ID. |
void |
performExecute()
Updates the term condition associated with each incoming freeform comment.
|
void |
setCommentsVector(java.util.Vector newCommentsVector)
Stores the list of freeform comments that need to be converted into TCs. |
void |
setTradingId(java.lang.Long newTradingId)
Stores the incoming trading agreement ID. |
void |
validateParameters()
This method does the following:
Verifies that a comment list has been provided.
Verifies that a trading agreement ID has been provided.
|
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
commentsVector
public java.util.Vector commentsVector
tradingId
public java.lang.Long tradingId
ModifyOrderCommentsTCCmdImpl
public ModifyOrderCommentsTCCmdImpl()
- ModifyOrderCommentsTCCmdImpl constructor comment.
getCommentsVector
public java.util.Vector getCommentsVector()
- Retrieves a vector of freeform comments.
- Returns:
- The list of freeform comments that need to be converted into TCs.
getTradingId
public java.lang.Long getTradingId()
- Retrieves the trading agreement ID.
- Returns:
- The ID of the trading agreement.
performExecute
public void performExecute()
throws ECException
- Updates the term condition associated with each incoming freeform comment.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Throws:
ECApplicationException
- If an application error occurs while updating the TC.ECSystemException
- If a system error occurs while updating the TC.
setCommentsVector
public void setCommentsVector(java.util.Vector newCommentsVector)
- Stores the list of freeform comments that need to be converted into TCs.
- Specified by:
setCommentsVector
in interface ModifyOrderCommentsTCCmd
- Parameters:
newCommentsVector
- The list of freeform comments.
setTradingId
public void setTradingId(java.lang.Long newTradingId)
- Stores the incoming trading agreement ID.
- Specified by:
setTradingId
in interface ModifyOrderCommentsTCCmd
- Parameters:
newTradingId
- The ID of the trading agreement.
validateParameters
public void validateParameters()
throws ECException
- This method does the following:
- Verifies that a comment list has been provided.
- Verifies that a trading agreement ID has been provided.
- Specified by:
validateParameters
in interface ECCommand
- Overrides:
validateParameters
in class AbstractECCommand
- Throws:
ECApplicationException
- - If the comment list has not been provided.
- If the trading agreement ID has not been provided.