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

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.InvalidRoleMemberException
All Implemented Interfaces:
Serializable

public class InvalidRoleMemberException
extends RoleException

Exception thrown when a role assignment is updated with new members that violate any membership contracts.

The typical case for this is if a member being added to the role assignment is NOT a member of the context.

Since:
1.7
See Also:
RoleAssignmentService.updateRoleAssignment(com.sas.hls.security.role.RoleAssignment), Serialized Form

Constructor Summary
InvalidRoleMemberException(Set<Principal> invalidMembers, String message)
          Constructs an InvalidRoleMemberException with the invalid members and specified message.
 
Method Summary
 Set<Principal> getInvalidMembers()
          Returns the set of members which are invalid additions to the role assignment.
 
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

InvalidRoleMemberException

public InvalidRoleMemberException(Set<Principal> invalidMembers,
                                  String message)
Constructs an InvalidRoleMemberException with the invalid members and specified message.

Parameters:
invalidMembers - the set of members which are invalid additions to the role assignment
message - the detailed message
Method Detail

getInvalidMembers

public Set<Principal> getInvalidMembers()
Returns the set of members which are invalid additions to the role assignment.

Returns:
the set of members which are invalid additions to the role assignment


Copyright (c) 2016, SAS Institute Inc., Cary, NC, USA