public class ShippingArrangementWrapper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright string.
|
Constructor and Description |
---|
ShippingArrangementWrapper(ShippingArrangementAccessBean aabShippingArrangement)
Constructor for ShippingArrangementWrapper.
|
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.
|
public static final java.lang.String COPYRIGHT
public ShippingArrangementWrapper(ShippingArrangementAccessBean aabShippingArrangement)
aabShippingArrangement
- The ShippingArrangementAccessBean
.public ShippingArrangementAccessBean getAccessBean()
public boolean isRestricted()
public java.lang.Integer[] getJurisdictionGroupIds()
public boolean isValid(java.sql.Timestamp aTimestamp, java.lang.Long alAddressId, CommandContext aCommandContext) throws ECException
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.
ECException