com.ibm.commerce.utf.commands
Class CopyRFQCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.utf.commands.CopyRFQCmdImpl
- All Implemented Interfaces:
- CopyRFQCmd, ECCommand, TaskCommand
- public class CopyRFQCmdImpl
- extends TaskCommandImpl
- implements CopyRFQCmd
TaskCommand class implementation for copying a RFQ.
This task command calls the following task commands:
CreateRFQBasicInfoCmd
CreateRFQCatentryRelCmd
- See Also:
validateParameters()
,
CreateRFQBasicInfoCmd
,
Constructor Summary |
CopyRFQCmdImpl()
CopyRFQCmdImpl constructor comment. |
Method Summary |
java.lang.Long |
getNewRFQId()
Returns the RFQ id of the new copy. |
java.lang.String |
getNewRFQName()
returns the unique name for the new RFQ |
java.lang.Long |
getSourceRFQId()
Returns the source RFQ unique id used for the copy. |
void |
performExecute()
Performs the RFQ copy action. |
void |
setNewRFQName(java.lang.String name)
Sets the unique name for the new RFQ |
void |
setSourceRFQId(java.lang.Long rfqId)
Sets the source of RFQ id to copy from. |
void |
validateParameters()
Checks if the source RFQ id value is set. |
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 |
CopyRFQCmdImpl
public CopyRFQCmdImpl()
- CopyRFQCmdImpl constructor comment.
getNewRFQId
public java.lang.Long getNewRFQId()
- Returns the RFQ id of the new copy. Note that the
RFQ id is only available after the command is succesfully
executed.
- Specified by:
getNewRFQId
in interface CopyRFQCmd
- Returns:
- The Long RFQ id value of the new copy.
getNewRFQName
public java.lang.String getNewRFQName()
- returns the unique name for the new RFQ
- Specified by:
getNewRFQName
in interface CopyRFQCmd
- Returns:
- The unique String name value for the new RFQ.
getSourceRFQId
public java.lang.Long getSourceRFQId()
- Returns the source RFQ unique id used for the copy.
- Specified by:
getSourceRFQId
in interface CopyRFQCmd
- Returns:
- The Long unique source RFQ id value used to copy from.
performExecute
public void performExecute()
throws ECException
- Performs the RFQ copy action.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Throws:
ECException.
- - See Also:
validateParameters()
,
CreateRFQBasicInfoCmd
,
setNewRFQName
public void setNewRFQName(java.lang.String name)
- Sets the unique name for the new RFQ
- Specified by:
setNewRFQName
in interface CopyRFQCmd
- Parameters:
The
- unique String name value for the new RFQ.
setSourceRFQId
public void setSourceRFQId(java.lang.Long rfqId)
- Sets the source of RFQ id to copy from.
- Specified by:
setSourceRFQId
in interface CopyRFQCmd
- Parameters:
rfqId
- The source Long unique RFQ id value.
validateParameters
public void validateParameters()
throws ECException
- Checks if the source RFQ id value is set.
Checks if the new RFQ name value is set.
Checks if the new RFQ name value already exists.
Checks if the source RFQ id exists.
- Specified by:
validateParameters
in interface ECCommand
- Overrides:
validateParameters
in class AbstractECCommand
- Throws:
ECException
- The exception describing the failure.