Package edu.stanford.smi.protege.server.metaproject.impl

Examples of edu.stanford.smi.protege.server.metaproject.impl.GroupOperationImpl


                projectInstance.setAllowedGroupOperations(groupOperations);

                Instance groupOpInst1 = (((WrappedProtegeInstanceImpl) groupOperation).getProtegeInstance());
                Instance cloneGroupOpInst = (Instance) groupOpInst1.shallowCopy(null, null);

                GroupOperation cloneGroupOp = new GroupOperationImpl((MetaProjectImpl) projectInstance.getMetaProject(), cloneGroupOpInst);
                Set<Operation> cloneGroupAllowedOp = cloneGroupOp.getAllowedOperations();
                for (Operation op : cloneGroupAllowedOp) {
                    if (op.equals(operation)) {
                        cloneGroupAllowedOp.remove(op);
                        break;
                    }
                }
                if (cloneGroupAllowedOp.size() > 0) {
                    cloneGroupOp.setAllowedOperations(cloneGroupAllowedOp);
                    projectInstance.addAllowedGroupOperations(cloneGroupOp);

                }
                updateProjectOwnerPolicy(projectInstance);
View Full Code Here

TOP

Related Classes of edu.stanford.smi.protege.server.metaproject.impl.GroupOperationImpl

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.