se.citerus.dddsample.interfaces.tracking
Class CargoTrackingViewAdapter

java.lang.Object
  extended by se.citerus.dddsample.interfaces.tracking.CargoTrackingViewAdapter

public final class CargoTrackingViewAdapter
extends java.lang.Object

View adapter for displaying a cargo in a tracking context.


Nested Class Summary
 class CargoTrackingViewAdapter.HandlingEventViewAdapter
          Handling event view adapter component.
 
Constructor Summary
CargoTrackingViewAdapter(Cargo cargo, org.springframework.context.MessageSource messageSource, java.util.Locale locale, java.util.List<HandlingEvent> handlingEvents)
          Constructor.
 
Method Summary
 java.lang.String getDestination()
           
 java.lang.String getEta()
           
 java.util.List<CargoTrackingViewAdapter.HandlingEventViewAdapter> getEvents()
           
 java.lang.String getNextExpectedActivity()
           
 java.lang.String getOrigin()
           
 java.lang.String getStatusText()
           
 java.lang.String getTrackingId()
           
 boolean isMisdirected()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CargoTrackingViewAdapter

public CargoTrackingViewAdapter(Cargo cargo,
                                org.springframework.context.MessageSource messageSource,
                                java.util.Locale locale,
                                java.util.List<HandlingEvent> handlingEvents)
Constructor.

Parameters:
cargo -
messageSource -
locale -
handlingEvents -
Method Detail

getEvents

public java.util.List<CargoTrackingViewAdapter.HandlingEventViewAdapter> getEvents()
Returns:
An unmodifiable list of handling event view adapters.

getStatusText

public java.lang.String getStatusText()
Returns:
A translated string describing the cargo status.

getDestination

public java.lang.String getDestination()
Returns:
Cargo destination location.

getOrigin

public java.lang.String getOrigin()
Returns:
Cargo osigin location.

getTrackingId

public java.lang.String getTrackingId()
Returns:
Cargo tracking id.

getEta

public java.lang.String getEta()

getNextExpectedActivity

public java.lang.String getNextExpectedActivity()

isMisdirected

public boolean isMisdirected()
Returns:
True if cargo is misdirected.


Copyright © 2009. All Rights Reserved.