com.atlassian.bitbucket.permission.PermissionPredicateFactory |
Class Overview
Factory for creation permission-predicates
Public Methods
@Nonnull
public
Predicate<Project>
createProjectAccessiblePredicate
()
Returns
- a
Project
predicate for project accessibility
@Nonnull
public
Predicate<Project>
createProjectPermissionPredicate
(Permission permission)
Parameters
permission
| the permission in question |
@Nonnull
public
Predicate<PullRequest>
createPullRequestPermissionPredicate
(Permission permission)
Retrieves a Predicate
which applies a check to ensure the current user has the specified permission with
regards to PullRequest
s. This predicate may be used for filtering rows from a DAO, for example.
Parameters
permission
| te permission to check for |
Returns
- a predicate which will check for the specified permission on pull requests
@Nonnull
public
Predicate<Repository>
createRepositoryAccessiblePredicate
()
Returns
- a
Repository
predicate for repository accessibility
@Nonnull
public
Predicate<Repository>
createRepositoryPermissionPredicate
(Permission permission)
Parameters
permission
| the permission in question |