com.retek.component.shipping.impl
Class CarrierImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.DistributedObjectImpl
          extended bycom.retek.component.shipping.impl.CarrierImpl
All Implemented Interfaces:
BusinessObject, Carrier, com.retek.swing11.commons.type.Displayable, DistributedObject

public class CarrierImpl
extends DistributedObjectImpl
implements Carrier


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.Carrier
ACCOUNT_NUMBER, DESCRIPTION, DISPLAY_CODE, PICKUP, SHIPMENT_TRACKING_NUMBER_URL_PATTERN, TRACKING_NUMBER_URL_WILDCARD
 
Constructor Summary
CarrierImpl(DistributedContext context, DistributedReference reference, boolean createHollow)
           
CarrierImpl(DistributedContext context, DistributedReference reference, java.lang.String displayCode, java.lang.String description)
           
 
Method Summary
 java.lang.String getAccountNumber()
          Get the account number for the billing account number of the carrier.
 RDate getCutOffTime()
           
 java.lang.String getDescription()
           
 java.lang.String getDisplayCode()
           
 java.lang.String getShipmentTrackingUrl(java.lang.String shipmentTrackingNumber)
          Return a valid shipment tracking url for a given shipment tracking number (from a shipment container).
 java.lang.String getShipmentTrackingUrlPattern()
          Return the shipment tracking website url pattern string.
 boolean isDefaultPickupCarrier()
          Get the state of this objects deafult pickup nature in the system.
 boolean isPickup()
          Get the state of this object pickup nature.
protected  Dto readLatest()
           
 void setAccountNumber(java.lang.String accountNumber)
          Set the account number to the billing account number for a carrier.
 void setCutOffTime(RDate cutOffTime)
           
 void setDefaultPickupCarrier(boolean isDefaultPickupCarrier)
          Set the state of this object default pickup nature in the system.
 void setDescription(java.lang.String description)
           
 void setPickup(boolean canPickup)
          Set the state of this object pickup nature.
 void setShipmentTrackingUrlPattern(java.lang.String shipmentTrackingUrlPattern)
          Set the shipment tracking url pattern for the carrier's tracking website.
 void submit()
           
 java.lang.String toDisplayString()
           
 
Methods inherited from class com.retek.commons.component.impl.DistributedObjectImpl
attributesToString, 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

CarrierImpl

public CarrierImpl(DistributedContext context,
                   DistributedReference reference,
                   boolean createHollow)
            throws SystemException

CarrierImpl

public CarrierImpl(DistributedContext context,
                   DistributedReference reference,
                   java.lang.String displayCode,
                   java.lang.String description)
            throws SystemException
Method Detail

readLatest

protected Dto readLatest()
                  throws SystemException
Overrides:
readLatest in class DistributedObjectImpl
Throws:
SystemException

getDisplayCode

public java.lang.String getDisplayCode()
                                throws SystemException
Specified by:
getDisplayCode in interface Carrier
Throws:
SystemException

getCutOffTime

public RDate getCutOffTime()
                    throws SystemException
Specified by:
getCutOffTime in interface Carrier
Throws:
SystemException

getDescription

public java.lang.String getDescription()
                                throws SystemException
Specified by:
getDescription in interface Carrier
Throws:
SystemException

setDescription

public void setDescription(java.lang.String description)
                    throws SystemException
Specified by:
setDescription in interface Carrier
Throws:
SystemException

setCutOffTime

public void setCutOffTime(RDate cutOffTime)
                   throws SystemException
Specified by:
setCutOffTime in interface Carrier
Throws:
SystemException

getShipmentTrackingUrl

public java.lang.String getShipmentTrackingUrl(java.lang.String shipmentTrackingNumber)
                                        throws SystemException,
                                               BusinessException
Description copied from interface: Carrier
Return a valid shipment tracking url for a given shipment tracking number (from a shipment container).

Specified by:
getShipmentTrackingUrl in interface Carrier
Parameters:
shipmentTrackingNumber - tracking number from shipment
Returns:
String shipment tracking url
Throws:
SystemException
BusinessException

getShipmentTrackingUrlPattern

public java.lang.String getShipmentTrackingUrlPattern()
                                               throws SystemException
Description copied from interface: Carrier
Return the shipment tracking website url pattern string. Ex. http:\\mycarrier\tracking\number=?

Specified by:
getShipmentTrackingUrlPattern in interface Carrier
Returns:
String shipment tracking url pattern string
Throws:
SystemException

setShipmentTrackingUrlPattern

public void setShipmentTrackingUrlPattern(java.lang.String shipmentTrackingUrlPattern)
                                   throws SystemException,
                                          BusinessException
Description copied from interface: Carrier
Set the shipment tracking url pattern for the carrier's tracking website.

Specified by:
setShipmentTrackingUrlPattern in interface Carrier
Parameters:
shipmentTrackingUrlPattern - carrier tracking url pattern Ex. http://mycarrier/tracking/number=?
Throws:
SystemException
BusinessException

submit

public void submit()
            throws BusinessException,
                   SystemException
Specified by:
submit in interface Carrier
Throws:
BusinessException
SystemException

setAccountNumber

public void setAccountNumber(java.lang.String accountNumber)
                      throws SystemException
Description copied from interface: Carrier
Set the account number to the billing account number for a carrier.

Specified by:
setAccountNumber in interface Carrier
Parameters:
accountNumber - the billing account number for the carrier.
Throws:
SystemException

getAccountNumber

public java.lang.String getAccountNumber()
                                  throws SystemException
Description copied from interface: Carrier
Get the account number for the billing account number of the carrier.

Specified by:
getAccountNumber in interface Carrier
Returns:
String the accountNumber for the billing account number of the carrier.
Throws:
SystemException

setPickup

public void setPickup(boolean canPickup)
               throws SystemException
Description copied from interface: Carrier
Set the state of this object pickup nature. Can pickup?

Specified by:
setPickup in interface Carrier
Throws:
SystemException

isPickup

public boolean isPickup()
                 throws SystemException
Description copied from interface: Carrier
Get the state of this object pickup nature. Can pickup?

Specified by:
isPickup in interface Carrier
Returns:
boolean Can this carrier pickup?
Throws:
SystemException

setDefaultPickupCarrier

public void setDefaultPickupCarrier(boolean isDefaultPickupCarrier)
                             throws SystemException
Description copied from interface: Carrier
Set the state of this object default pickup nature in the system. Is this the default pickup carrier?

Specified by:
setDefaultPickupCarrier in interface Carrier
Throws:
SystemException

isDefaultPickupCarrier

public boolean isDefaultPickupCarrier()
                               throws SystemException
Description copied from interface: Carrier
Get the state of this objects deafult pickup nature in the system. Is this the default pickup carrier for the system?

Specified by:
isDefaultPickupCarrier in interface Carrier
Returns:
boolean Is this the default pickup carrier for the system?
Throws:
SystemException

toDisplayString

public java.lang.String toDisplayString()
Specified by:
toDisplayString in interface com.retek.swing11.commons.type.Displayable


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28