# Uses of Class
com.ads.api.beans.rsm.Role

Packages that use Role
Package
Description
com.ads.api.util
Contains Utility Classes, Collection Classes, Java Bean Classes which are specific to System, Environment, Table, Column, Mappings, Subject, KeyValue Pairs, ROle, Business Glossary Catalog, Document etc...

- ## Uses of Role in com.ads.api.util

  Methods in com.ads.api.util that return Role
  Modifier and Type
  Method
  Description
  `Role`
  ResourceManagerUtil.`getRole(String roleName)`
  Returns the Role object for the specified roleName i.e all the respective details regarding the role,such as roleName, roleId ,roleDescription and auditHistory.
  `Role`
  ResourceManagerUtil.`getRole(String roleName, int fillOptions)`
  Returns the Role object for the specified roleName i.e all the respective details regarding the role,such as roleName,roleId, roleDescription, auditHistory and also returns list of permissions that the role has based on the fillOptions parameter value passed with reference of `APIConstants.RSMFillOptions`.
  Methods in com.ads.api.util that return types with arguments of type Role
  Modifier and Type
  Method
  Description
  `List<Role>`
  ResourceManagerUtil.`getRoles()`
  Returns the list of Role objects where each Role object contains details like roleName,roleId,roleDescription and auditHistory.
  `List<Role>`
  ResourceManagerUtil.`getRoles(int fillOptions)`
  Returns the list of Role objects where each Role object contains details like roleName,roleId,roleDescription,auditHistory and list of permissions that the role has based on the fillOptions parameter value passed with reference of `APIConstants.RSMFillOptions`.
  `List<Role>`
  ResourceManagerUtil.`getUserRoles(String userId)`
  Returns the list of Role objects for the specified userId where each Role object contains all the respective details such as id,name, description, auditHistory etc..