Examples of RoleIdentifier


Examples of org.sonatype.security.usermanagement.RoleIdentifier

    }

    try {
      CRole role = configuration.readRole(roleId);

      RoleIdentifier roleIdentifier = new RoleIdentifier(SOURCE, role.getId());
      return roleIdentifier;
    }
    catch (NoSuchRoleException e) {
      return null;
    }
View Full Code Here

Examples of org.sonatype.security.usermanagement.RoleIdentifier

          CUserRoleMapping roleMapping;
          try {
            roleMapping = configuration.readUserRoleMapping(userId, source);
            if (roleMapping != null) {
              for (String roleId : (List<String>) roleMapping.getRoles()) {
                RoleIdentifier role = toRole(roleId);
                if (role != null) {
                  roles.add(role);
                }
              }
            }
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.