Package org.libreplan.importers.tim

Examples of org.libreplan.importers.tim.PersonDTO


        properties.load(new FileInputStream(filename));
    }

    private TimeRegistrationDTO createTimeRegistration(String name,
            String productCode, LocalDate localDate, Double hours) {
        PersonDTO personDTO = new PersonDTO();
        personDTO.setName(name);
        personDTO.setOptions(TimOptions.UPDATE_OR_INSERT);

        ProductDTO productDTO = new ProductDTO();
        productDTO.setOptions(TimOptions.UPDATE_OR_INSERT);
        productDTO.setCode(productCode);
View Full Code Here


        filterDTO.setDepartment(departmentDTO);

        rosterDTO.setFilter(filterDTO);

        List<PersonDTO> personDTOs = new ArrayList<PersonDTO>();
        personDTOs.add(new PersonDTO());
        rosterDTO.setPersons(personDTOs);

        rosterDTO.setRosterCategories(rosterCategories);

        rosterDTO.setDepartment(departmentDTO);
View Full Code Here

            synchronizationInfo.addFailedReason(_("Worker \"{0}\" not found",
                    workerCode));
            return null;
        }

        PersonDTO personDTO = new PersonDTO();
        personDTO.setName(worker.getName());
        personDTO.setOptions(TimOptions.UPDATE_OR_INSERT);

        ProductDTO productDTO = new ProductDTO();
        productDTO.setOptions(TimOptions.UPDATE_OR_INSERT);
        productDTO.setCode(productCode);
View Full Code Here

     * This is an indication to Tim server that it should include this Person
     * information in the RESPONSE message
     */
    private List<PersonDTO> createEmptyPerson() {
        List<PersonDTO> personDTOs = new ArrayList<PersonDTO>();
        personDTOs.add(new PersonDTO());
        return personDTOs;
    }
View Full Code Here

TOP

Related Classes of org.libreplan.importers.tim.PersonDTO

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.