Examples of findSecurityGroupByName()


Examples of org.olat.basesecurity.Manager.findSecurityGroupByName()

    Manager secMgr = ManagerFactory.getManager();
    // get user system roles groups from security manager
    SecurityGroup adminGroup = secMgr.findSecurityGroupByName(Constants.GROUP_ADMIN);
    boolean isAdmin = secMgr.isIdentityInSecurityGroup(identity, adminGroup);
   
    SecurityGroup userManagerGroup = secMgr.findSecurityGroupByName(Constants.GROUP_USERMANAGERS);
    boolean isUserManager = secMgr.isIdentityInSecurityGroup(identity, userManagerGroup);

    SecurityGroup authorGroup = secMgr.findSecurityGroupByName(Constants.GROUP_AUTHORS);
    boolean isAuthor = secMgr.isIdentityInSecurityGroup(identity, authorGroup);
 
View Full Code Here

Examples of org.olat.basesecurity.Manager.findSecurityGroupByName()

    boolean isAdmin = secMgr.isIdentityInSecurityGroup(identity, adminGroup);
   
    SecurityGroup userManagerGroup = secMgr.findSecurityGroupByName(Constants.GROUP_USERMANAGERS);
    boolean isUserManager = secMgr.isIdentityInSecurityGroup(identity, userManagerGroup);

    SecurityGroup authorGroup = secMgr.findSecurityGroupByName(Constants.GROUP_AUTHORS);
    boolean isAuthor = secMgr.isIdentityInSecurityGroup(identity, authorGroup);
 
    SecurityGroup groupmanagerGroup = secMgr.findSecurityGroupByName(Constants.GROUP_GROUPMANAGERS);
    boolean isGroupManager = secMgr.isIdentityInSecurityGroup(identity, groupmanagerGroup);
View Full Code Here

Examples of org.olat.basesecurity.Manager.findSecurityGroupByName()

    boolean isUserManager = secMgr.isIdentityInSecurityGroup(identity, userManagerGroup);

    SecurityGroup authorGroup = secMgr.findSecurityGroupByName(Constants.GROUP_AUTHORS);
    boolean isAuthor = secMgr.isIdentityInSecurityGroup(identity, authorGroup);
 
    SecurityGroup groupmanagerGroup = secMgr.findSecurityGroupByName(Constants.GROUP_GROUPMANAGERS);
    boolean isGroupManager = secMgr.isIdentityInSecurityGroup(identity, groupmanagerGroup);

    SecurityGroup isAnonymous = secMgr.findSecurityGroupByName(Constants.GROUP_ANONYMOUS);
    boolean isGuestOnly = secMgr.isIdentityInSecurityGroup(identity, isAnonymous);
   
View Full Code Here

Examples of org.olat.basesecurity.Manager.findSecurityGroupByName()

    boolean isAuthor = secMgr.isIdentityInSecurityGroup(identity, authorGroup);
 
    SecurityGroup groupmanagerGroup = secMgr.findSecurityGroupByName(Constants.GROUP_GROUPMANAGERS);
    boolean isGroupManager = secMgr.isIdentityInSecurityGroup(identity, groupmanagerGroup);

    SecurityGroup isAnonymous = secMgr.findSecurityGroupByName(Constants.GROUP_ANONYMOUS);
    boolean isGuestOnly = secMgr.isIdentityInSecurityGroup(identity, isAnonymous);
   
    SecurityGroup institutionalResourceManager = secMgr.findSecurityGroupByName(Constants.GROUP_INST_ORES_MANAGER);
    boolean isInstitutionalResourceManager = secMgr.isIdentityInSecurityGroup(identity, institutionalResourceManager);
   
View Full Code Here

Examples of org.olat.basesecurity.Manager.findSecurityGroupByName()

    boolean isGroupManager = secMgr.isIdentityInSecurityGroup(identity, groupmanagerGroup);

    SecurityGroup isAnonymous = secMgr.findSecurityGroupByName(Constants.GROUP_ANONYMOUS);
    boolean isGuestOnly = secMgr.isIdentityInSecurityGroup(identity, isAnonymous);
   
    SecurityGroup institutionalResourceManager = secMgr.findSecurityGroupByName(Constants.GROUP_INST_ORES_MANAGER);
    boolean isInstitutionalResourceManager = secMgr.isIdentityInSecurityGroup(identity, institutionalResourceManager);
   
    // create new form and init with users values
    SystemRolesAndRightsForm form = new SystemRolesAndRightsForm("sysRightsForm", translator, identity.getUser().getProperty("institutionalName", null));
   
View Full Code Here

Examples of org.olat.basesecurity.Manager.findSecurityGroupByName()

    Roles roles = ureq.getUserSession().getRoles();
   
    vc = new VelocityContainer("reposearch", VELOCITY_ROOT + "/search.html", translator, this);
   
    Manager secMgr = ManagerFactory.getManager();
    SecurityGroup usermanagerGroup = secMgr.findSecurityGroupByName(Constants.GROUP_USERMANAGERS);
    boolean isUserManager = secMgr.isIdentityInSecurityGroup(ureq.getIdentity(), usermanagerGroup);

    searchForm = new SearchForm("searchform", translator, withCancel, isUserManager||roles.isOLATAdmin(), limitType, limitUser);
    searchForm.addListener(this);
    searchForm.setVisible(false);
View Full Code Here

Examples of org.olat.basesecurity.Manager.findSecurityGroupByName()

    // 1) general user type - anonymous or user
    // anonymous users
    boolean isAnonymous = false;
    Boolean canGuestsByConfig = (Boolean) configuration.get(BaseSecurityModule.CONFIG_USERMANAGER_CAN_MANAGE_GUESTS)
    if (canGuestsByConfig.booleanValue() || iAmOlatAdmin) {
      SecurityGroup anonymousGroup = secMgr.findSecurityGroupByName(Constants.GROUP_ANONYMOUS);
      boolean hasBeenAnonymous = secMgr.isIdentityInSecurityGroup(myIdentity, anonymousGroup);
      isAnonymous = form.isAnonymous();
      updateSecurityGroup(myIdentity, secMgr, anonymousGroup, hasBeenAnonymous, isAnonymous);
      // system users - oposite of anonymous users
      SecurityGroup usersGroup = secMgr.findSecurityGroupByName(Constants.GROUP_OLATUSERS);
View Full Code Here

Examples of org.olat.basesecurity.Manager.findSecurityGroupByName()

      SecurityGroup anonymousGroup = secMgr.findSecurityGroupByName(Constants.GROUP_ANONYMOUS);
      boolean hasBeenAnonymous = secMgr.isIdentityInSecurityGroup(myIdentity, anonymousGroup);
      isAnonymous = form.isAnonymous();
      updateSecurityGroup(myIdentity, secMgr, anonymousGroup, hasBeenAnonymous, isAnonymous);
      // system users - oposite of anonymous users
      SecurityGroup usersGroup = secMgr.findSecurityGroupByName(Constants.GROUP_OLATUSERS);
      boolean hasBeenUser = secMgr.isIdentityInSecurityGroup(myIdentity, usersGroup);
      boolean isUser = !form.isAnonymous();
      updateSecurityGroup(myIdentity, secMgr, usersGroup, hasBeenUser, isUser);
    }
    // 2) system roles
View Full Code Here

Examples of org.olat.basesecurity.Manager.findSecurityGroupByName()

    }
    // 2) system roles
    // group manager
    Boolean canGroupmanagerByConfig = (Boolean) configuration.get(BaseSecurityModule.CONFIG_USERMANAGER_CAN_MANAGE_GROUPMANAGERS)
    if (canGroupmanagerByConfig.booleanValue() || iAmOlatAdmin) {
      SecurityGroup groupManagerGroup = secMgr.findSecurityGroupByName(Constants.GROUP_GROUPMANAGERS);
      boolean hasBeenGroupManager = secMgr.isIdentityInSecurityGroup(myIdentity, groupManagerGroup);
      boolean isGroupManager = form.isGroupmanager();
      updateSecurityGroup(myIdentity, secMgr, groupManagerGroup, hasBeenGroupManager, isGroupManager);
    }
    // author
View Full Code Here

Examples of org.olat.basesecurity.Manager.findSecurityGroupByName()

      updateSecurityGroup(myIdentity, secMgr, groupManagerGroup, hasBeenGroupManager, isGroupManager);
    }
    // author
    Boolean canAuthorByConfig = (Boolean) configuration.get(BaseSecurityModule.CONFIG_USERMANAGER_CAN_MANAGE_AUTHORS)
    if (canAuthorByConfig.booleanValue() || iAmOlatAdmin) {
      SecurityGroup authorGroup = secMgr.findSecurityGroupByName(Constants.GROUP_AUTHORS);
      boolean hasBeenAuthor = secMgr.isIdentityInSecurityGroup(myIdentity, authorGroup);
      boolean isAuthor = form.isAuthor() || form.isInstitutionalResourceManager();
      updateSecurityGroup(myIdentity, secMgr, authorGroup, hasBeenAuthor, isAuthor);
    }
    // user manager, only allowed by admin
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.