|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.retek.commons.component.impl.BusinessObjectImpl
com.retek.commons.component.impl.DistributedObjectImpl
com.retek.component.shipping.impl.ShippingMethodImpl
Nested Class Summary |
Nested classes inherited from class com.retek.commons.component.impl.DistributedObjectImpl |
DistributedObjectImpl.DtoBurgular |
Field Summary |
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl |
context |
Fields inherited from interface com.retek.component.shipping.ShippingMethod |
DEFAULT_CARRIER, DEFAULT_DELIVERY_DAYS, DELIVERY_DAYS, DISPLAY_CODE, MAX_DELIVERY_DAYS |
Constructor Summary | |
ShippingMethodImpl(DistributedContext context,
DistributedReference reference,
boolean createHollow)
|
|
ShippingMethodImpl(DistributedContext context,
DistributedReference reference,
java.lang.String displayCode,
java.lang.String description)
|
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)
|
protected java.lang.String |
attributesToString()
|
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. |
protected Dto |
readLatest()
|
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. |
void |
submitFromRib()
|
java.lang.String |
toDisplayString()
|
Methods inherited from class com.retek.commons.component.impl.DistributedObjectImpl |
createEmptyDto, debugToString, discardChanges, discardChangesShallow, equals, getGenericDto, getId, getReference, getReference, getVersion, hashCode, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isHollow, isPersisted, markAllDeleted, refresh, toString, wrap, wrap, wrap, wrap |
Methods inherited from class com.retek.commons.component.impl.BusinessObjectImpl |
checkRelation, checkRelation, getBusinessInterface, getContext |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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 |
Constructor Detail |
public ShippingMethodImpl(DistributedContext context, DistributedReference reference, boolean createHollow) throws SystemException
public ShippingMethodImpl(DistributedContext context, DistributedReference reference, java.lang.String displayCode, java.lang.String description) throws SystemException
Method Detail |
protected Dto readLatest() throws SystemException
readLatest
in class DistributedObjectImpl
SystemException
public java.lang.String getDisplayCode() throws SystemException
getDisplayCode
in interface ShippingMethod
SystemException
public java.lang.String getDescription() throws SystemException
getDescription
in interface ShippingMethod
SystemException
public java.util.Set getCarriers() throws SystemException
ShippingMethod
getCarriers
in interface ShippingMethod
SystemException
public void addCarrier(Carrier carrier) throws SystemException
ShippingMethod
addCarrier
in interface ShippingMethod
SystemException
public void removeCarrier(Carrier carrier) throws SystemException
ShippingMethod
removeCarrier
in interface ShippingMethod
SystemException
public int getDeliveryDays() throws SystemException
ShippingMethod
getDeliveryDays
in interface ShippingMethod
SystemException
public void setDeliveryDays(int deliveryDays) throws SystemException
ShippingMethod
setDeliveryDays
in interface ShippingMethod
SystemException
public Carrier getDefaultCarrier() throws SystemException
ShippingMethod
getDefaultCarrier
in interface ShippingMethod
SystemException
public void setDefaultCarrier(Carrier carrier) throws SystemException
ShippingMethod
setDefaultCarrier
in interface ShippingMethod
SystemException
public void setRushDeliveryForCarrier(Carrier carrier, boolean isRushDelivery) throws SystemException
ShippingMethod
setRushDeliveryForCarrier
in interface ShippingMethod
SystemException
public boolean isRushDeliveryForCarrier(Carrier carrier) throws SystemException
ShippingMethod
isRushDeliveryForCarrier
in interface ShippingMethod
SystemException
public boolean hasCarrier(Carrier carrier) throws SystemException
ShippingMethod
hasCarrier
in interface ShippingMethod
SystemException
public void setDescription(java.lang.String description) throws SystemException
ShippingMethod
setDescription
in interface ShippingMethod
SystemException
public void submit() throws InvalidShippingMethodException, SystemException, BusinessException
ShippingMethod
MAX_DELIVERY_DAYS
, and the default carrier must be set.
submit
in interface ShippingMethod
InvalidShippingMethodException
- if the delivery days are invalid, or the
default carrier is not set
SystemException
BusinessException
public void submitFromRib() throws InvalidShippingMethodException, SystemException, BusinessException
submitFromRib
in interface ShippingMethodRib
InvalidShippingMethodException
SystemException
BusinessException
public void addCarrierZone(Carrier carrier, CarrierShippingMethodZone carrierZone) throws SystemException
addCarrierZone
in interface ShippingMethod
SystemException
public int getCarrierTransitDays(Carrier carrier, java.lang.String shipFromZipCode, java.lang.String shipToZipCode) throws SystemException, BusinessException
getCarrierTransitDays
in interface ShippingMethod
SystemException
BusinessException
public java.lang.String toDisplayString()
toDisplayString
in interface com.retek.swing11.commons.type.Displayable
protected java.lang.String attributesToString() throws SystemException
attributesToString
in class DistributedObjectImpl
SystemException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |