com.sas.hls.security.role.exception
Class InvalidRolePrivilegeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sas.hls.common.exception.AbstractCheckedException
com.sas.hls.security.role.exception.RoleException
com.sas.hls.security.role.exception.InvalidRolePrivilegeException
- All Implemented Interfaces:
- Serializable
public class InvalidRolePrivilegeException
- extends RoleException
Exception thrown when a privilege is assigned to a role and the privilege is not valid for that particular role context.
- Since:
- 1.7
- See Also:
RoleDefinitionService.createRole(com.sas.hls.security.role.RoleContext, String, String, Set)
,
RoleDefinitionService.updateRole(com.sas.hls.security.role.Role)
,
Serialized Form
InvalidRolePrivilegeException
public InvalidRolePrivilegeException(Set<Privilege> invalidPrivileges,
String message)
- Constructs an
InvalidRolePrivilegeException
with the invalid privileges and specified message.
- Parameters:
invalidPrivileges
- the set of privileges which cannot be assigned to the specified rolemessage
- the detailed message
getInvalidPrivileges
public Set<Privilege> getInvalidPrivileges()
- Returns the set of privileges which cannot be assigned to the specified role.
- Returns:
- the set of members which are invalid additions to the role assignment
Copyright (c) 2016, SAS Institute Inc., Cary, NC, USA