Interface PermissionPredicateFactory
public interface PermissionPredicateFactory
Factory for creation permission-predicates
-
Method Summary
Modifier and TypeMethodDescriptioncreateProjectPermissionPredicate
(Permission permission) createPullRequestPermissionPredicate
(Permission permission) Retrieves aPredicate
which applies a check to ensure the current user has the specified permission with regards toPullRequest
s.createRepositoryPermissionPredicate
(Permission permission)
-
Method Details
-
createProjectAccessiblePredicate
- Returns:
- a
Project
predicate for project accessibility - See Also:
-
createProjectPermissionPredicate
- Parameters:
permission
- the permission in question- Returns:
- a
Project
predicate for givenPermission
- See Also:
-
createPullRequestPermissionPredicate
@Nonnull Predicate<PullRequest> createPullRequestPermissionPredicate(@Nonnull Permission permission) Retrieves aPredicate
which applies a check to ensure the current user has the specified permission with regards toPullRequest
s. This predicate may be used for filtering rows from a DAO, for example.- Parameters:
permission
- the permission to check for- Returns:
- a predicate which will check for the specified permission on pull requests
-
createRepositoryAccessiblePredicate
- Returns:
- a
Repository
predicate for repository accessibility - See Also:
-
createRepositoryPermissionPredicate
- Parameters:
permission
- the permission in question- Returns:
- a
Repository
predicate for givenPermission
- See Also:
-