Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright string.
|
static java.lang.String |
REGISTRY_NAME
The name of this registry.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer[] |
getEffectiveFulfillmentCenterIds(java.lang.Integer anStoreId,
java.lang.Integer anShippingModeId,
java.sql.Timestamp aTimestamp)
|
java.lang.Integer[] |
getEffectiveFulfillmentCenterIds(java.lang.Integer anStoreId,
java.lang.Integer anShippingModeId,
java.sql.Timestamp aTimestamp,
java.lang.Long anAddressId,
CommandContext aCommandContext)
Returns an array of fulfillment center identifiers that are effective for the specified store,
shipping mode, time, and shipping address.
|
static FulfillmentRegistry |
getInstance()
Returns the FulfillmentRegistry instance.
|
ShippingArrangementCache |
getShippingArrangement()
Returns singleton shippingArrangementCache, the caller should always use this singleton cache instead to create new cache.
|
void |
initialize()
Initialize this registry instance.
|
boolean |
isFulfillmentCenterEffective(java.lang.Integer anFulfillmentCenterId,
java.lang.Integer anStoreId,
java.lang.Integer anShippingModeId,
java.sql.Timestamp aTimestamp)
|
boolean |
isFulfillmentCenterEffective(java.lang.Integer anFulfillmentCenterId,
java.lang.Integer anStoreId,
java.lang.Integer anShippingModeId,
java.sql.Timestamp aTimestamp,
java.lang.Long anAddressId,
CommandContext aCommandContext)
Returns true if the specified fulfillment center is effective for the specified store,
shipping mode, time, and shipping address.
|
boolean |
isFulfillmentCenterRestricted(java.lang.Integer anFulfillmentCenterId,
java.lang.Integer anStoreId,
java.lang.Integer anShippingModeId,
java.sql.Timestamp aTimestamp)
Returns true if any shipping arrangements are restricted to certain shipping jurisdiction groups.
|
boolean |
isShippingArrangementRestricted(java.lang.Integer anStoreId,
java.lang.Integer anShippingModeId,
java.sql.Timestamp aTimestamp)
Returns true if any shipping arrangements (that are effective for the specified store, shipping mode, and time)
are restricted to certain shipping jurisdiction groups.
|
void |
refresh()
Refreshes this registry instance.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String REGISTRY_NAME
public static FulfillmentRegistry getInstance()
public void initialize() throws java.lang.Exception
initialize
in interface Registry
java.lang.Exception
Registry.initialize()
public void refresh() throws java.lang.Exception
refresh
in interface Registry
java.lang.Exception
Registry.refresh()
public boolean isFulfillmentCenterEffective(java.lang.Integer anFulfillmentCenterId, java.lang.Integer anStoreId, java.lang.Integer anShippingModeId, java.sql.Timestamp aTimestamp) throws ECException
isFulfillmentCenterEffective(Integer,Integer,Integer,Timestamp,Long,CommandContext)
.anFulfillmentCenterId
- the fulfillmentCenterIdanStoreId
- the storeIdanShippingModeId
- the shippingModeIdaTimestamp
- the time
ECException
- public java.lang.Integer[] getEffectiveFulfillmentCenterIds(java.lang.Integer anStoreId, java.lang.Integer anShippingModeId, java.sql.Timestamp aTimestamp) throws ECException
anStoreId
- the storeIdanShippingModeId
- the shippingModeIdaTimestamp
- the time
ECException
- public boolean isFulfillmentCenterEffective(java.lang.Integer anFulfillmentCenterId, java.lang.Integer anStoreId, java.lang.Integer anShippingModeId, java.sql.Timestamp aTimestamp, java.lang.Long anAddressId, CommandContext aCommandContext) throws ECException
anFulfillmentCenterId
- the fulfillment center identifier.anStoreId
- the store identifier.anShippingModeId
- the shipping mode identifier.aTimestamp
- the time.anAddressId
- if not null, the results are limited to those that can ship to this shipping address.aCommandContext
- the command context. Can be null if anAddressId is null.
ECException
public java.lang.Integer[] getEffectiveFulfillmentCenterIds(java.lang.Integer anStoreId, java.lang.Integer anShippingModeId, java.sql.Timestamp aTimestamp, java.lang.Long anAddressId, CommandContext aCommandContext) throws ECException
anStoreId
- the store identifier.anShippingModeId
- the shipping mode identifier.aTimestamp
- the time.anAddressId
- if not null, the results are limited to those that can ship to this shipping address.aCommandContext
- the command context. Can be null if anAddressId is null.
ECException
public boolean isShippingArrangementRestricted(java.lang.Integer anStoreId, java.lang.Integer anShippingModeId, java.sql.Timestamp aTimestamp) throws ECException
anStoreId
- the identifier of the store.anShippingModeId
- the shipping mode identifier.aTimestamp
- the time.
ECException
public boolean isFulfillmentCenterRestricted(java.lang.Integer anFulfillmentCenterId, java.lang.Integer anStoreId, java.lang.Integer anShippingModeId, java.sql.Timestamp aTimestamp) throws ECException
anFulfillmentCenterId
- the fulfillment center.anStoreId
- the identifier of the store.anShippingModeId
- the shipping mode identifier.aTimestamp
- the time.
ECException
public ShippingArrangementCache getShippingArrangement()