Class IamRolesHelper

java.lang.Object
com.mapr.security.IamRolesHelper

public class IamRolesHelper extends Object
  • Constructor Details

    • IamRolesHelper

      public IamRolesHelper(String strClusterName)
  • Method Details

    • addRole

      public void addRole(int roleId, String roleName)
    • removeRole

      public void removeRole(int roleId, String roleName)
    • getRolenames

      public HashSet<String> getRolenames(HashSet<Integer> roleIds) throws Exception
      Throws:
      Exception
    • getRoleIds

      public HashSet<Integer> getRoleIds(HashSet<String> roleNames) throws Exception
      Throws:
      Exception
    • getRolename

      public String getRolename(int roleId)
    • getRoleId

      public Integer getRoleId(String roleName)
    • getUserToRoles

      public HashSet<com.mapr.fs.proto.PolicyServerProto.IdentityInfoMsg> getUserToRoles(com.mapr.fs.proto.PolicyServerProto.IdentityInfoMsg user) throws Exception
      Throws:
      Exception
    • getGroupToRoles

      public HashSet<com.mapr.fs.proto.PolicyServerProto.IdentityInfoMsg> getGroupToRoles(com.mapr.fs.proto.PolicyServerProto.IdentityInfoMsg group) throws Exception
      Throws:
      Exception
    • getIdentities

      public static final HashSet<com.mapr.fs.proto.PolicyServerProto.IdentityInfoMsg> getIdentities(HashSet<Integer> idList, com.mapr.fs.proto.PolicyServerProto.IdentityType idType)