Package beans.cec.entity

Examples of beans.cec.entity.CommitteeMember


        Committee entity = getExistentEntity();
       
        Collaborator coll = findEntity(Collaborator.class, details.collaboratorID);
    coll.checkNotFired();
       
        CommitteeMember member = null;
        AuditDoc<CommitteeMember> auditDoc;
        if(details.id != 0) {
            member = findEntity(CommitteeMember.class, details.id);
            auditDoc = new AuditDoc<CommitteeMember>(member, getCollaborator());
            checkTheSame(member.getCommittee());
        } else {
            member = new CommitteeMember();
            auditDoc = new AuditDoc<CommitteeMember>(member, getCollaborator());
            member.setCommittee(entity);
        }     
        member.setCollaborator(coll);
        int id = saveEntity(member);
        auditDoc.check(member);
        return new ModificationInfo(id, persistAudit(auditDoc));
    }
View Full Code Here


     */
    @Override
    public ModificationInfo removeCommitteeMember(int idthrows ClipsServerException {
        checkEntityExist();
        checkCommandAccessibility(COMMAND_REMOVE);
        CommitteeMember member = findEntity(CommitteeMember.class, id);
        AuditDoc<CommitteeMember> auditDoc = new AuditDoc<CommitteeMember>(member, getCollaborator());
        checkTheSame(member.getCommittee());
        removeEntity(member);
        auditDoc.check(null);
        return new ModificationInfo(persistAudit(auditDoc));
    }   
View Full Code Here

TOP

Related Classes of beans.cec.entity.CommitteeMember

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.