Class SecurityPermissionCheckEvent

Direct Known Subclasses:
SecurityPermissionCheckFailedEvent, SecurityPermissionCheckSuccessfulEvent

public abstract class SecurityPermissionCheckEvent extends SecurityDefiniteOutcomeEvent
A security event relating to a permission check.
Author:
Darran Lofthouse
  • Constructor Details

    • SecurityPermissionCheckEvent

      public SecurityPermissionCheckEvent(SecurityIdentity securityIdentity, Permission permission, boolean successful)
      Construct a new instance.
      Parameters:
      securityIdentity - the SecurityIdentity the permission check was against.
      successful - was the permission check successful.
      permission - the Permission that was checked.
  • Method Details

    • getPermission

      public Permission getPermission()
      Obtain the Permission this event related to.
      Returns:
      the Permission this event related to.
    • accept

      public <P, R> R accept(SecurityEventVisitor<P,R> visitor, P param)
      Description copied from class: SecurityEvent
      Accept the given visitor, calling the method which is most applicable to this event type.
      Overrides:
      accept in class SecurityEvent
      Type Parameters:
      P - the visitor parameter type
      R - the visitor return type
      Parameters:
      visitor - the visitor
      param - the parameter to pass to the visitor handleXxx method
      Returns:
      the value returned from the visitor handleXxx method