Package com.agiletec.aps.system.services.authorization.authorizator

Examples of com.agiletec.aps.system.services.authorization.authorizator.IApsAuthorityManager


    try {
      if (users.isEmpty() || roleName == null || roleName.length()==0) {
        usersForContentType = users;
      } else {
        usersForContentType = new ArrayList<String>();
        IApsAuthorityManager roleManager = this.getRoleManager();
        IApsAuthority authority = roleManager.getAuthority(roleName);
        List<String> usernamesWithAuth = this.getRoleManager().getUsernamesByAuthority(authority);
        for (int i = 0; i < users.size(); i++) {
          String username = users.get(i);
          if (null == username) {
            continue;
View Full Code Here


    List<String> usersForContentType = null;
    if (usernames.isEmpty() || groupName == null || groupName.length()==0) {
      usersForContentType = usernames;
    } else {
      usersForContentType = new ArrayList<String>();
      IApsAuthorityManager groupManager = (IApsAuthorityManager) super.getBeanFactory().getBean(SystemConstants.GROUP_MANAGER);
      IApsAuthority authority = groupManager.getAuthority(groupName);
      List<String> usersWithAuth = groupManager.getUsernamesByAuthority(authority);
      for (int i = 0; i < usernames.size(); i++) {
        String username = usernames.get(i);
        if (null == username) {
          continue;
        }
View Full Code Here

TOP

Related Classes of com.agiletec.aps.system.services.authorization.authorizator.IApsAuthorityManager

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.