Package beans.cec.entity

Examples of beans.cec.entity.CommitteeDirection


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


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

    @Override
    public ModificationInfo setCommitteeDirection(CommitteeDirectionDetails details) throws ClipsServerException {
        checkCommandAccessibility(COMMAND_MODIFY);
        Committee entity = getExistentEntity();
       
        CommitteeDirection direct = null;
        AuditDoc<CommitteeDirection> auditDoc;
        if(details.id != 0) {
            direct = findEntity(CommitteeDirection.class, details.id);
            auditDoc = new AuditDoc<CommitteeDirection>(direct, getCollaborator());
            checkTheSame(direct.getCommittee());
        } else {
            direct = new CommitteeDirection();
            auditDoc = new AuditDoc<CommitteeDirection>(direct, getCollaborator());
            direct.setCommittee(entity);
        }  
        direct.setDirection(findEntity(Direction.class, details.directionID));
        int id = saveEntity(direct);
        auditDoc.check(direct);
        return new ModificationInfo(id, persistAudit(auditDoc));
    }
View Full Code Here

    @Override
    public ModificationInfo removeCommitteeDirection(int idthrows ClipsServerException {
        checkCommandAccessibility(COMMAND_REMOVE);
        checkEntityExist();
       
        CommitteeDirection direct = findEntity(CommitteeDirection.class, id);
        checkTheSame(direct.getCommittee());
        ArrayList<AuditDoc> auditDocList = new ArrayList<AuditDoc>();
       
        deleteEntityList2(Inability.class, new Field[]{
                new Field("committeeResolution.direction", direct)
            }, auditDocList);
View Full Code Here

            auditDoc = new AuditDoc<CommitteeResolution>(resolution, getCollaborator());
            checkTheSame(resolution.getDirection().getCommittee());
        } else {
            resolution = new CommitteeResolution();
            auditDoc = new AuditDoc<CommitteeResolution>(resolution, getCollaborator());
            CommitteeDirection comDir = findEntity(CommitteeDirection.class, details.directionID);
            resolution.setDirection(comDir);                       
        }            
       
        resolution.setType(findEntity(CommitteeResolutionType.class, details.typeID));
        resolution.setCollaborator(findEntity(Collaborator.class, details.collaboratorID));
View Full Code Here

TOP

Related Classes of beans.cec.entity.CommitteeDirection

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.