Examples of TAADTO


Examples of net.stinfoservices.pacifiq.shared.dto.TAADTO

        ServiceSecurityHelper.hasAuthority(ProfileHelper.LICENSES_CONSULTATION, getSession());

        List<AbstractTAA> list = tAADAO.findAll();
        List<TAADTO> listDTO = new ArrayList<TAADTO>();
        for (AbstractTAA taa : list) {
            listDTO.add(new TAADTO(taa, DTOPath.TAA_BOARD));
        }
        return listDTO;
    }
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.TAADTO

        ServiceSecurityHelper.hasAuthority(ProfileHelper.LICENSES_CONSULTATION, getSession());

        List<AbstractTAA> list = tAADAO.findAllByLicenseNumber(licenseNumber);
        List<TAADTO> listDTO = new ArrayList<TAADTO>();
        for (AbstractTAA taa : list) {
            listDTO.add(new TAADTO(taa, DTOPath.TAA_NAME));
        }
        return listDTO;
    }
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.TAADTO

    @Override
    public List<TAADTO> findAllSpecificTAAs() throws Exception {
        List<SpecificTAA> list = specificTAADAO.findAll();
        List<TAADTO> listDTO = new ArrayList<TAADTO>();
        for (AbstractTAA taa : list) {
            listDTO.add(new TAADTO(taa, DTOPath.TAA_BOARD));
        }
        return listDTO;
    }
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.TAADTO

    @Override
    public List<TAADTO> findAllGenericTAAs() throws Exception {
        List<GenericTAA> list = genericTAADAO.findAll();
        List<TAADTO> listDTO = new ArrayList<TAADTO>();
        for (AbstractTAA taa : list) {
            listDTO.add(new TAADTO(taa, DTOPath.TAA_BOARD));
        }
        return listDTO;
    }
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.TAADTO

            ServiceSecurityHelper.hasAuthority(ProfileHelper.LICENSES_EDITION, getSession());
        } catch (Exception e) {
            readOnly = true;
        }

        TAADTO taaDTO = new TAADTO(tAADAO.find(id), DTOPath.TAA_DOC);
        if (readOnly) {
            taaDTO.freeze();
        }

        return taaDTO;
    }
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.TAADTO

        AbstractTAA taa = taaDAO.find(1L);
        assertNotNull(taa);
        assertTrue(taa instanceof GenericTAA);
        GenericTAA gTAA = (GenericTAA) taa;

        TAADTO gTaaDocument = new TAADTO(gTAA, DTOPath.TAA_DOC);
        assertFalse(gTaaDocument.getSpecific());

        assertEquals(gTaaDocument.getItems().size(), 2);
        TAADTO gTaaDocumentClone = gTaaDocument.clone();
        assertSame(gTaaDocumentClone.getItems().iterator().next(), gTaaDocumentClone.getItems().iterator().next());
        assertEquals(gTaaDocumentClone.getItems().iterator().next(), gTaaDocumentClone.getItems().iterator().next());

    }
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.