Examples of RatingDto


Examples of com.gwtplatform.carstore.shared.dto.RatingDto

    public static RatingDto createDto(Rating rating) {
        if (rating == null) {
            return null;
        }

        RatingDto ratingDto = new RatingDto();
        ratingDto.setCar(Car.createDto(rating.getCar()));
        ratingDto.setId(rating.getId());
        ratingDto.setRating(rating.getRating());

        return ratingDto;
    }
View Full Code Here

Examples of com.gwtplatform.carstore.shared.dto.RatingDto

            civic = Car.createDto(carDao.put(Car.create(civic)));
            accord = Car.createDto(carDao.put(Car.create(accord)));
            lancer = Car.createDto(carDao.put(Car.create(lancer)));
            galant = Car.createDto(carDao.put(Car.create(galant)));

            RatingDto rating1 = new RatingDto(accord, 4);
            RatingDto rating2 = new RatingDto(civic, 2);
            RatingDto rating3 = new RatingDto(galant, 3);
            RatingDto rating4 = new RatingDto(lancer, 4);

            ratingDao.put(Rating.create(rating1));
            ratingDao.put(Rating.create(rating2));
            ratingDao.put(Rating.create(rating3));
            ratingDao.put(Rating.create(rating4));
View Full Code Here

Examples of com.gwtplatform.carstore.shared.dto.RatingDto

                .getCars();
    }

    private void onGetCarsSuccess(List<CarDto> carDtos) {
        getView().setAllowedCars(carDtos);
        getView().edit(new RatingDto());
    }
View Full Code Here

Examples of com.gwtplatform.carstore.shared.dto.RatingDto

                .getCars();
    }

    private void onGetCarsSuccess(List<CarDto> carDtos) {
        getView().setAllowedCars(carDtos);
        getView().edit(new RatingDto());
        RevealRootPopupContentEvent.fire(this, this);
    }
View Full Code Here

Examples of de.fhdw.ify208.ticketmaster.webapp.webservices.RatingDTO

     *
     * @return the rating of the event for the current order and customer (if available)
     */
    private RatingDTO findRating() {

        RatingDTO result = null;

        for (RatingDTO r : getEventDetail().getEventData().getRatings().getRating()) {

            if (r.getUserName().equals(_order.getCustomer().getUserName())) {

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.