Package com.evasion.entity.geolocation

Examples of com.evasion.entity.geolocation.Location


    }

    public List<Location> getSelectedBreakPoints() {
        if (selectedBreakPoints == null) {
            selectedBreakPoints = new ArrayList<Location>(1);
            selectedBreakPoints.add(new Location());
        }
        return selectedBreakPoints;
    }
View Full Code Here


    }

    public List<Location> getSelectedBreakPoints() {
        if (selectedBreakPoints == null) {
            selectedBreakPoints = new ArrayList<Location>(1);
            selectedBreakPoints.add(new Location());
        }
        return selectedBreakPoints;
    }
View Full Code Here

            final Contribution contribution, final Itinerary itinerary)
            throws EvasionException {
        final BookTravel bookTravel = bookTravelDAO.findById(idBookTravel);
        contribution.setUser(this.getPrinciaplUserName());
        for (int i = 0; i < itinerary.getBreakPoints().size(); i++) {
            Location loc = itinerary.getBreakPoints().get(i);

            geolocEJB.getLocationByid(loc.getId());
            itinerary.replaceBreakPoint(i, geolocEJB.getLocationByid(loc.getId()));
        }
        final RoadMap roadMap = new RoadMap(contribution, itinerary, bookTravel);

        roadMapDAO.persist(roadMap);
        eventEJB.addEvent(Constante.PLUGIN_NAME, RoadMap.class.getSimpleName(),
View Full Code Here

    public List<ITravelStep> getBookTravelStep(Long idBookTravel) {
        List<RoadMap> roadMaps = roadMapDAO.selectRoadMapByDescendingExecutionDate(idBookTravel, 999);
        List<ITravelStep> result = new ArrayList<ITravelStep>();
        for (RoadMap roadMap : roadMaps) {
            List<Location> breakPoints = roadMap.getItinerary().getBreakPoints();
            Location start;
            Location end;

            if (breakPoints.size() > 0) {
                start = breakPoints.get(0);
            } else {
                start = null;
View Full Code Here

            final Contribution contribution, final Itinerary itinerary)
            throws EvasionException {
        final BookTravel bookTravel = bookTravelDAO.findById(idBookTravel);
        contribution.setUser(this.getPrinciaplUserName());
        for (int i = 0; i < itinerary.getBreakPoints().size(); i++) {
            Location loc = itinerary.getBreakPoints().get(i);

            geolocEJB.getLocationByid(loc.getId());
            itinerary.replaceBreakPoint(i, geolocEJB.getLocationByid(loc.getId()));
        }
        final RoadMap roadMap = new RoadMap(contribution, itinerary, bookTravel);

        roadMapDAO.persist(roadMap);
        eventEJB.addEvent(Constante.PLUGIN_NAME, RoadMap.class.getSimpleName(),
View Full Code Here

    public List<ITravelStep> getBookTravelStep(Long idBookTravel) {
        List<RoadMap> roadMaps = roadMapDAO.selectRoadMapByDescendingExecutionDate(idBookTravel, 999);
        List<ITravelStep> result = new ArrayList<ITravelStep>();
        for (RoadMap roadMap : roadMaps) {
            List<Location> breakPoints = roadMap.getItinerary().getBreakPoints();
            Location start;
            Location end;

            if (breakPoints.size() > 0) {
                start = breakPoints.get(0);
            } else {
                start = null;
View Full Code Here

TOP

Related Classes of com.evasion.entity.geolocation.Location

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.