Class FieldVisibilityManagerImpl

java.lang.Object
com.atlassian.jira.web.FieldVisibilityManagerImpl
All Implemented Interfaces:
FieldVisibilityManager

public class FieldVisibilityManagerImpl extends Object implements FieldVisibilityManager
Since:
v4.0
  • Constructor Details

  • Method Details

    • isFieldHidden

      public boolean isFieldHidden(ApplicationUser remoteUser, String id)
      Description copied from interface: FieldVisibilityManager
      Checks if the field is hidden across all the projects that the user can see (has the Permissions.BROWSE permission).
      Specified by:
      isFieldHidden in interface FieldVisibilityManager
      Parameters:
      remoteUser - user
      id - the field ID
      Returns:
      true if the user cannot see the field across all visible projects, false otherwise
    • isFieldHidden

      public boolean isFieldHidden(ApplicationUser remoteUser, Field field)
      Description copied from interface: FieldVisibilityManager
      Checks if the field is hidden across all the projects that the user can see (has the Permissions.BROWSE permission).
      Specified by:
      isFieldHidden in interface FieldVisibilityManager
      Parameters:
      remoteUser - user
      field - the field
      Returns:
      true if the user cannot see the field across all visible projects, false otherwise
    • isFieldVisible

      public boolean isFieldVisible(ApplicationUser remoteUser, String id)
      Description copied from interface: FieldVisibilityManager
      Checks if the field is visible in at least one of the projects that the user can see (has the Permissions.BROWSE permission).
      Specified by:
      isFieldVisible in interface FieldVisibilityManager
      Parameters:
      remoteUser - user
      id - the field ID
      Returns:
      true if the user can see the field in at least one visible project, false otherwise
    • isFieldVisible

      public boolean isFieldVisible(ApplicationUser remoteUser, Field field)
      Description copied from interface: FieldVisibilityManager
      Checks if the field is visible in at least one of the projects that the user can see (has the Permissions.BROWSE permission).
      Specified by:
      isFieldVisible in interface FieldVisibilityManager
      Parameters:
      remoteUser - user
      field - the field
      Returns:
      true if the user can see the field in at least one visible project, false otherwise
    • isFieldHidden

      public boolean isFieldHidden(String fieldId, Issue issue)
      Description copied from interface: FieldVisibilityManager
      Checks if the field is hidden for the issue's current field layout scheme.
      Specified by:
      isFieldHidden in interface FieldVisibilityManager
      Parameters:
      fieldId - field id
      issue - issue
      Returns:
      true if the field is hidden, false otherwise
    • isFieldVisible

      public boolean isFieldVisible(String fieldId, Issue issue)
      Description copied from interface: FieldVisibilityManager
      Checks if the field is visible for the issue's current field layout scheme.
      Specified by:
      isFieldVisible in interface FieldVisibilityManager
      Parameters:
      fieldId - field id
      issue - issue
      Returns:
      true if the field is visible, false otherwise
    • isCustomFieldHidden

      public boolean isCustomFieldHidden(Long projectId, Long customFieldId, String issueTypeId)
      Description copied from interface: FieldVisibilityManager
      Checks if the custom field is hidden in the project with id of projectId.
      Specified by:
      isCustomFieldHidden in interface FieldVisibilityManager
      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
    • isCustomFieldVisible

      public boolean isCustomFieldVisible(Long projectId, Long customFieldId, String issueTypeId)
      Description copied from interface: FieldVisibilityManager
      Checks if the custom field is visible in the project with id of projectId.
      Specified by:
      isCustomFieldVisible in interface FieldVisibilityManager
      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
    • isFieldHidden

      public boolean isFieldHidden(Long projectId, String fieldId, Long issueTypeId)
      Description copied from interface: FieldVisibilityManager
      Checks if the field is hidden in the project with id of projectId.
      Specified by:
      isFieldHidden in interface FieldVisibilityManager
      Parameters:
      projectId - project id
      fieldId - field id
      issueTypeId - issue type id
      Returns:
      true if the field is hidden, false otherwise
    • isFieldVisible

      public boolean isFieldVisible(Long projectId, String fieldId, Long issueTypeId)
      Description copied from interface: FieldVisibilityManager
      Checks if the field is visible in the project with id of projectId.
      Specified by:
      isFieldVisible in interface FieldVisibilityManager
      Parameters:
      projectId - project id
      fieldId - field id
      issueTypeId - issue type id
      Returns:
      true if the field is visible, false otherwise
    • isFieldHidden

      public boolean isFieldHidden(Long projectId, String fieldId, String issueTypeId)
      Description copied from interface: FieldVisibilityManager
      Checks if specified field is hidden in at least one scheme associated with the specified project and issue type.
      Specified by:
      isFieldHidden in interface FieldVisibilityManager
      Parameters:
      projectId - project id
      fieldId - field id
      issueTypeId - issue type id
      Returns:
      true if the field is hidden, false otherwise
    • isFieldVisible

      public boolean isFieldVisible(Long projectId, String fieldId, String issueTypeId)
      Description copied from interface: FieldVisibilityManager
      Checks if specified field is visible in all schemes associated with the specified project and issue type.
      Specified by:
      isFieldVisible in interface FieldVisibilityManager
      Parameters:
      projectId - project id
      fieldId - field id
      issueTypeId - issue type id
      Returns:
      true if the field is visible, false otherwise
    • isFieldHiddenInAllSchemes

      public boolean isFieldHiddenInAllSchemes(Long projectId, String fieldId, List<String> issueTypes)
      Description copied from interface: FieldVisibilityManager
      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

      Specified by:
      isFieldHiddenInAllSchemes in interface FieldVisibilityManager
      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
    • isFieldHiddenInAllSchemes

      public boolean isFieldHiddenInAllSchemes(Long projectId, String fieldId)
      Specified by:
      isFieldHiddenInAllSchemes in interface FieldVisibilityManager
    • isFieldHiddenInAllSchemes

      public boolean isFieldHiddenInAllSchemes(String fieldId, SearchContext context, ApplicationUser user)
      Specified by:
      isFieldHiddenInAllSchemes in interface FieldVisibilityManager
    • isFieldHiddenInAllSchemes

      public boolean isFieldHiddenInAllSchemes(Field field, SearchContext context, ApplicationUser user)
      Specified by:
      isFieldHiddenInAllSchemes in interface FieldVisibilityManager