Package org.libreplan.ws.common.api

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


        try {
            updateSubcontract(updateDeliveringDateDTO);
        } catch (ViolationError e) {
            return e.toViolationList();
        }
        return new InstanceConstraintViolationsListDTO();
    }
View Full Code Here


        try {
            doSubcontract(subcontractedTaskDataDTO);
        } catch (ViolationError e) {
            return e.toViolationList();
        }
        return new InstanceConstraintViolationsListDTO();
    }
View Full Code Here

        public List<InstanceConstraintViolationsDTO> getViolations() {
            return violations;
        }

        public InstanceConstraintViolationsListDTO toViolationList() {
            return new InstanceConstraintViolationsListDTO(violations);
        }
View Full Code Here

    @Autowired
    private IExternalCompanyDAO externalCompanyDAO;

    private InstanceConstraintViolationsListDTO getErrorMessage(String code, String message) {
        // FIXME review errors returned
        return new InstanceConstraintViolationsListDTO(
                Arrays.asList(InstanceConstraintViolationsDTO.create(
                        Util.generateInstanceId(1, code), message)));
    }
View Full Code Here

        if (instanceConstraintViolationsDTO != null) {
            instanceConstraintViolationsList.add(instanceConstraintViolationsDTO);
        }

        return new InstanceConstraintViolationsListDTO(instanceConstraintViolationsList);
    }
View Full Code Here

TOP

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

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.