Package beans.cec.entity

Examples of beans.cec.entity.Inability


            new Field("committeeResolution.direction.direction.serviceRender.disease.emc.client.id", clientID)
        };
        List inabilityList = findEntityList(Inability.class, fields);
        Iterator i = inabilityList.iterator();
        while (i.hasNext()) {
            Inability j = (Inability) i.next();
            res.add(j.getDetails((RightChecker) this));
        }
        return res;
    }
View Full Code Here


       
        List<Inability> list = findEntityList(Inability.class, "committeeResolution.direction.committee", entity);
        List<InabilityDetails> res = new ArrayList<InabilityDetails>();
        Iterator i = list.iterator();
        while(i.hasNext()) {
            Inability j = (Inability) i.next();
            res.add(j.getDetails((RightChecker) this));
        }
        return res;         
    }       
View Full Code Here

    @Override
    public ModificationInfo setCommitteeInability(InabilityDetails details) throws ClipsServerException {
        checkCommandAccessibility(COMMAND_MODIFY);
        checkEntityExist();
       
        Inability inability = null;
        AuditDoc<Inability> auditDoc;
        if(details.id != 0) {
            inability = findEntity(Inability.class, details.id);
            auditDoc = new AuditDoc<Inability>(inability, getCollaborator());
            checkTheSame(inability.getCommitteeResolution().getDirection().getCommittee());
        } else {
            inability = new Inability();
            auditDoc = new AuditDoc<Inability>(inability, getCollaborator());
            inability.setCommitteeResolution(findEntity(CommitteeResolution.class, details.committeeResolutionID));
        }            
           
        inability.setDate(details.date);
        inability.setAnswerDate(details.dateAnswer);
        inability.setDesc(details.desc);
        inability.setLevelIn(details.levelIn);
        inability.setLevelOut(details.levelOut);
        int id = saveEntity(inability);
        auditDoc.check(inability);
        return new ModificationInfo(id, persistAudit(auditDoc));
    }    
View Full Code Here

    @Override
    public ModificationInfo removeCommitteeInability(int id) throws ClipsServerException {
        checkCommandAccessibility(COMMAND_REMOVE);
        checkEntityExist();

        Inability inability = findEntity(Inability.class, id);
        AuditDoc<Inability> auditDoc = new AuditDoc<Inability>(inability, getCollaborator());
        checkTheSame(inability.getCommitteeResolution().getDirection().getCommittee());
        manager.remove(inability);
        auditDoc.check(null);
        return new ModificationInfo(persistAudit(auditDoc));
    }
View Full Code Here

TOP

Related Classes of beans.cec.entity.Inability

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.