se.citerus.dddsample.interfaces.booking.facade.internal.assembler
Class ItineraryCandidateDTOAssembler

java.lang.Object
  extended by se.citerus.dddsample.interfaces.booking.facade.internal.assembler.ItineraryCandidateDTOAssembler

public class ItineraryCandidateDTOAssembler
extends java.lang.Object

Assembler class for the ItineraryCandidateDTO.


Constructor Summary
ItineraryCandidateDTOAssembler()
           
 
Method Summary
 Itinerary fromDTO(RouteCandidateDTO routeCandidateDTO, VoyageRepository voyageRepository, LocationRepository locationRepository)
           
 RouteCandidateDTO toDTO(Itinerary itinerary)
           
protected  LegDTO toLegDTO(Leg leg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItineraryCandidateDTOAssembler

public ItineraryCandidateDTOAssembler()
Method Detail

toDTO

public RouteCandidateDTO toDTO(Itinerary itinerary)
Parameters:
itinerary - itinerary
Returns:
A route candidate DTO

toLegDTO

protected LegDTO toLegDTO(Leg leg)
Parameters:
leg - leg
Returns:
A leg DTO

fromDTO

public Itinerary fromDTO(RouteCandidateDTO routeCandidateDTO,
                         VoyageRepository voyageRepository,
                         LocationRepository locationRepository)
Parameters:
routeCandidateDTO - route candidate DTO
voyageRepository - voyage repository
locationRepository - location repository
Returns:
An itinerary


Copyright © 2009. All Rights Reserved.