Examples of UzerDTO


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

            launchDate = program.getLaunchDate();
            launcherType = program.getLauncherType();
            // Skip a infinite loop in Authentification phase
            if (path.accept(DTOPath.UZER_WITH_PROGRAMS)) {
                // contains phone !
                ecmManager = (program.getEcmManager() == null ? null : new UzerDTO(program.getEcmManager(), DTOPath.NOTHING_TO_SAY));
                // contains phone !
                processManager = (program.getProcessManager() == null ? null : new UzerDTO(program.getProcessManager(), DTOPath.NOTHING_TO_SAY));
                // contains phone !
                programManager = (program.getProgramManager() == null ? null : new UzerDTO(program.getProgramManager(), DTOPath.NOTHING_TO_SAY));
            } else {
                // contains phone !
                ecmManager = (program.getEcmManager() == null ? null : new UzerDTO(program.getEcmManager(), path));
                // contains phone !
                processManager = (program.getProcessManager() == null ? null : new UzerDTO(program.getProcessManager(), path));
                // contains phone !
                programManager = (program.getProgramManager() == null ? null : new UzerDTO(program.getProgramManager(), path));
            }
            comment = program.getComment();

            if (path.accept(DTOPath.PROGRAM_DOC)) {
                contractDate = program.getContractDate();
View Full Code Here

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

        id = document.getId();
        name = document.getName();
        if (path.accept(DTOPath.DOCUMENT_DOC)) {
            if (document.getOwner() != null) {
                // DTOPath.UZER_NAME
                owner = new UzerDTO(document.getOwner(), DTOPath.NOTHING_TO_SAY);
            } else {
                owner = null;
            }
            filename = document.getFilename();
            description = document.getDescription();
View Full Code Here

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

        return new ProfileDTO(profileDAO.find(id), DTOPath.NOTHING_TO_SAY);
    }

    @Override
    public UzerDTO loadUzer(Long id) throws Exception {
        return new UzerDTO(uzerDAO.find(id), DTOPath.ADMIN_UZER_CRUD);
    }
View Full Code Here

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

        if (hasRights) {
            documents.addAll(documentDAO.findAll());
        }

        if (hasLicenseRights || hasProgramRights || hasSpecificRights) {
            UzerDTO userDTO = (UzerDTO) getSession().getAttribute("user");
            Uzer user = uzerDAO.find(userDTO.getId());

            documents.addAll(documentDAO.findWithOwner(user));
        }

        if (hasLicenseRights) {
            documents.addAll(documentDAO.findWithLicense());
        }

        if (hasProgramRights) {
            documents.addAll(documentDAO.findWithProgram());
        }

        if (hasSpecificRights) {
            UzerDTO user = (UzerDTO) getSession().getAttribute("user");

            Set<ProgramDTO> specPrograms = new HashSet<ProgramDTO>();
            specPrograms.addAll(user.getProgramsWithConsultationRights());

            List<Long> programsId = new ArrayList<Long>();
            for (ProgramDTO program : specPrograms) {
                programsId.add(program.getId());
            }
View Full Code Here

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

        if (hasRights) {
            documents.addAll(documentDAO.findByNameOrDescription(nameOrDescription));
        }

        if (hasLicenseRights || hasProgramRights || hasSpecificRights) {
            UzerDTO userDTO = (UzerDTO) getSession().getAttribute("user");
            Uzer user = uzerDAO.find(userDTO.getId());

            documents.addAll(documentDAO.findWithOwnerByParam(user, nameOrDescription));
        }

        if (hasLicenseRights) {
            documents.addAll(documentDAO.findWithLicenseByParam(nameOrDescription));
        }

        if (hasProgramRights) {
            documents.addAll(documentDAO.findWithProgramByParam(nameOrDescription));
        }

        if (hasSpecificRights) {
            UzerDTO user = (UzerDTO) getSession().getAttribute("user");

            Set<ProgramDTO> specPrograms = new HashSet<ProgramDTO>();
            specPrograms.addAll(user.getProgramsWithConsultationRights());

            List<Long> programsId = new ArrayList<Long>();
            for (ProgramDTO program : specPrograms) {
                programsId.add(program.getId());
            }
View Full Code Here

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

    }

    @Override
    @Transactional(readOnly = false)
    public void deleteDocument(Long id) throws Exception {
        UzerDTO user = (UzerDTO) getSession().getAttribute("user");

        alertManagement.alert(user);
        documentDAO.remove(documentDAO.find(id));
    }
View Full Code Here

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

    @Override
    @Transactional(readOnly = false)
    public Long saveDocument(DocumentDTO document) throws Exception {
        Document doc;
        UzerDTO user = (UzerDTO) getSession().getAttribute("user");

        if (document.getId() == null) {
            doc = new Document();
            document.setOwner(user);
        } else {
View Full Code Here

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

    }

    @Override
    @Transactional(readOnly = false)
    public void update(DocumentDTO document) throws Exception {
        UzerDTO user = (UzerDTO) getSession().getAttribute("user");

        alertManagement.alert(user);

        Document doc = documentDAO.find(document.getId());
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.