public interface

FieldVisibilityManager

com.atlassian.jira.web.FieldVisibilityManager
Known Indirect Subclasses

Class Overview

This is an interface for the old FieldVisibilityBean. In the brave new world of OSGi and Plugins-2 we need an interface so it can proxied to the plugins. This allows it to be injected into Spring components.

Summary

Constants
String ALL_ISSUE_TYPES
Public Methods
boolean isCustomFieldHidden(Long projectId, Long customFieldId, String issueTypeId)
Checks if the custom field is hidden in the project with id of projectId.
boolean isCustomFieldVisible(Long projectId, Long customFieldId, String issueTypeId)
Checks if the custom field is visible in the project with id of projectId.
boolean isFieldHidden(User remoteUser, String id)
Checks if the field is hidden across all the projects that the user can see (has the BROWSE permission).
boolean isFieldHidden(Long projectId, String fieldId, String issueTypeId)
Checks if specified field is hidden in at least one scheme associated with the specified project and issue type.
boolean isFieldHidden(String fieldId, Issue issue)
Checks if the field is hidden for the issue's current field layout scheme.
boolean isFieldHidden(Long projectId, String fieldId, Long issueTypeId)
Checks if the field is hidden in the project with id of projectId.
boolean isFieldHiddenInAllSchemes(String fieldId, SearchContext context, User user)
boolean isFieldHiddenInAllSchemes(Long projectId, String fieldId, List<String> issueTypes)
Returns TRUE if specified field is hidden under the following scenarios:

1: Project specified - is field hidden in all schemes associated with the specified project.

boolean isFieldHiddenInAllSchemes(Long projectId, String fieldId)
boolean isFieldVisible(String fieldId, Issue issue)
Checks if the field is visible for the issue's current field layout scheme.
boolean isFieldVisible(User remoteUser, String id)
Checks if the field is visible in at least one of the projects that the user can see (has the BROWSE permission).
boolean isFieldVisible(Long projectId, String fieldId, String issueTypeId)
Checks if specified field is visible in all schemes associated with the specified project and issue type.
boolean isFieldVisible(Long projectId, String fieldId, Long issueTypeId)
Checks if the field is visible in the project with id of projectId.

Constants

public static final String ALL_ISSUE_TYPES

Constant Value: "all"

Public Methods

public boolean isCustomFieldHidden (Long projectId, Long customFieldId, String issueTypeId)

Checks if the custom field is hidden in the project with id of projectId.

Parameters
projectId project id
customFieldId the data store id of the custom field
issueTypeId issue type id
Returns
  • true if the custom field is hidden, false otherwise

public boolean isCustomFieldVisible (Long projectId, Long customFieldId, String issueTypeId)

Checks if the custom field is visible in the project with id of projectId.

Parameters
projectId project id
customFieldId the data store id of the custom field
issueTypeId issue type id
Returns
  • true if the custom field is visible, false otherwise

public boolean isFieldHidden (User remoteUser, String id)

Checks if the field is hidden across all the projects that the user can see (has the BROWSE permission).

Parameters
remoteUser user
id id of the FieldConfiguration
Returns
  • true if the user cannot see the field across all visible projects, false otherwise

public boolean isFieldHidden (Long projectId, String fieldId, String issueTypeId)

Checks if specified field is hidden in at least one scheme associated with the specified project and issue type.

Parameters
projectId project id
fieldId field id
issueTypeId issue type id
Returns
  • true if the field is hidden, false otherwise

public boolean isFieldHidden (String fieldId, Issue issue)

Checks if the field is hidden for the issue's current field layout scheme.

Parameters
fieldId field id
issue issue
Returns
  • true if the field is hidden, false otherwise

public boolean isFieldHidden (Long projectId, String fieldId, Long issueTypeId)

Checks if the field is hidden in the project with id of projectId.

Parameters
projectId project id
fieldId field id
issueTypeId issue type id
Returns
  • true if the field is hidden, false otherwise

public boolean isFieldHiddenInAllSchemes (String fieldId, SearchContext context, User user)

public boolean isFieldHiddenInAllSchemes (Long projectId, String fieldId, List<String> issueTypes)

Returns TRUE if specified field is hidden under the following scenarios:

1: Project specified - is field hidden in all schemes associated with the specified project.

2: Project and Issue Type(s) specified - is field hidden in all schemes associated with the specified project for the issue types specified.

Caching is abstracted to next level - all calls to getFieldLayout(...) are cached

Parameters
projectId project id
fieldId field id
issueTypes list of issue type ids (as String objects)
Returns
  • true if the given field is hidden, false otherwise

public boolean isFieldHiddenInAllSchemes (Long projectId, String fieldId)

public boolean isFieldVisible (String fieldId, Issue issue)

Checks if the field is visible for the issue's current field layout scheme.

Parameters
fieldId field id
issue issue
Returns
  • true if the field is visible, false otherwise

public boolean isFieldVisible (User remoteUser, String id)

Checks if the field is visible in at least one of the projects that the user can see (has the BROWSE permission).

Parameters
remoteUser user
id id of the FieldConfiguration
Returns
  • true if the user can see the field in at least one visible project, false otherwise

public boolean isFieldVisible (Long projectId, String fieldId, String issueTypeId)

Checks if specified field is visible in all schemes associated with the specified project and issue type.

Parameters
projectId project id
fieldId field id
issueTypeId issue type id
Returns
  • true if the field is visible, false otherwise

public boolean isFieldVisible (Long projectId, String fieldId, Long issueTypeId)

Checks if the field is visible in the project with id of projectId.

Parameters
projectId project id
fieldId field id
issueTypeId issue type id
Returns
  • true if the field is visible, false otherwise