se.citerus.dddsample.interfaces.booking.facade.internal.assembler
Class ItineraryCandidateDTOAssembler
java.lang.Object
se.citerus.dddsample.interfaces.booking.facade.internal.assembler.ItineraryCandidateDTOAssembler
public class ItineraryCandidateDTOAssembler
- extends java.lang.Object
Assembler class for the ItineraryCandidateDTO.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ItineraryCandidateDTOAssembler
public ItineraryCandidateDTOAssembler()
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 DTOvoyageRepository
- voyage repositorylocationRepository
- location repository
- Returns:
- An itinerary
Copyright © 2009. All Rights Reserved.