Package org.libreplan.ws.calendars.api

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


        List<HoursPerDayDTO> listHoursPerDayDTO = new ArrayList<HoursPerDayDTO>();
        listHoursPerDayDTO.add(hoursPerDayDTO_1);
        listHoursPerDayDTO.add(hoursPerDayDTO_2);

        /* missing code,date, hoursPerDays and parent */
        CalendarDataDTO dataDTO_1 = new CalendarDataDTO(null, null, null);
        CalendarDataDTO dataDTO_2 = new CalendarDataDTO("codeData",
                listHoursPerDayDTO, toXml(getValidDate(4)),
                getDefaultCalendar()
                        .getCode());

        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();
View Full Code Here


                new Integer(4));
        List<HoursPerDayDTO> listHoursPerDayDTO = new ArrayList<HoursPerDayDTO>();
        listHoursPerDayDTO.add(hoursPerDayDTO_1);

        /* missing code,date, hoursPerDays and parent */
        CalendarDataDTO dataDTO_2 = new CalendarDataDTO("codeData_2",
                listHoursPerDayDTO, toXml(getInvalidDate()),
                getDefaultCalendar()
                        .getCode());

        List<CalendarDataDTO> calendarDatas = new ArrayList<CalendarDataDTO>();
View Full Code Here

                : null;
        String parentCalendar = (calendarData.getParent() != null) ? calendarData
                .getParent().getCode()
                : null;

        return new CalendarDataDTO(calendarData.getCode(), hoursPerDayDTOs,
                expiringDate, parentCalendar);
    }
View Full Code Here

TOP

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

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.