Package org.libreplan.ws.common.api

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


                    .getInvalidValues()) {
                constraintViolationDTOs.add(toDTO(each));
            }
        }

        return new InstanceConstraintViolationsDTO(instanceId,
            constraintViolationDTOs);
    }
View Full Code Here


        for (InvalidValue i : invalidValues) {
            constraintViolationDTOs.add(toDTO(i));
        }

        return new InstanceConstraintViolationsDTO(instanceId,
            constraintViolationDTOs);
    }
View Full Code Here

        RecoverableErrorDTO recoverableErrorDTO = new RecoverableErrorDTO(
            recoverableErrorException.getErrorCode().ordinal() + 1,
            recoverableErrorException.getMessage(),
            properties);

        return new InstanceConstraintViolationsDTO(instanceId,
            recoverableErrorDTO);

    }
View Full Code Here

        InternalErrorDTO internalErrorDTO = new InternalErrorDTO(
            runtimeException.getMessage(),
            Util.getStackTrace(runtimeException));

        return new InstanceConstraintViolationsDTO(instanceId,
            internalErrorDTO);

    }
View Full Code Here

            new ArrayList<InstanceConstraintViolationsDTO>();
        long numItem = 1;

        for (DTO entityDTO : entityDTOs) {

            InstanceConstraintViolationsDTO instanceConstraintViolationsDTO =
                null;

            try {
                insertOrUpdate(entityDTO);
            } catch (ValidationException e) {
View Full Code Here

                            updateDeliveringDateInOrder(updateDeliveringDateDTO);
                            return null;
                        }
                    });
        } catch (ValidationException e) {
            InstanceConstraintViolationsDTO violation = ConstraintViolationConverter
                    .toDTO(new InstanceConstraintViolationsDTOId(Long.valueOf(1),
                            updateDeliveringDateDTO.externalCompanyNif, OrderDTO.ENTITY_TYPE), e);
            throw new ViolationError(violation);
        }
    }
View Full Code Here

                                    orderElementDTO);
                            return null;
                        }
                    });
        } catch (ValidationException e) {
            InstanceConstraintViolationsDTO violation = ConstraintViolationConverter
                    .toDTO(new InstanceConstraintViolationsDTOId(Long.valueOf(1),
                            orderElementDTO.code, OrderDTO.ENTITY_TYPE), e);
            throw new ViolationError(violation);
        }
    }
View Full Code Here

    public InstanceConstraintViolationsListDTO updateAdvancesOrEndDate(
            OrderElementWithAdvanceMeasurementsOrEndDateListDTO orderElementWithAdvanceMeasurementsListDTO) {

        List<InstanceConstraintViolationsDTO> instanceConstraintViolationsList = new ArrayList<InstanceConstraintViolationsDTO>();

        InstanceConstraintViolationsDTO instanceConstraintViolationsDTO = null;

        if (StringUtils.isEmpty(orderElementWithAdvanceMeasurementsListDTO.externalCompanyNif)) {
            return getErrorMessage("", "external company ID not specified");
        }
View Full Code Here

TOP

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

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.