|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.contract.commands.ContractImportApprovedVersionCmdImpl
Import a contract from a specified XML file (WebSphere Commerce Business Edition only). The state of the contract in the XML file has to be either Approved or Active.
Field Summary | |
static java.lang.String |
CLASSNAME
|
static java.lang.String |
COPYRIGHT
|
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl |
requestProperties, responseProperties, retriable, viewReqProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.contract.commands.ContractImportApprovedVersionCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
ContractImportApprovedVersionCmdImpl()
|
Method Summary | |
java.lang.Long |
getContractId()
Return contract id |
java.lang.Integer |
getContractState()
Return contract state |
java.lang.String |
getUrl()
Gets the redirection url to be called when the command completes successfully. |
void |
importContract(org.w3c.dom.Element contractElement,
java.lang.Integer contractState)
Import a contract based on the contract element |
void |
importContractNLDesc(org.w3c.dom.Element cntrDescElement)
Import a contract description based on the contract description element |
boolean |
isInRightStateToUpdate()
Check if the contract is in right state for updating action |
boolean |
isUpdate()
Return if the action is update. |
void |
performExecute()
Contains the actual business logic of the command It should be implemented by all the command writer. |
void |
setContractId(java.lang.Long newContractId)
Set the contract id parameter |
void |
setContractState(java.lang.Integer newContractState)
Set the contract state parameter |
void |
setContractXMLFileName(java.lang.String astrContractFileName)
Set xml file name parameter |
void |
setCurrentContractState(java.lang.Integer newContractState)
Set the current contract state parameter |
void |
setLanguageId(java.lang.Integer newLangId)
Set the language id parameter |
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 |
setStoreId(java.lang.Integer storeId)
Set store id parameter |
void |
setUrl(java.lang.String astrUrl)
Sets the redirection url to be called when the command completes successfully. |
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.AccCommand |
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
Constructor Detail |
public ContractImportApprovedVersionCmdImpl()
Method Detail |
public java.lang.Long getContractId()
public java.lang.Integer getContractState()
public java.lang.String getUrl()
public void importContract(org.w3c.dom.Element contractElement, java.lang.Integer contractState) throws ECException
contractElement
- org.w3c.dom.ElementcontractState
- java.lang.Integerpublic void importContractNLDesc(org.w3c.dom.Element cntrDescElement) throws ECException
cntrDescElement
- org.w3c.dom.Elementpublic boolean isInRightStateToUpdate()
public boolean isUpdate()
public void performExecute() throws ECException
ECCommand
performExecute
in interface ECCommand
performExecute
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void setContractId(java.lang.Long newContractId)
contractId
- java.lang.Longpublic void setContractState(java.lang.Integer newContractState)
newContractState
- java.lang.Integerpublic void setContractXMLFileName(java.lang.String astrContractFileName)
setContractXMLFileName
in interface ContractImportApprovedVersionCmd
astrContractFileName
- java.lang.Stringpublic void setCurrentContractState(java.lang.Integer newContractState)
newContractState
- java.lang.Integerpublic void setLanguageId(java.lang.Integer newLangId)
newLangId
- java.lang.Integerpublic void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
ControllerCommand
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
com.ibm.commerce.command.ControllerCommand
requestProperties
- com.ibm.commerce.datatype.TypedPropertycom.ibm.commerce.exception.ECException.
- public void setStoreId(java.lang.Integer storeId)
setStoreId
in interface ContractImportApprovedVersionCmd
storeId
- java.lang.Integerpublic void setUrl(java.lang.String astrUrl)
setUrl
in interface ContractImportApprovedVersionCmd
astrUrl
- java.lang.String - redirection url stringpublic void validateParameters() throws ECException
ECCommand
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
ECException.
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |