Package org.olat.basesecurity

Examples of org.olat.basesecurity.Policy


    switch(col) {
      case 0: // secgr
        SecurityGroup sg = (SecurityGroup)co;
        return sg.getKey(); //"key:"+sg.getKey()+" ("+sg.getCreationDate()+")";
      case 1: // permission
        Policy po = (Policy)co;
        String perm = po.getPermission();
        return perm;
      case 2:
        OLATResource or = (OLATResource)co;
        return or.getResourceableId();
      case 3:
View Full Code Here


    List results = secm.getPoliciesOfSecurityGroup(rightGroup.getPartipiciantGroup());
    // filter all business group rights permissions. group right permissions
    // start with bgr.
    List rights = new ArrayList();
    for (int i = 0; i < results.size(); i++) {
      Policy rightPolicy = (Policy) results.get(i);
      String right = rightPolicy.getPermission();
      if (right.indexOf(BG_RIGHT_PREFIX) == 0) rights.add(right);
    }
    return rights;
  }
View Full Code Here

TOP

Related Classes of org.olat.basesecurity.Policy

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.