com.ibm.commerce.contract.commands
Class AddContractNLDescriptionCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.contract.commands.AddContractNLDescriptionCmdImpl
All Implemented Interfaces:
AddContractNLDescriptionCmd, ECCommand, TaskCommand

public class AddContractNLDescriptionCmdImpl
extends TaskCommandImpl
implements AddContractNLDescriptionCmd

Adds Contract National Language Description (WebSphere Commerce Business Edition only). Normally this command will add the National Language Description to the database. If an error occurred, an ECException will be thrown. Calling commands: ContractImportDraftVersion, ContractImportApprovedVersion


Field Summary
static java.lang.String CLASSNAME
           
static java.lang.String COPYRIGHT
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.contract.commands.AddContractNLDescriptionCmd
defaultCommandClassName, NAME
 
Constructor Summary
AddContractNLDescriptionCmdImpl()
           
 
Method Summary
 java.lang.Long getContractId()
          Return contract id
 AccessVector getResources()
          Gets the access vector accessed by this command.
 void performExecute()
          Contains the actual business logic of the command It should be implemented by all the command writer.
 void setContractNLDescriptionElement(org.w3c.dom.Element element)
          Set ContractNLDescriptionElement
 void validateParameters()
          Performs server side parameter checking.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, 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, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

AddContractNLDescriptionCmdImpl

public AddContractNLDescriptionCmdImpl()
Method Detail

getContractId

public java.lang.Long getContractId()
Return contract id
Specified by:
getContractId in interface AddContractNLDescriptionCmd
Returns:
java.lang.Long

getResources

public AccessVector getResources()
                          throws ECException
Gets the access vector accessed by this command. The default implementation returns null indicating that no protectable resource is accessed by this command. It is the responsibilities of the command writer to return the protectable primary resource(s) and the corresponding actions accessed by this command.

Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECCommand
Returns:
AccessVector - a vector of resource action pairs

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 AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

setContractNLDescriptionElement

public void setContractNLDescriptionElement(org.w3c.dom.Element element)
Set ContractNLDescriptionElement
Specified by:
setContractNLDescriptionElement in interface AddContractNLDescriptionCmd
Parameters:
element - org.w3c.dom.Element

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 AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -