se.citerus.dddsample.interfaces.tracking
Class CargoTrackingViewAdapter
java.lang.Object
se.citerus.dddsample.interfaces.tracking.CargoTrackingViewAdapter
public final class CargoTrackingViewAdapter
- extends java.lang.Object
View adapter for displaying a cargo in a tracking context.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
-
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.