|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The way an item is shipped to a customer. Some examples are same day, overnight and 2-day. Also known as a carrier service.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_CARRIER
|
static int |
DEFAULT_DELIVERY_DAYS
|
static java.lang.String |
DELIVERY_DAYS
|
static java.lang.String |
DISPLAY_CODE
|
static int |
MAX_DELIVERY_DAYS
|
Method Summary | |
---|---|
void |
addCarrier(Carrier carrier)
Adds the specified carrier to the list of carriers that provide this shipping method. |
void |
addCarrierZone(Carrier carrier,
CarrierShippingMethodZone carrierZone)
|
java.util.Set |
getCarriers()
Returns the list of carriers that provide this shipping method. |
int |
getCarrierTransitDays(Carrier carrier,
java.lang.String shipFromZipCode,
java.lang.String shipToZipCode)
|
Carrier |
getDefaultCarrier()
Returns the default carrier for this shipping method. |
int |
getDeliveryDays()
Returns the number of days it takes to deliver an item via this shipping method. |
java.lang.String |
getDescription()
|
java.lang.String |
getDisplayCode()
|
boolean |
hasCarrier(Carrier carrier)
Checks to see if this carrier is valid for this shipping method |
boolean |
isRushDeliveryForCarrier(Carrier carrier)
Returns whether the specified carrier is rush delivery for this shipping method. |
void |
removeCarrier(Carrier carrier)
Removes the specified carrier from the list of carriers that provide this shipping method. |
void |
setDefaultCarrier(Carrier carrier)
Sets the default carrier for this shipping method. |
void |
setDeliveryDays(int deliveryDays)
Sets the number of days it takes to deliver an item via this shipping method. |
void |
setDescription(java.lang.String description)
Sets the description of this shipping method. |
void |
setRushDeliveryForCarrier(Carrier carrier,
boolean isRushDelivery)
Sets the rush delivery for the specified carrier for this shipping method. |
void |
submit()
Saves (i.e., creates or updates) this shipping method. |
Methods inherited from interface com.retek.commons.component.DistributedObject |
---|
debugToString, discardChanges, getContext, getId, getReference, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isPersisted, refresh |
Methods inherited from interface com.retek.commons.component.BusinessObject |
---|
getBusinessInterface |
Methods inherited from interface com.retek.swing11.commons.type.Displayable |
---|
toDisplayString |
Field Detail |
public static final java.lang.String DELIVERY_DAYS
public static final java.lang.String DEFAULT_CARRIER
public static final java.lang.String DISPLAY_CODE
public static final int DEFAULT_DELIVERY_DAYS
public static final int MAX_DELIVERY_DAYS
Method Detail |
public java.lang.String getDisplayCode() throws SystemException
SystemException
public java.lang.String getDescription() throws SystemException
SystemException
public int getDeliveryDays() throws SystemException
SystemException
public Carrier getDefaultCarrier() throws SystemException
SystemException
public boolean isRushDeliveryForCarrier(Carrier carrier) throws SystemException
SystemException
public java.util.Set getCarriers() throws SystemException
SystemException
public void setDescription(java.lang.String description) throws SystemException
SystemException
public void setDeliveryDays(int deliveryDays) throws SystemException
SystemException
public void addCarrier(Carrier carrier) throws SystemException
SystemException
public void removeCarrier(Carrier carrier) throws SystemException
SystemException
public void setDefaultCarrier(Carrier carrier) throws SystemException
SystemException
public void setRushDeliveryForCarrier(Carrier carrier, boolean isRushDelivery) throws SystemException
SystemException
public void submit() throws InvalidShippingMethodException, SystemException, BusinessException
MAX_DELIVERY_DAYS
, and the default carrier must be set.
InvalidShippingMethodException
- if the delivery days are invalid, or the
default carrier is not set
ShippingBusinessException
- if trying to create a new shipping method with an
existing ID
SystemException
BusinessException
public int getCarrierTransitDays(Carrier carrier, java.lang.String shipFromZipCode, java.lang.String shipToZipCode) throws SystemException, BusinessException
SystemException
BusinessException
public void addCarrierZone(Carrier carrier, CarrierShippingMethodZone carrierZone) throws SystemException
SystemException
public boolean hasCarrier(Carrier carrier) throws SystemException
SystemException
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |