com.ibm.commerce.fulfillment.commands

Class ShippingArrangementWrapper

  • java.lang.Object
    • com.ibm.commerce.fulfillment.commands.ShippingArrangementWrapper


  • public class ShippingArrangementWrapper
    extends java.lang.Object
    Provides business logic associated with a ShippingArrangement.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      The IBM copyright string.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      ShippingArrangementAccessBean getAccessBean()
      Returns the ShippingJurisdictionAccessBean.
      java.lang.Integer[] getJurisdictionGroupIds()
      Returns the identifiers of associated JurisdictionGroups if the ShippingArrangement is restricted.
      boolean isRestricted()
      Returns true if the ShippingArrangement is restricted to certain ShippingJurisdictionGroups.
      boolean isValid(java.sql.Timestamp aTimestamp, java.lang.Long alAddressId, CommandContext aCommandContext)
      Returns true if the shipping arrangement is valid for the specified time and address.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

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

      • ShippingArrangementWrapper

        public ShippingArrangementWrapper(ShippingArrangementAccessBean aabShippingArrangement)
        Constructor for ShippingArrangementWrapper.
        Parameters:
        aabShippingArrangement - The ShippingArrangementAccessBean.
    • Method Detail

      • getAccessBean

        public ShippingArrangementAccessBean getAccessBean()
        Returns the ShippingJurisdictionAccessBean.
        Returns:
        the ShippingJurisidictionAccessBean.
      • isRestricted

        public boolean isRestricted()
        Returns true if the ShippingArrangement is restricted to certain ShippingJurisdictionGroups.
        Returns:
        true if the ShippingArranagement is restricted.
      • getJurisdictionGroupIds

        public java.lang.Integer[] getJurisdictionGroupIds()
        Returns the identifiers of associated JurisdictionGroups if the ShippingArrangement is restricted. Otherwise, returns null;
        Returns:
        null if the ShippingJurisdiction is not restricted. Otherwise, the identifiers of the ShippingJurisdictionGroups to which it is restricted.
      • isValid

        public boolean isValid(java.sql.Timestamp aTimestamp,
                               java.lang.Long alAddressId,
                               CommandContext aCommandContext)
                        throws ECException
        Returns true if the shipping arrangement is valid for the specified time and address.

        Parameters:
        aTimestamp - if not null, the shipping arrangement must be effective for this time.
        alAddressId - if not null, the shipping arrangement must be valid for at least one of the shipping jurisdictions that match the address.
        aCommandContext - the command context. Can be null if alAddressId is null.
        Returns:
        true if the specified shipping arrangement is valid for the specified parameter values.
        Throws:
        ECException