com.atlassian.jira.issue.fields.screen
Interface ProjectFieldScreenHelper

All Known Implementing Classes:
DefaultProjectFieldScreenHelper

public interface ProjectFieldScreenHelper

An internal helper class for Project Configuration.

Since:
v4.4

Method Summary
 boolean canUserViewFieldScreenForProject(ApplicationUser user, FieldScreen fieldScreen, Project project)
          Whether the provided user can view the field screen for the project.
 List<Project> getProjectsForFieldScreen(FieldScreen fieldScreen)
          Gets the projects using a given FieldScreen.
 

Method Detail

getProjectsForFieldScreen

List<Project> getProjectsForFieldScreen(FieldScreen fieldScreen)
Gets the projects using a given FieldScreen. A project uses a given FieldScreen if it:
  1. uses a workflow that has the FieldScreen as a transition screen, or
  2. uses a field screen scheme thas has a FieldScreen for one of its issue operations
Only projects for which the requesting user has ProjectAction.EDIT_PROJECT_CONFIG permissions are returned.

Parameters:
fieldScreen - field screen to find associated projects for.
Returns:
list of projects which use the given field screen. Sorted by ProjectNameComparator.COMPARATOR

canUserViewFieldScreenForProject

boolean canUserViewFieldScreenForProject(ApplicationUser user,
                                         FieldScreen fieldScreen,
                                         Project project)
Whether the provided user can view the field screen for the project.

Parameters:
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.
Returns:
if the provided user can view the field screen for the project


Copyright © 2002-2014 Atlassian. All Rights Reserved.