Package org.libreplan.ws.calendars.api

Examples of org.libreplan.ws.calendars.api.BaseCalendarDTO


                        .toXMLGregorianCalendar(endDate));
    }

    public static ResourceCalendarDTO toDTO(ResourceCalendar calendar) {

        BaseCalendarDTO baseCalendarDTO = CalendarConverter.toDTO(calendar);

        List<CalendarAvailabilityDTO> calendarAvailabilityDTOs = new ArrayList<CalendarAvailabilityDTO>();
        for (CalendarAvailability calendarAvailability : calendar
                .getCalendarAvailabilities()) {
            calendarAvailabilityDTOs.add(toDTO(calendarAvailability));
View Full Code Here


        List<CalendarDataDTO> calendarDatas = new ArrayList<CalendarDataDTO>();
        calendarDatas.add(dataDTO_1);
        calendarDatas.add(dataDTO_2);

        /* Build Base Calendar list. */
        BaseCalendarDTO bc1 = new BaseCalendarDTO(getUniqueName(),
                getUniqueName(), null, calendarExceptions, Arrays
                        .asList(new CalendarDataDTO(Arrays
                                .asList(new HoursPerDayDTO(
                                        CalendarData.Days.MONDAY.name(),
                                        new Integer(8))), null, null)));

        String codeBaseCalendar = getUniqueName();
        BaseCalendarDTO bc2 = new BaseCalendarDTO(codeBaseCalendar,
                getUniqueName(), null, null, calendarDatas);

        BaseCalendarListDTO baseCalendars = createBaseCalendarListDTO(bc1, bc2);

        List<InstanceConstraintViolationsDTO> instanceConstraintViolationsList = calendarService
View Full Code Here

        calendarExceptions.add(exceptionDTO_2);
        calendarExceptions.add(exceptionDTO_3);
        calendarExceptions.add(exceptionDTO_4);

        /* Build Base Calendar list. */
        BaseCalendarDTO bc1 = new BaseCalendarDTO(getUniqueName(),
                getUniqueName(), null, calendarExceptions,
                new ArrayList<CalendarDataDTO>());

        BaseCalendarListDTO baseCalendars = createBaseCalendarListDTO(bc1);

View Full Code Here

        List<CalendarDataDTO> calendarDatas = new ArrayList<CalendarDataDTO>();
        calendarDatas.add(dataDTO_2);

        String codeBaseCalendar = getUniqueName();
        BaseCalendarDTO bc2 = new BaseCalendarDTO(codeBaseCalendar,
                getUniqueName(), null, null, calendarDatas);

        BaseCalendarListDTO baseCalendars = createBaseCalendarListDTO(bc2);

        List<InstanceConstraintViolationsDTO> instanceConstraintViolationsList = calendarService
View Full Code Here

        String parent = null;
        if (baseCalendar.getParent() != null) {
            parent = baseCalendar.getParent().getCode();
        }

        return new BaseCalendarDTO(baseCalendar.getCode(), baseCalendar
                .getName(), parent, calendarExceptionDTOs, calendarDataDTOs);
    }
View Full Code Here

TOP

Related Classes of org.libreplan.ws.calendars.api.BaseCalendarDTO

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.