com.ibm.commerce.contract.commands

Class CreateFulfillmentCenterCmdImpl

  • 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.CreateFulfillmentCenterCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, CreateFulfillmentCenterCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class CreateFulfillmentCenterCmdImpl
    extends com.ibm.commerce.command.TaskCommandImpl
    implements CreateFulfillmentCenterCmd
    This is the default implementation of the CreateFulfillmentCenterCmd task command.

    Behaviour:

      Creates the fulfillment center and maps the fulfillment center to the store. (WebSphere Commerce Enterprise only)

    AccessBeans called:

    • FulfillmentCenterAccessBean
    • FulfillmentCenterDescriptionAccessBean
    • ShippingArrangementAccessBean
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String CLASSNAME
      The name of this class is "com.ibm.commerce.contract.commands.CreateFulfillmentCenterCmdImpl".
      static java.lang.String COPYRIGHT
      The internal copyright field.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getStore_Id()
      Gets the store ID.
      void performExecute()
      Executes the business logic of this command implementation.
      void setFFCDefaultLanguageId(java.lang.Integer id)
      Sets the store default language ID.
      void setFFCDefaultLanguageId(java.lang.String id)
      Sets the store default language ID.
      void setStore_Id(java.lang.Integer id)
      Sets the store ID.
      void setStore_Id(java.lang.String id)
      Sets the store ID.
      void setStoreXML(java.lang.String s)
      Sets the store XML
      void validateParameters()
      Validates the parameters.
      • 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 this class is "com.ibm.commerce.contract.commands.CreateFulfillmentCenterCmdImpl".
        See Also:
        Constant Field Values
      • COPYRIGHT

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

      • CreateFulfillmentCenterCmdImpl

        public CreateFulfillmentCenterCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Executes the business logic of this command implementation.
        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
        com.ibm.commerce.exception.ECSystemException - Raised with message _ERR_FINDER_EXCEPTION if a FinderException is occured Raised with message _ERR_REMOTE_EXCEPTION if a RemoteException is occured Raised with message _ERR_NAMING_EXCEPTION if a NamingException is occured Raised with message _ERR_CREATE_EXCEPTION if a CreateException is occured Raised with message _ERR_SQL_EXCEPTION if a SQLException is occured Raised with message _ERR_REMOVE_EXCEPTION if a RemoteException is occured Raised with message _ERR_PARSE_XML if price list XML cannot be parsed Raised with message _ERR_CONTRACT_CMD_EXEC whenever other errors are occured
        See Also:
        AbstractECTargetableCommand.performExecute()
      • setFFCDefaultLanguageId

        public void setFFCDefaultLanguageId(java.lang.Integer id)
        Sets the store default language ID.
        Specified by:
        setFFCDefaultLanguageId in interface CreateFulfillmentCenterCmd
        Parameters:
        id - store default language ID
      • validateParameters

        public void validateParameters()
                                throws com.ibm.commerce.exception.ECException
        Validates the parameters.
        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
        com.ibm.commerce.exception.ECSystemException - Raised with message _ERR_MISSING_PARAMETER if the store XML or store Id or default language Id is not specified.
        See Also:
        AbstractECTargetableCommand.validateParameters()