Examples of countIdentitiesOfSecurityGroup()


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

        msgProperties.setProperty("courseCountAll", String.valueOf(allCourses));
        msgProperties.setProperty("courseCountPublished", String.valueOf(publishedCourses));
        // User counts
        Manager secMgr = ManagerFactory.getManager();
        SecurityGroup olatuserGroup = secMgr.findSecurityGroupByName(Constants.GROUP_OLATUSERS);
        int users = secMgr.countIdentitiesOfSecurityGroup(olatuserGroup);
        int disabled = secMgr.getIdentitiesByPowerSearch(null, null, true, null, null, null, null, null, Identity.STATUS_LOGIN_DENIED)
            .size();
        msgProperties.setProperty("usersEnabled", String.valueOf(users - disabled));
       
        PermissionOnResourceable[] permissions = { new PermissionOnResourceable(Constants.PERMISSION_HASROLE, Constants.ORESOURCE_AUTHOR) };
View Full Code Here

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

      }
      result.append(instanceId);
    } else if (command.equals("usercount")) { // get number of useraccounts counter
      Manager secMgr = ManagerFactory.getManager();
      SecurityGroup olatuserGroup = secMgr.findSecurityGroupByName(Constants.GROUP_OLATUSERS);
      int users = secMgr.countIdentitiesOfSecurityGroup(olatuserGroup);
      int disabled = secMgr.getIdentitiesByPowerSearch(null, null, true, null, null, null, null, null, Identity.STATUS_LOGIN_DENIED).size();     
      result.append(users-disabled).append("\n"); // number of active users
      result.append(disabled).append("\n"); // number of disabled users
      result.append("0\n");
      result.append(instanceId);
View Full Code Here

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

    Manager securityManager = ManagerFactory.getManager();
    List members = new ArrayList();
    Iterator iterator = groups.iterator();
    while (iterator.hasNext()) {
      BusinessGroup group = (BusinessGroup) iterator.next();
      int numbMembers = securityManager.countIdentitiesOfSecurityGroup(group.getPartipiciantGroup());
      members.add(new Integer(numbMembers));
    }
    return members;
  }
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.