se.citerus.dddsample.interfaces.booking.facade.internal
Class BookingServiceFacadeImpl
java.lang.Object
se.citerus.dddsample.interfaces.booking.facade.internal.BookingServiceFacadeImpl
- All Implemented Interfaces:
- java.rmi.Remote, BookingServiceFacade
public class BookingServiceFacadeImpl
- extends java.lang.Object
- implements BookingServiceFacade
This implementation has additional support from the infrastructure, for exposing as an RMI
service and for keeping the OR-mapper unit-of-work open during DTO assembly,
analogous to the view rendering for web interfaces.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BookingServiceFacadeImpl
public BookingServiceFacadeImpl()
listShippingLocations
public java.util.List<LocationDTO> listShippingLocations()
- Specified by:
listShippingLocations
in interface BookingServiceFacade
bookNewCargo
public java.lang.String bookNewCargo(java.lang.String origin,
java.lang.String destination,
java.util.Date arrivalDeadline)
- Specified by:
bookNewCargo
in interface BookingServiceFacade
loadCargoForRouting
public CargoRoutingDTO loadCargoForRouting(java.lang.String trackingId)
- Specified by:
loadCargoForRouting
in interface BookingServiceFacade
assignCargoToRoute
public void assignCargoToRoute(java.lang.String trackingIdStr,
RouteCandidateDTO routeCandidateDTO)
- Specified by:
assignCargoToRoute
in interface BookingServiceFacade
changeDestination
public void changeDestination(java.lang.String trackingId,
java.lang.String destinationUnLocode)
throws java.rmi.RemoteException
- Specified by:
changeDestination
in interface BookingServiceFacade
- Throws:
java.rmi.RemoteException
listAllCargos
public java.util.List<CargoRoutingDTO> listAllCargos()
- Specified by:
listAllCargos
in interface BookingServiceFacade
requestPossibleRoutesForCargo
public java.util.List<RouteCandidateDTO> requestPossibleRoutesForCargo(java.lang.String trackingId)
throws java.rmi.RemoteException
- Specified by:
requestPossibleRoutesForCargo
in interface BookingServiceFacade
- Throws:
java.rmi.RemoteException
setBookingService
public void setBookingService(BookingService bookingService)
setLocationRepository
public void setLocationRepository(LocationRepository locationRepository)
setCargoRepository
public void setCargoRepository(CargoRepository cargoRepository)
setVoyageRepository
public void setVoyageRepository(VoyageRepository voyageRepository)
Copyright © 2009. All Rights Reserved.