com.ibm.commerce.inventory.commands

Class FulfillmentCenterCreateCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • FulfillmentCenterCreateCmdImpl

        public FulfillmentCenterCreateCmdImpl()
    • Method Detail

      • setStoreAddressId

        public void setStoreAddressId(java.lang.String newStoreAddressId)
        Sets the store address identifier.
        Parameters:
        newStoreAddressId - address id
        See Also:
        getStoreAddressId()
      • validateParameters

        public void validateParameters()
                                throws ECException
        Gets the information of the new fulfillment center to be created.
          Pull from the xml, if it exists, otherwise from the properties of this object:
        • FFMCENTER_DEFAULTSHIPOFFSET (if specified, needs to be an integer)
        • FFMCENTDS_DESCRIPTION
        • FFMCENTDS_DISPLAYNAME
        • FFMCENTER_NAME (required)
        • STADDRESS_ADDRESS1
        • STADDRESS_ADDRESS2
        • STADDRESS_ADDRESS3
        • STADDRESS_CITY
        • STADDRESS_COUNTRY
        • STADDRESS_MEMBER_ID (required)
        • STADDRESS_STATE
        • STADDRESS_ZIPCODE
        • DROPSHIP

        Verify that the required parameters are available, and that the fulfillment center member id and name are unique.

        Sets the information into the command local variable.

        Calls generic RedirectView when successfully completed, or GenericApplicationError view when failed.

        Although the schema allows NAME column of FFMCENTER to be NULL, this command forces the fulfillmentCenterName parameter to be NOT NULL. Because a unique fulfillmentCenterName in string format is required to generate a unique nickname for staddress of this fulfillment center.

        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        ECException - Throws ECApplicationException if _ERR_BAD_MISSING_CMD_PARAMETER
      • performExecute

        public void performExecute()
                            throws ECException
        This method performs the execution of creating a new fulfillment center. This method returns the fulfillment center id.

        Adds a new row in STADDRESS table using CreateStoreAddressCmd. Adds a row in FFMCENTER table using FulfillmentCenterAccessBean. Gets a new fulfillment center id. Adds a row to FFMCENTDS table using FulfillmentCenterDescriptionAccessBean. Adds a new row in SHPARRANGE table using ShippingArrangementAccessBean.

        Sets generic RedirectView when successfully executed, or GenericApplicationError view when failed.

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • getMaxNumPick

        public java.lang.String getMaxNumPick()
        This method returns the istrMaxNumPick.
        Returns:
        String
      • getPickDelayInMin

        public java.lang.String getPickDelayInMin()
        This method returns the istrPickDelayInMin.
        Returns:
        String
      • setMaxNumPick

        public void setMaxNumPick(java.lang.String newMaxNumPick)
        Sets the istrMaxNumPick.
        Specified by:
        setMaxNumPick in interface FulfillmentCenterCreateCmd
        Parameters:
        newMaxNumPick - The istrMaxNumPick to set
      • setPickDelayInMin

        public void setPickDelayInMin(java.lang.String newPickDelayInMin)
        Sets the istrPickDelayInMin.
        Specified by:
        setPickDelayInMin in interface FulfillmentCenterCreateCmd
        Parameters:
        newPickDelayInMin - The istrPickDelayInMin to set
      • getDropship

        public java.lang.String getDropship()
        This method returns the istrDropship
        Returns:
        String
      • setDropship

        public void setDropship(java.lang.String newDropship)
        Sets the istrDropship
        Parameters:
        newDropship - as Y or N