Package beans.cec.entity

Examples of beans.cec.entity.CommitteeResolution


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


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

    @Override
    public ModificationInfo setCommitteeResolution(CommitteeResolutionDetails details) throws ClipsServerException {
        checkCommandAccessibility(COMMAND_MODIFY);
        checkEntityExist();

        CommitteeResolution resolution = null;
        AuditDoc<CommitteeResolution> auditDoc;
        if(details.id != 0) {
            resolution = findEntity(CommitteeResolution.class, details.id);
            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));
        resolution.setDescription(details.description);
        resolution.setMkb10(details.mkb10 != 0 ? findEntity(Mkb10.class, details.mkb10) : null);
        resolution.setRendered(details.rendered);
        int id = saveEntity(resolution);
        return new ModificationInfo(id, persistAudit(auditDoc));
    }
View Full Code Here

    @Override
    public ModificationInfo removeCommitteeResolution(int id) throws ClipsServerException {
        checkCommandAccessibility(COMMAND_REMOVE);
        checkEntityExist();
       
        CommitteeResolution resolution = findEntity(CommitteeResolution.class, id);
        checkTheSame(resolution.getDirection().getCommittee());
        ArrayList<AuditDoc> auditDocList = new ArrayList<AuditDoc>();
       
        deleteEntityList2(Inability.class, new Field[]{
                new Field("committeeResolution", resolution)              
            }, auditDocList);
View Full Code Here

    private void replaceCommitteeResolutionType(DirectoryEntity entityWhat, DirectoryEntity entityWith) {
        //CommitteeResolution
        List entityList = findEntityList(CommitteeResolution.class, "type", entityWhat);
        for (int i = 0; i < entityList.size(); i++) {
            CommitteeResolution committeeResolution = (CommitteeResolution)entityList.get(i);
            committeeResolution.setType((CommitteeResolutionType) entityWith);
            manager.merge(committeeResolution);
        }
        removeEntity(entityWhat);
        manager.flush();
    }
View Full Code Here

TOP

Related Classes of beans.cec.entity.CommitteeResolution

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.