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
static java.lang.String COPYRIGHT
          The IBM copyright string.
 
Constructor Summary
ShippingArrangementWrapper(ShippingArrangementAccessBean aabShippingArrangement)
          Constructor for ShippingArrangementWrapper.
 
Method Summary
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
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.
Method Detail

getAccessBean

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

isRestricted

public boolean isRestricted()
                     throws FinderException,
                            CreateException,
                            javax.naming.NamingException,
                            java.rmi.RemoteException
Returns true if the ShippingArrangement is restricted to certain ShippingJurisdictionGroups.
Returns:
true if the ShippingArranagement is restricted.
Throws:
FinderException
CreateException
javax.naming.NamingException
java.rmi.RemoteException

getJurisdictionGroupIds

public java.lang.Integer[] getJurisdictionGroupIds()
                                            throws FinderException,
                                                   CreateException,
                                                   javax.naming.NamingException,
                                                   java.rmi.RemoteException
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.
Throws:
FinderException
CreateException
javax.naming.NamingException
java.rmi.RemoteException

isValid

public boolean isValid(java.sql.Timestamp aTimestamp,
                       java.lang.Long alAddressId,
CommandContext aCommandContext)
                throws FinderException,
                       CreateException,
                       javax.naming.NamingException,
                       java.rmi.RemoteException,
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:
FinderException
CreateException
javax.naming.NamingException
java.rmi.RemoteException
ECException