Package framework.audit

Examples of framework.audit.AuditDetails


            System.out.println("***************************************************************************");
            System.out.println("ПАЦИЕНТ ГЛАВНЫЙ " + dst.getId() + " " + dst.getFio());
            for (int i = 1; i < array.size(); i++) {
                Client src = array.get(i);
                System.out.println("  ПАЦИЕНТ " + src.getId() + " " + src.getFio());
                AuditDetails unionCollab = unionCollab(dst, src);
                if (unionCollab != null) {
                    auditDetailsList.add(unionCollab);
                }
                auditDetailsList.addAll(unionEMC(dst, src));
                auditDetailsList.addAll(unionJob(dst, src));
View Full Code Here


    public ModificationInfo setPolisOMI(PolisDetails polisDetails) throws ClipsServerException {
        Polis polis = findPolisOMI(getExistentEntity(), manager);
        ArrayList<AuditDetails> auditDetailsList = new ArrayList<AuditDetails>(2);
        if (polis != null && polisDetails.id == 0) {
            //замена полиса
            AuditDetails auditRemovePolis = removePolisOMI(polis);
            auditDetailsList.add(auditRemovePolis);
            polis = null;
        }
        if (polis == null) {
            //Создание полиса - либо небыло либо был, но заменяется
            polis = new Polis();
        }
        //и в любом случае заполнение и сохранение
        AuditDoc<Polis> auditDoc = new AuditDoc<Polis>(polis, getCollaborator());
        fillPolisOMI(polis, polisDetails);
        saveEntity(polis);
        if (auditDoc.check(polis)) {
            AuditDetails auditChangePolis = persistAudit(auditDoc);
            auditDetailsList.add(auditChangePolis);
        }
        return new ModificationInfo(polis.getId(), auditDetailsList);
    }
View Full Code Here

                AuditDoc<MedSerrenResult> auditmsr = new AuditDoc<MedSerrenResult>(null, getCollaborator());
                MedSerrenResult medSerrenResult = new MedSerrenResult();
                medSerrenResult.setSerren(sm.serren);
                manager.persist(medSerrenResult);
                auditmsr.check(medSerrenResult);
                AuditDetails details = persistAudit(auditmsr);
                auditDetList.add(details);
            }

            if (serviceCheckupChunk.xml != null) {
                AuditDoc<Checkup> auditCheckup = new AuditDoc<Checkup>(null, getCollaborator());
                Checkup checkup = new Checkup();
                checkup.setCheckupType(findEntity(CheckupType.class, serviceCheckupChunk.checkupTypeID));
                auditCheckup.addFieldFormat("xml", checkup.getCheckupType().getMetadata());
                checkup.setServiceRender(sm.serren);
                checkup.setXml(serviceCheckupChunk.xml);
                manager.persist(checkup);
                manager.flush();
                manager.refresh(checkup);
                auditCheckup.check(checkup);
                AuditDetails details = persistAudit(auditCheckup);
                auditDetList.add(details);
            }
        }

        return new ModificationInfo(chunk.diseaseID, auditDetList);
View Full Code Here

                checkup.setXml(serviceCheckupChunk.xml);
                manager.persist(checkup);
                manager.flush();
                manager.refresh(checkup);
                auditCheckup.check(checkup);
                AuditDetails details = persistAudit(auditCheckup);
                auditDetList.add(details);
            }
            manager.flush();
            manager.refresh(entity);
            auditSerren.check(entity);
            AuditDetails details = persistAudit(auditSerren);
            auditDetList.add(details);
        }

        return new ModificationInfo(0, auditDetList);
       
View Full Code Here

        manager.persist(serren);
        manager.flush();
        manager.refresh(serren);
        auditDoc.check(serren);
        AuditDetails auditDetails = persistAudit(auditDoc);
        ModificationInfo mi = new ModificationInfo(auditDetails);
        return new SerrenMod(serren, mi);
    }
View Full Code Here

     * @throws ESecurity
     */
    protected List<AuditDetails> persistAudit(List<AuditDoc> list) throws ESecurity {
        List<AuditDetails> details = new LinkedList<AuditDetails>();
        for (AuditDoc doc : list) {
            AuditDetails auditDetails = persistAudit(doc);
            if (auditDetails != null) {
                details.add(auditDetails);
            }
        }
        return details;
View Full Code Here

    private final List<AuditDetails> audit;

    public ModificationInfo(int id, List<AuditDetails> audit) {
        Iterator<AuditDetails> iterator = audit.iterator();
        for (Iterator<AuditDetails> it = audit.iterator(); it.hasNext();) {
            AuditDetails auditDetails = it.next();
            if (auditDetails == null) {
                it.remove();
            }
        }
        this.id = id;
View Full Code Here

TOP

Related Classes of framework.audit.AuditDetails

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.