@FunctionalInterface public interface PermissionVoter
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
.Modifier and Type | Method and Description |
---|---|
PermissionVote |
vote(PermissionCheck permissionCheck) |
@Nonnull PermissionVote vote(@Nonnull PermissionCheck permissionCheck)
Copyright © 2024 Atlassian. All rights reserved.