Examples of UzerDTO


Examples of net.stinfoservices.pacifiq.shared.dto.inner.UzerDTO

            if (programFound != null) {
                program = new ProgramDTO(programFound, DTOPath.PROGRAM_BOARD);
            }
        } else if (hasSpecificRights) {
            // Uzer has already somes PROGRAM_NAME lists
            UzerDTO user = (UzerDTO) getSession().getAttribute("user");

            if (user != null) {
                for (ProgramDTO dto : user.getProgramsWithConsultationRights()) {
                    if (dto.getId().equals(programId)) {

                        // convert from PROGRAM_NAME to PROGRAM_BOARD
                        Program programFound = programDAO.find(programId);
                        program = new ProgramDTO(programFound, DTOPath.PROGRAM_BOARD);
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.UzerDTO

    }

    @Override
    @Transactional(readOnly = false)
    public void updateName(Long id, String name) throws Exception {
        UzerDTO user = (UzerDTO) getSession().getAttribute("user");
        hasUpdateRights(user, id);
        Program prog = programDAO.find(id);
        prog.setName(name);
        programDAO.save(prog);
        alertManagement.alert(user);
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.UzerDTO

    }

    @Override
    @Transactional(readOnly = false)
    public void updateDeliveryToPrime(Long id, Date deliveryToPrime) throws Exception {
        UzerDTO user = (UzerDTO) getSession().getAttribute("user");
        hasUpdateRights(user, id);
        Program prog = programDAO.find(id);
        prog.setDateOfDeliveryToPrime(deliveryToPrime);
        programDAO.save(prog);
        alertManagement.alert(user);
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.UzerDTO

    }

    @Override
    @Transactional(readOnly = false)
    public void updateLaunchDate(Long id, Date launchDate) throws Exception {
        UzerDTO user = (UzerDTO) getSession().getAttribute("user");
        hasUpdateRights(user, id);
        Program prog = programDAO.find(id);
        prog.setLaunchDate(launchDate);
        programDAO.save(prog);
        alertManagement.alert(user);
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.UzerDTO

    }

    @Override
    @Transactional(readOnly = false)
    public void updateLauncherType(Long id, String launcherType) throws Exception {
        UzerDTO user = (UzerDTO) getSession().getAttribute("user");
        hasUpdateRights(user, id);
        Program prog = programDAO.find(id);
        prog.setLauncherType(launcherType);
        programDAO.save(prog);
        alertManagement.alert(user);
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.UzerDTO

        alertManagement.alert(user);
    }

    @Override
    public void updateEcmManager(Long id, UzerDTO ecmManager) throws Exception {
        UzerDTO user = (UzerDTO) getSession().getAttribute("user");
        hasUpdateRights(user, id);
        Program prog = programDAO.find(id);
        prog.setEcmManager(uzerDAO.find(ecmManager.getId()));
        programDAO.save(prog);
        alertManagement.alert(user);
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.UzerDTO

    }

    @Override
    public void updateProcessManager(Long id, UzerDTO processManager) throws Exception {
        UzerDTO user = (UzerDTO) getSession().getAttribute("user");
        hasUpdateRights(user, id);
        Program prog = programDAO.find(id);
        prog.setProcessManager(uzerDAO.find(processManager.getId()));
        programDAO.save(prog);
        alertManagement.alert(user);
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.UzerDTO

        alertManagement.alert(user);
    }

    @Override
    public void updateProgramManager(Long id, UzerDTO programManager) throws Exception {
        UzerDTO user = (UzerDTO) getSession().getAttribute("user");
        hasUpdateRights(user, id);
        Program prog = programDAO.find(id);
        prog.setProgramManager(uzerDAO.find(programManager.getId()));
        programDAO.save(prog);
        alertManagement.alert(user);
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.UzerDTO

    public List<UzerDTO> refreshSimpleListUzers() throws Exception {

        List<UzerDTO> simpleList = new ArrayList<UzerDTO>();
        List<Uzer> allUzers = uzerDAO.findAll();
        for (Uzer uzer : allUzers) {
            simpleList.add(new UzerDTO(uzer, DTOPath.NOTHING_TO_SAY));
        }
        return simpleList;
    }
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.inner.UzerDTO

        return simpleList;
    }

    @Override
    public UzerDTO findUzerById(Long id) throws Exception {
        return new UzerDTO(uzerDAO.find(id), DTOPath.NOTHING_TO_SAY);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.