Examples of UzerDTO


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

    }

    @Override
    @Transactional(readOnly = false)
    public void updateFullyExecuted(Long id, Date fullyExecuted) throws Exception {
        UzerDTO user = (UzerDTO) getSession().getAttribute("user");
        hasUpdateRights(user, id);

        AbstractTAA tAA = tAADAO.find(id);
        if (tAA instanceof SpecificTAA) {
            SpecificTAA sTAA = (SpecificTAA) tAA;
View Full Code Here

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

    }

    @Override
    @Transactional(readOnly = false)
    public void updateLicenseNumber(Long id, String licenseNumber) throws Exception {
        UzerDTO user = (UzerDTO) getSession().getAttribute("user");
        hasUpdateRights(user, id);

        AbstractTAA tAA = tAADAO.find(id);
        tAA.setLicenseNumber(licenseNumber);
        tAADAO.save(tAA);
View Full Code Here

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

    }

    @Override
    @Transactional(readOnly = false)
    public void updateGcCOMSATStaffedToDoS(Long id, Date gcCOMSATStaffDate) throws Exception {
        UzerDTO user = (UzerDTO) getSession().getAttribute("user");
        hasUpdateRights(user, id);

        AbstractTAA tAA = tAADAO.find(id);
        if (tAA instanceof GenericTAA) {
            GenericTAA sTAA = (GenericTAA) tAA;
View Full Code Here

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

    }

    @Override
    @Transactional(readOnly = false)
    public void updateGcCOMSATApproval(Long id, Date gcCOMSATApprovalDate) throws Exception {
        UzerDTO user = (UzerDTO) getSession().getAttribute("user");
        hasUpdateRights(user, id);

        AbstractTAA tAA = tAADAO.find(id);
        if (tAA instanceof GenericTAA) {
            GenericTAA sTAA = (GenericTAA) tAA;
View Full Code Here

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

    @Transactional(readOnly = false)
    public void deleteTAA(Long id) throws Exception {
        ServiceSecurityHelper.hasAuthority(ProfileHelper.LICENSES_EDITION, getSession());

        tAADAO.remove(tAADAO.find(id));
        UzerDTO user = (UzerDTO) getSession().getAttribute("user");
        alertManagement.alert(user);
    }
View Full Code Here

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

        }

        // Generic/Specific
        applyDiffTAA(taa, document);
        Long id = tAADAO.save(taa).getId();
        UzerDTO user = (UzerDTO) getSession().getAttribute("user");
        alertManagement.alert(user);
        return id;
    }
View Full Code Here

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

     */
    @Test
    @DatabaseSetup(value = DATASET_BASIC_USER)
    @DatabaseTearDown(value = DATASET_BASIC_USER, type = DatabaseOperation.DELETE)
    public void testCheckSessionValue() throws Exception {
        UzerDTO user1 = authenticationService.login(BASIC_USER_EMAIL, BASIC_USER_PASSWORD);
        assertNotNull(user1);
        assertEquals(user1.getPassword(), ENCRYPTED_USER_PASSWORD);
        UzerDTO user2 = authenticationService.checkSessionValue(ENCRYPTED_USER_EMAIL);

        assertEquals(user1, user2);
        user2 = authenticationService.checkSessionValue(null);
        assertNull(user2);
        user2 = authenticationService.checkSessionValue("wduh@uhef.qwe");
View Full Code Here

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

    @Override
    public void setUp() throws Exception {
        super.setUp();
        dsp5Service.setSession(mockRequest.getSession());
        // enable DAO access : does activate Autowired by using AutowiringRemoteServiceServlet.init()
        UzerDTO uzer = authenticationService.login(ADMIN_EMAIL, ADMIN_PWD);
        assertNotNull(uzer);
    }
View Full Code Here

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

                sc.setAuthentication(auth);
                SecurityContextHolder.setContext(sc);

                // http request
                final UzerDTO uzerDTO = new UzerDTO(user, DTOPath.UZER_LOGIN);

                getSession().setAttribute("user", uzerDTO);

                return (uzerDTO);
            } else {
View Full Code Here

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

            }
            return programs;
        }

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

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

            List<Long> programsId = new ArrayList<Long>();
            for (ProgramDTO program : specPrograms) {
                programsId.add(program.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.