public interface PermissionPredicateFactory
Modifier and Type | Method and Description |
---|---|
Predicate<Project> |
createProjectAccessiblePredicate() |
Predicate<Project> |
createProjectPermissionPredicate(Permission permission) |
Predicate<PullRequest> |
createPullRequestAccessiblePredicate()
Retrieves a
Predicate which applies a check to ensure the current user can access PullRequest s. |
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. |
Predicate<Repository> |
createRepositoryAccessiblePredicate() |
Predicate<Repository> |
createRepositoryPermissionPredicate(Permission permission) |
@Nonnull Predicate<Project> createProjectAccessiblePredicate()
Project
predicate for project accessibilityPermissionService.isProjectAccessible(Project)
@Nonnull Predicate<Project> createProjectPermissionPredicate(@Nonnull Permission permission)
permission
- the permission in questionProject
predicate for given Permission
PermissionService.hasProjectPermission(Project, Permission)
@Nonnull Predicate<PullRequest> createPullRequestAccessiblePredicate()
Predicate
which applies a check to ensure the current user can access PullRequest
s.
Note: Pull requests are never accessible to anonymous users.PullRequest
predicate for pull request accessibility@Nonnull Predicate<PullRequest> createPullRequestPermissionPredicate(@Nonnull Permission permission)
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.permission
- the permission to check for@Nonnull Predicate<Repository> createRepositoryAccessiblePredicate()
Repository
predicate for repository accessibilityPermissionService.isRepositoryAccessible(Repository)
@Nonnull Predicate<Repository> createRepositoryPermissionPredicate(@Nonnull Permission permission)
permission
- the permission in questionRepository
predicate for given Permission
PermissionService.hasRepositoryPermission(Repository, Permission)
Copyright © 2019 Atlassian. All rights reserved.