## Uses of Class
com.sas.lsaf.security.privilege.PrivilegeNotFoundException

- Packages that use PrivilegeNotFoundException
  Package | Description
  --- | ---
  com.sas.lsaf.security.privilege | Service and classes for identifying and using privileges in the system.
  com.sas.lsaf.security.role | Service and class definitions for manipulating and creating roles, their availability in contexts, and their membership lists.

- - ### Uses of PrivilegeNotFoundException in com.sas.lsaf.security.privilege

    Methods in com.sas.lsaf.security.privilege that throw PrivilegeNotFoundException
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.util.Set<UserDescriptor>` | GlobalPrivilegeService.`getAllGrantees​(java.util.Set<java.lang.String> globalPrivilegeIds)` | Gets the set of users who have been granted the specified set of global privileges.
    `java.util.Set<UserDescriptor>` | GlobalPrivilegeService.`getGrantees​(java.lang.String globalPrivilegeId)` | Gets the set of users who have been granted the specified global privilege.
    `void` | GlobalPrivilegeService.`grantPrivilege​(java.lang.String userId, java.lang.String globalPrivilegeId)` | Grants a global privilege to the specified user.
    `void` | GlobalPrivilegeService.`grantPrivileges​(java.lang.String userId, java.util.Set<java.lang.String> globalPrivilegeIds)` | Grants the global privileges to the specified user.
    `void` | GlobalPrivilegeService.`grantPrivilegesToUsers​(java.util.Set<java.lang.String> userIds, java.util.Set<java.lang.String> globalPrivilegeIds)` | Grants the global privileges to the specified set of users.
    `void` | GlobalPrivilegeService.`revokePrivilege​(java.lang.String userId, java.lang.String globalPrivilegeId)` | Revokes a global privilege from the specified user.
    `void` | GlobalPrivilegeService.`revokePrivileges​(java.lang.String userId, java.util.Set<java.lang.String> globalPrivilegeIds)` | Revokes a set of global privileges from the set of users.
    `void` | GlobalPrivilegeService.`revokePrivilegesFromUsers​(java.util.Set<java.lang.String> userIds, java.util.Set<java.lang.String> globalPrivilegeIds)` | Revokes a set of global privileges from a set of users.
    `void` | GlobalPrivilegeService.`setPrivileges​(java.lang.String userId, java.util.Set<java.lang.String> globalPrivilegeIds)` | Sets the global privileges that are granted to the specified user.

  - ### Uses of PrivilegeNotFoundException in com.sas.lsaf.security.role

    Methods in com.sas.lsaf.security.role that throw PrivilegeNotFoundException
    Modifier and Type | Method | Description
    --- | --- | ---
    `Role` | RoleService.`createRole​(java.lang.String contextId, java.lang.String name, java.lang.String description, java.util.Set<java.lang.String> scopedPrivilegeIds, java.util.Set<Principal> members)` | Creates a defined role at the specified context.
    `java.util.Set<RoleDescriptor>` | RoleService.`getRoleDescriptorsByContextAndPrivilege​(java.lang.String contextId, java.lang.String scopedPrivilegeId)` | Gets all of the roles at a given context that include the specified privilege.
    `Role` | RoleService.`updateRole​(Role role)` | Updates the name, description, privileges or members of the specified role.