com.ibm.commerce.contract.commands

Class AddStoreNLDescriptionCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
      • com.ibm.commerce.command.MeasuredCacheableCommandImpl
        • com.ibm.commerce.command.AbstractECTargetableCommand
          • com.ibm.commerce.command.TaskCommandImpl
            • com.ibm.commerce.contract.commands.AddStoreNLDescriptionCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, AddStoreNLDescriptionCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class AddStoreNLDescriptionCmdImpl
    extends com.ibm.commerce.command.TaskCommandImpl
    implements AddStoreNLDescriptionCmd
    Adds Store National Language Description (WebSphere Commerce Enterprise 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 The following AccessBean are used in this default implementation: TermConditionAccessBean, ContractAccessBean, TradingDescriptionAccessBean, TermConditionDescriptionAccessBean
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Integer createAddress(org.w3c.dom.Element _ieAddress)
      Create an address from the given information in the Element object.
      void performExecute()
      Saves the store description and fulfillment center descriptions.
      void setFfcNLDescriptionElement(org.w3c.dom.Element element)
      Sets the fulfillment center national language description element.
      void setStoreNLDescriptionElement(org.w3c.dom.Element element)
      Sets the store national language description element.
      void validateParameters()
      Validates the given description information in the Element object.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand

        accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
      • Methods inherited from interface com.ibm.commerce.command.CacheableECCommand

        execute
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
    • Field Detail

      • CLASSNAME

        public static final java.lang.String CLASSNAME
        The name of the default implementation.
        See Also:
        Constant Field Values
      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AddStoreNLDescriptionCmdImpl

        public AddStoreNLDescriptionCmdImpl()
    • Method Detail

      • createAddress

        public java.lang.Integer createAddress(org.w3c.dom.Element _ieAddress)
                                        throws com.ibm.commerce.contract.helper.TermCondCreateException
        Create an address from the given information in the Element object.
        Parameters:
        element - the ContactAddress or LocationAddress element
        Returns:
        the id of the new created address
        Throws:
        com.ibm.commerce.contract.helper.TermCondCreateException
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Saves the store description and fulfillment center descriptions.
        Specified by:
        performExecute in interface com.ibm.commerce.command.ECCommand
        Overrides:
        performExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException - Raised with message _ERR_RETRIEVE_LANGUAGE_ID if the locale of the cannot be found.
        See Also:
        AbstractECTargetableCommand.performExecute()
      • setFfcNLDescriptionElement

        public void setFfcNLDescriptionElement(org.w3c.dom.Element element)
        Sets the fulfillment center national language description element.
        Specified by:
        setFfcNLDescriptionElement in interface AddStoreNLDescriptionCmd
        Parameters:
        element - the ContractNationalLanguageDescription element
      • setStoreNLDescriptionElement

        public void setStoreNLDescriptionElement(org.w3c.dom.Element element)
        Sets the store national language description element.
        Specified by:
        setStoreNLDescriptionElement in interface AddStoreNLDescriptionCmd
        Parameters:
        element - the ContractNationalLanguageDescription element
      • validateParameters

        public void validateParameters()
                                throws com.ibm.commerce.exception.ECException
        Validates the given description information in the Element object.
        Specified by:
        validateParameters in interface com.ibm.commerce.command.ECCommand
        Overrides:
        validateParameters in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException - Raised with message _ERR_WRONG_CONTRACT_OWNER_MEMBER_INFO if the information provided in contract owner element is incorrect so that the contract owner id cannot be retrived.
        See Also:
        AbstractECTargetableCommand.validateParameters()