public interface ProjectFieldScreenHelper
Modifier and Type | Interface and Description |
---|---|
static class |
ProjectFieldScreenHelper.FieldsScreenPermission
Enum specifying whether fields screen is editable or not.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canUserEditScreen(ApplicationUser user,
FieldScreen screen)
Determines whether given user can edit given screen without any context being given
|
boolean |
canUserViewFieldScreenForProject(ApplicationUser user,
FieldScreen fieldScreen,
Project project)
Whether the provided user can view the field screen for the project.
|
List<Project> |
getAllProjectsForFieldScreen(FieldScreen fieldScreen)
Gets the projects using a given
FieldScreen . |
List<Project> |
getProjectsForFieldScreen(FieldScreen fieldScreen)
Gets the projects using a given
FieldScreen . |
ProjectFieldScreenHelper.FieldsScreenPermission |
getUserEditScreenPermission(ApplicationUser user,
FieldScreen screen)
Determines whether given user can edit given screen
|
List<Project> getProjectsForFieldScreen(FieldScreen fieldScreen)
FieldScreen
. A project uses a given FieldScreen
if it:
FieldScreen
as a transition screen, orFieldScreen
for one of its issue operations
Only projects for which the requesting user has ProjectAction.EDIT_PROJECT_CONFIG
permissions are returned.
fieldScreen
- field screen to find associated projects for.ProjectNameComparator.COMPARATOR
List<Project> getAllProjectsForFieldScreen(FieldScreen fieldScreen)
FieldScreen
. A project uses a given FieldScreen
if it:
FieldScreen
as a transition screen, orFieldScreen
for one of its issue operationsThis method return all projects existing on instance, also projects which should not be visible for the user.
fieldScreen
- field screen to find associated projects for.ProjectNameComparator.COMPARATOR
boolean canUserViewFieldScreenForProject(ApplicationUser user, FieldScreen fieldScreen, Project project)
user
- the user to check to access for. Must not be null.fieldScreen
- the field screen to query view access on. Must not be null.project
- the project the field screen should be on. Must not be null.boolean canUserEditScreen(ApplicationUser user, FieldScreen screen)
user
- the user to check access forscreen
- the screen being editedProjectFieldScreenHelper.FieldsScreenPermission getUserEditScreenPermission(ApplicationUser user, FieldScreen screen)
user
- the user to check access forscreen
- the screen being editedCopyright © 2002-2021 Atlassian. All Rights Reserved.