Package net.stinfoservices.pacifiq.shared.dto.inner

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


        DSP5DTO dsp5 = new DSP5DTO();
        BusinessPartnerDTO bp1 = new BusinessPartnerDTO();
        BusinessPartnerDTO bp2 = new BusinessPartnerDTO();
        BusinessPartnerDTO bp3 = new BusinessPartnerDTO();
        BusinessPartnerDTO bp4 = new BusinessPartnerDTO();
        ConcreteBusinessPartnerDTO enduser = new ConcreteBusinessPartnerDTO();
        ConcreteBusinessPartnerDTO manufacturer = new ConcreteBusinessPartnerDTO();
        ConcreteBusinessPartnerDTO seller = new ConcreteBusinessPartnerDTO();
        ConcreteBusinessPartnerDTO sourceOfCommodity = new ConcreteBusinessPartnerDTO();
        String address = "somewhere";

        bp1.setId(3L);
        bp1.setName("john foo");
        bp2.setId(4L);
        bp1.setName("john too");
        bp3.setId(5L);
        bp1.setName("john luu");
        bp4.setId(6L);
        bp1.setName("john kof");
        enduser.setId(3L);
        enduser.setAddress(address);
        enduser.setBusinessPartner(bp1);
        manufacturer.setId(4L);
        manufacturer.setAddress(address);
        manufacturer.setBusinessPartner(bp2);
        seller.setId(5L);
        seller.setAddress(address);
        seller.setBusinessPartner(bp3);
        sourceOfCommodity.setId(6L);
        sourceOfCommodity.setAddress(address);
        sourceOfCommodity.setBusinessPartner(bp4);
        dsp5.setDateOfIssue(DSP5_DATE);
        dsp5.setEndDate(DSP5_DATE);
        dsp5.setFreeText("blabla");
        dsp5.setLicenseNumber("license 1");
        dsp5.setType12327(false);
View Full Code Here


    public ProgramDTO(final Program program, final DTOPath path) {
        id = program.getId();
        name = program.getName();
        if (!path.accept(DTOPath.PROGRAM_NAME)) {

            prime = (program.getPrime() == null ? null : new ConcreteBusinessPartnerDTO(program.getPrime(), path));
            spaceSegment = (program.getSpaceSegment() == null ? null : new ConcreteBusinessPartnerDTO(program.getSpaceSegment(), path));
            groundSegment = (program.getGroundSegment() == null ? null : new ConcreteBusinessPartnerDTO(program.getGroundSegment(), path));
            dateOfDeliveryToPrime = program.getDateOfDeliveryToPrime();
            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();

                kickoffDate = program.getKickoffDate();

                startDate = program.getCampaignStartDate();

                reviewDate = program.getDateOfReviewBeforeLaunch();

                type12327 = program.getType12327();

                client = (program.getClient() == null ? null : new ConcreteBusinessPartnerDTO(program.getClient(), path));
            }
            if (path.accept(DTOPath.PROGRAM_WITH_DOC)) {
                final Map<DocumentType, Set<DocumentDTO>> docs = new HashMap<DocumentType, Set<DocumentDTO>>();
                docs.put(DocumentType.GC_4_LAUNCH, buildDocumentSet(program.getGcForLaunches(), path));
                docs.put(DocumentType.COMSAT_APPROVAL, buildDocumentSet(program.getComsatApprovals(), path));
View Full Code Here

        if (dsp5.getPrograms() != null) {
            for (Program program : dsp5.getPrograms()) {
                programs.put(program.getId(), program.getName());
            }
        }
        applicant = (dsp5.getApplicant() == null ? null : new ConcreteBusinessPartnerDTO(dsp5.getApplicant(), path));
        endUser = (dsp5.getEndUser() == null ? null : new ConcreteBusinessPartnerDTO(dsp5.getEndUser(), path));

        // ITEM_GC_FOR_LAUNCH
        relatedLicenses = new HashMap<Long, String>();
        if (dsp5.getRelatedLicenses() != null) {
            for (AbstractTAA taa : dsp5.getRelatedLicenses()) {
                relatedLicenses.put(taa.getId(), taa.getLicenseNumber() + "-" + taa.getVersionNumber());
            }
        }

        if (path.accept(DTOPath.DSP5_DOC)) {
            type12327 = dsp5.getType12327();
            freeText = dsp5.getFreeText();
            sourceOfCommodity = (dsp5.getSourceOfCommodity() == null ? null : new ConcreteBusinessPartnerDTO(dsp5.getSourceOfCommodity(), path));
            seller = (dsp5.getSeller() == null ? null : new ConcreteBusinessPartnerDTO(dsp5.getSeller(), path));

            consignees = new HashSet<ConcreteBusinessPartnerDTO>();
            if (dsp5.getConsignees() != null && !dsp5.getConsignees().isEmpty()) {
                for (ConcreteBusinessPartner cbp : dsp5.getConsignees()) {
                    consignees.add(new ConcreteBusinessPartnerDTO(cbp, path));
                }
            }

            approval = (dsp5.getApproval() == null ? null : dsp5.getApproval());

            if (!path.accept(DTOPath.PROGRAM_GC_FOR_LAUNCH)) {
                items = new HashSet<ItemDTO>();
                if (dsp5.getItems() != null) {
                    for (Item item : dsp5.getItems()) {
                        items.add(new ItemDTO(item, path));
                    }
                }
            }
        }

        if (path.accept(DTOPath.DSP5_DOC) || path.accept(DTOPath.ITEM_GC_FOR_LAUNCH)) {
            manufacturer = (dsp5.getManufacturer() == null ? null : new ConcreteBusinessPartnerDTO(dsp5.getManufacturer(), path));
        }

        if (path.accept(DTOPath.PROGRAM_GC_FOR_LAUNCH)) {
            items = new HashSet<ItemDTO>();
            if (dsp5.getItems() != null) {
View Full Code Here

     */
    public TAADTO(final AbstractTAA taa, DTOPath path) {
        id = taa.getId();
        licenseNumber = taa.getLicenseNumber();
        versionNumber = taa.getVersionNumber();
        applicant = ((taa.getApplicant() == null) ? null : new ConcreteBusinessPartnerDTO(taa.getApplicant(), path));

        programs = new HashMap<Long, String>();
        if (taa.getRelatedPrograms() != null) {
            for (Program program : taa.getRelatedPrograms()) {
                programs.put(program.getId(), program.getName());
View Full Code Here

TOP

Related Classes of net.stinfoservices.pacifiq.shared.dto.inner.ConcreteBusinessPartnerDTO

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.