com.ibm.commerce.contract.commands
Class ContractCreateCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.contract.commands.ContractCreateCmdImpl
- All Implemented Interfaces:
- AccCommand, ContractCreateCmd, ControllerCommand, ECCommand, ECTargetableCommand, Protectable
- public class ContractCreateCmdImpl
- extends ControllerCommandImpl
- implements ContractCreateCmd
Create a contract based on the import XMLString, the contract will be in
Draft state (WebSphere Commerce Business Edition only).
Method Summary |
java.lang.Long |
getContractId()
Return contract id |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
void |
setLanguageId(java.lang.Integer langId)
Set language id |
void |
setRequestProperties(org.w3c.dom.Document contractXML)
|
void |
setRequestProperties(TypedProperty aRequestProperties)
The WebController calls this method before invoking the execute method in this command to
set the request properties for this command. |
void |
setXML(java.lang.String xmlStirng)
Set XML string |
void |
validateParameters()
Performs server side parameter checking. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
CLASSNAME
public static final java.lang.String CLASSNAME
COPYRIGHT
public static final java.lang.String COPYRIGHT
ContractCreateCmdImpl
public ContractCreateCmdImpl()
- ContractCreateCommand constructor comment.
getContractId
public java.lang.Long getContractId()
- Return contract id
- Specified by:
getContractId
in interface ContractCreateCmd
- Returns:
- java.lang.Long
performExecute
public void performExecute()
throws ECException
- Description copied from interface:
ECCommand
- Contains the actual business logic of the command
It should be implemented by all the command writer.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setLanguageId
public void setLanguageId(java.lang.Integer langId)
- Set language id
- Specified by:
setLanguageId
in interface ContractCreateCmd
- Parameters:
langId
- java.lang.Integer
setRequestProperties
public void setRequestProperties(org.w3c.dom.Document contractXML)
setRequestProperties
public void setRequestProperties(TypedProperty aRequestProperties)
throws ECApplicationException
- Description copied from interface:
ControllerCommand
- The WebController calls this method before invoking the execute method in this command to
set the request properties for this command.
It is the responsibility of the implementer of the ControllerCommand to extract the
required input parameters from the request properties and perform parameter checking.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Overrides:
setRequestProperties
in class ControllerCommandImpl
- Following copied from interface:
com.ibm.commerce.command.ControllerCommand
- Parameters:
requestProperties
- com.ibm.commerce.datatype.TypedProperty- Throws:
com.ibm.commerce.exception.ECException.
-
setXML
public void setXML(java.lang.String xmlStirng)
- Set XML string
- Specified by:
setXML
in interface ContractCreateCmd
- Parameters:
xmlString
- java.lang.String
validateParameters
public void validateParameters()
throws ECException
- Description copied from interface:
ECCommand
- Performs server side parameter checking. This method replaces the checkParameters() method in a previous
version of the code.
- Specified by:
validateParameters
in interface ECCommand
- Overrides:
validateParameters
in class AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
ECException.
-