se.citerus.dddsample.application.impl
Class HandlingEventServiceImpl

java.lang.Object
  extended by se.citerus.dddsample.application.impl.HandlingEventServiceImpl
All Implemented Interfaces:
HandlingEventService

public final class HandlingEventServiceImpl
extends java.lang.Object
implements HandlingEventService


Constructor Summary
HandlingEventServiceImpl(HandlingEventRepository handlingEventRepository, ApplicationEvents applicationEvents, HandlingEventFactory handlingEventFactory)
           
 
Method Summary
 void registerHandlingEvent(java.util.Date completionTime, TrackingId trackingId, VoyageNumber voyageNumber, UnLocode unLocode, HandlingEvent.Type type)
          Registers a handling event in the system, and notifies interested parties that a cargo has been handled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlingEventServiceImpl

public HandlingEventServiceImpl(HandlingEventRepository handlingEventRepository,
                                ApplicationEvents applicationEvents,
                                HandlingEventFactory handlingEventFactory)
Method Detail

registerHandlingEvent

@Transactional(rollbackFor=CannotCreateHandlingEventException.class)
public void registerHandlingEvent(java.util.Date completionTime,
                                                                                        TrackingId trackingId,
                                                                                        VoyageNumber voyageNumber,
                                                                                        UnLocode unLocode,
                                                                                        HandlingEvent.Type type)
                           throws CannotCreateHandlingEventException
Description copied from interface: HandlingEventService
Registers a handling event in the system, and notifies interested parties that a cargo has been handled.

Specified by:
registerHandlingEvent in interface HandlingEventService
Parameters:
completionTime - when the event was completed
trackingId - cargo tracking id
voyageNumber - voyage number
unLocode - UN locode for the location where the event occurred
type - type of event
Throws:
CannotCreateHandlingEventException - if a handling event that represents an actual event that's relevant to a cargo we're tracking can't be created from the parameters


Copyright © 2009. All Rights Reserved.