public interface InternalProjectPermissionHelper
com.atlassian.jira.JiraFeatureFlagRegistrar#HIDE_PROJECTS_WITH_SOME_ISSUES_BROWSE_PERMISSION
flag is toggled. If it is enabled projects should be hidden for user with access to only some or no issues.Modifier and Type | Method and Description |
---|---|
boolean |
canUserBrowseProject(Project project,
ApplicationUser user)
Checks if the user can see the projects.
|
List<Project> |
getBrowsableProjectHistory(ApplicationUser user)
Gets the history of projects that should be visible for the user based on 'BROWSE_PROJECTS' permission checks.
|
Collection<Project> |
getBrowsableProjects(ApplicationUser user)
Gets the list of projects that should be visible for the user based on 'BROWSE_PROJECTS' permission checks.
|
ServiceOutcome<List<Project>> |
getBrowsableProjectsForProjectAction(ApplicationUser user)
Gets the list of projects that should be visible for the user based on
ProjectAction . |
Collection<Project> |
getBrowsableProjectsInCategory(ApplicationUser user,
ProjectCategory projectCategory)
Gets the list of projects from a given category that should be visible for the user based on 'BROWSE_PROJECTS' permission checks.
|
boolean |
hasPermission(ProjectPermissionKey permissionKey,
Project project,
ApplicationUser user)
Permission checker method that differentiates the behaviour only for 'BROWSE_PROJECTS'.
|
boolean canUserBrowseProject(Project project, ApplicationUser user)
project
- Project to check for 'BROWSE_PROJECTS'.user
- User to check the permissions for.boolean hasPermission(ProjectPermissionKey permissionKey, Project project, ApplicationUser user)
permissionKey
- Permission that's being checked.project
- Project against which the permission is tested.user
- User to check the permissions for.Collection<Project> getBrowsableProjects(ApplicationUser user)
user
- User to check the permissions for.ServiceOutcome<List<Project>> getBrowsableProjectsForProjectAction(ApplicationUser user)
ProjectAction
.
Differentiating based on the FF.user
- User to check the permissions for.Collection<Project> getBrowsableProjectsInCategory(ApplicationUser user, ProjectCategory projectCategory)
user
- User to check the permissions for.projectCategory
- Category to get the projects from.List<Project> getBrowsableProjectHistory(ApplicationUser user)
user
- User to check the permissions for.Copyright © 2002-2022 Atlassian. All Rights Reserved.