Package org.libreplan.ws.calendarexceptiontypes.api

Examples of org.libreplan.ws.calendarexceptiontypes.api.CalendarExceptionTypeColorDTO


        calendarExceptionTypeColorFromDTO.put(destination, origin);
    }

    public final static CalendarExceptionTypeColorDTO toDTO(
            CalendarExceptionTypeColor resource) {
        CalendarExceptionTypeColorDTO value = calendarExceptionTypeColorToDTO
                .get(resource);

        if (value == null) {
            throw new RuntimeException(MessageFormat.format(
                    "Unable to convert {0} value to {1} type",
View Full Code Here


    public final static CalendarExceptionTypeDTO toDTO(
            CalendarExceptionType calendarExceptionType) {
        EffortDuration duration = calendarExceptionType.getDuration();
        int seconds = (duration != null) ? duration.getSeconds() : 0;

        CalendarExceptionTypeColorDTO colorDTO = CalendarExceptionTypeColorConverter
                .toDTO(calendarExceptionType.getColor());

        return new CalendarExceptionTypeDTO(calendarExceptionType.getCode(),
                calendarExceptionType.getName(), colorDTO,
                calendarExceptionType.isOverAssignableWithoutLimit(),
View Full Code Here

TOP

Related Classes of org.libreplan.ws.calendarexceptiontypes.api.CalendarExceptionTypeColorDTO

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.