com.sas.hls.security.role.exception
Class InvalidRolePrivilegeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sas.hls.common.exception.AbstractCheckedException
              extended by com.sas.hls.security.role.exception.RoleException
                  extended by 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

Constructor Summary
InvalidRolePrivilegeException(Set<Privilege> invalidPrivileges, String message)
          Constructs an InvalidRolePrivilegeException with the invalid privileges and specified message.
 
Method Summary
 Set<Privilege> getInvalidPrivileges()
          Returns the set of privileges which cannot be assigned to the specified role.
 
Methods inherited from class com.sas.hls.common.exception.AbstractCheckedException
getLocalizedMessage, getMessage, getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 role
message - the detailed message
Method Detail

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) 2014, SAS Institute Inc., Cary, NC, USA