Package org.libreplan.ws.subcontract.api

Examples of org.libreplan.ws.subcontract.api.SubcontractedTaskDataDTO


        String orderLineCode = "order-line-code";

        OrderElementDTO orderElementDTO = givenBasicOrderLineDTO(orderLineCode);

        SubcontractedTaskDataDTO subcontractedTaskDataDTO = new SubcontractedTaskDataDTO();
        subcontractedTaskDataDTO.orderElementDTO = orderElementDTO;

        List<InstanceConstraintViolationsDTO> instanceConstraintViolationsList = subcontractService
                .subcontract(subcontractedTaskDataDTO).instanceConstraintViolationsList;
        assertThat(instanceConstraintViolationsList.size(), equalTo(1));
View Full Code Here


        int previous = orderDAO.getOrders().size();

        ExternalCompany externalCompany = getClientExternalCompanySaved(
                "Company", "company-nif");

        SubcontractedTaskDataDTO subcontractedTaskDataDTO = new SubcontractedTaskDataDTO();
        subcontractedTaskDataDTO.externalCompanyNif = externalCompany.getNif();

        List<InstanceConstraintViolationsDTO> instanceConstraintViolationsList = subcontractService
                .subcontract(subcontractedTaskDataDTO).instanceConstraintViolationsList;
        assertThat(instanceConstraintViolationsList.size(), equalTo(1));
View Full Code Here

        OrderElementDTO orderElementDTO = givenBasicOrderLineDTO(orderLineCode);
        ExternalCompany externalCompany = getClientExternalCompanySaved(
                "Company", "company-nif");

        SubcontractedTaskDataDTO subcontractedTaskDataDTO = new SubcontractedTaskDataDTO();
        subcontractedTaskDataDTO.orderElementDTO = orderElementDTO;
        subcontractedTaskDataDTO.externalCompanyNif = externalCompany.getNif();

        String orderName = "Work description";
        String orderCustomerReference = "client-reference-code";
View Full Code Here

    }

    private void makeSubcontractRequestRequest_InitialSent(
            SubcontractedTaskData subcontractedTaskData)
            throws ConnectionProblemsException, UnrecoverableErrorServiceException {
        SubcontractedTaskDataDTO subcontractedTaskDataDTO = getSubcontractedTaskData(subcontractedTaskData);

        ExternalCompany externalCompany = subcontractedTaskData
                .getExternalCompany();

        NaiveTrustProvider.setAlwaysTrust(true);
View Full Code Here

            return exportXML_UpdateSubcontractor(subcontractedTaskData);
        }
    }

    public String exportXML_CreateSubcontractor(SubcontractedTaskData subcontractedTaskData){
        SubcontractedTaskDataDTO subcontractedTaskDataDTO = getSubcontractedTaskData(subcontractedTaskData);

        StringWriter xml = new StringWriter();
        try {
            JAXBContext jaxbContext = JAXBContext
                    .newInstance(SubcontractedTaskDataDTO.class);
View Full Code Here

    }

    public final static SubcontractedTaskDataDTO toDTO(String companyCode,
            SubcontractedTaskData subcontractedTaskData,
            OrderElementDTO orderElementDTO) {
        return new SubcontractedTaskDataDTO(companyCode,
                subcontractedTaskData.getWorkDescription(),
                subcontractedTaskData.getSubcontractPrice(),
                subcontractedTaskData.getSubcontractedCode(), orderElementDTO,
                toXmlDate(getDeliverDate(subcontractedTaskData)));
    }
View Full Code Here

TOP

Related Classes of org.libreplan.ws.subcontract.api.SubcontractedTaskDataDTO

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.