Interface PermissionVoter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
PermissionVoter
may be used to determine access restrictions for application resources. For every
permission check the application performs, the vote() method of each known PermissionVoter
is invoked. For the permission check to succeed, at least one PermissionVoter
must return a result of
PermissionVote.GRANT
. If any PermissionVoter
returns a result of PermissionVote.VETO
, the
permission check is unsuccessful and the user is not allowed to carry out the requested operation.
If a PermissionVoter
does not explicitly allow or deny the permission, it should return a result of
PermissionVote.ABSTAIN
.- Since:
- 5.5
-
Method Summary
-
Method Details
-
vote
-