|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object se.citerus.dddsample.domain.model.handling.HandlingEventFactory
public class HandlingEventFactory
Creates handling events.
Constructor Summary | |
---|---|
HandlingEventFactory(CargoRepository cargoRepository,
VoyageRepository voyageRepository,
LocationRepository locationRepository)
|
Method Summary | |
---|---|
HandlingEvent |
createHandlingEvent(java.util.Date registrationTime,
java.util.Date completionTime,
TrackingId trackingId,
VoyageNumber voyageNumber,
UnLocode unlocode,
HandlingEvent.Type type)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HandlingEventFactory(CargoRepository cargoRepository, VoyageRepository voyageRepository, LocationRepository locationRepository)
Method Detail |
---|
public HandlingEvent createHandlingEvent(java.util.Date registrationTime, java.util.Date completionTime, TrackingId trackingId, VoyageNumber voyageNumber, UnLocode unlocode, HandlingEvent.Type type) throws CannotCreateHandlingEventException
registrationTime
- time when this event was received by the systemcompletionTime
- when the event was completed, for example finished loadingtrackingId
- cargo tracking idvoyageNumber
- voyage numberunlocode
- United Nations Location Code for the location of the eventtype
- type of event
UnknownVoyageException
- if there's no voyage with this number
UnknownCargoException
- if there's no cargo with this tracking id
UnknownLocationException
- if there's no location with this UN Locode
CannotCreateHandlingEventException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |