Package org.libreplan.ws.common.api

Examples of org.libreplan.ws.common.api.ResourceEnumDTO


        resourceEnumFromDTO.put(ResourceEnumDTO.MACHINE, ResourceEnum.MACHINE);

    }

    public final static ResourceEnumDTO toDTO(ResourceEnum resource) {
        ResourceEnumDTO value = resourceEnumToDTO.get(resource);

        if (value == null) {
            throw new RuntimeException(MessageFormat.format(
                    "Unable to convert {0} " + "value to {1} type",
                    resource.toString(), ResourceEnumDTO.class.getName()));
View Full Code Here


                .getUnitPrice(), estimatedAvailability);
    }

    public final static HoursGroupDTO toDTO(HoursGroup hoursGroup,
            ConfigurationOrderElementConverter configuration) {
        ResourceEnumDTO resourceType = ResourceEnumConverter.toDTO(hoursGroup
                .getResourceType());

        Set<CriterionRequirementDTO> criterionRequirements = new HashSet<CriterionRequirementDTO>();
        if (configuration.isCriterionRequirements()) {
            for (CriterionRequirement criterionRequirement : hoursGroup
View Full Code Here

TOP

Related Classes of org.libreplan.ws.common.api.ResourceEnumDTO

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.