Package com.atlassian.jira.web
Class FieldVisibilityManagerImpl
java.lang.Object
com.atlassian.jira.web.FieldVisibilityManagerImpl
- All Implemented Interfaces:
FieldVisibilityManager
- Since:
- v4.0
-
Field Summary
Fields inherited from interface com.atlassian.jira.web.FieldVisibilityManager
ALL_ISSUE_TYPES -
Constructor Summary
ConstructorsConstructorDescriptionFieldVisibilityManagerImpl(FieldManager fieldManager, ProjectManager projectManager) Deprecated.FieldVisibilityManagerImpl(FieldManager fieldManager, ProjectManager projectManager, ConstantsManager constantsManager, FieldLayoutManager fieldLayoutManager, SubTaskManager subTaskManager) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisCustomFieldHidden(Long projectId, Long customFieldId, String issueTypeId) Checks if the custom field is hidden in the project with id of projectId.booleanisCustomFieldVisible(Long projectId, Long customFieldId, String issueTypeId) Checks if the custom field is visible in the project with id of projectId.booleanisFieldHidden(ApplicationUser remoteUser, Field field) Checks if the field is hidden across all the projects that the user can see (has thePermissions.BROWSEpermission).booleanisFieldHidden(ApplicationUser remoteUser, String id) Checks if the field is hidden across all the projects that the user can see (has thePermissions.BROWSEpermission).booleanisFieldHidden(Long projectId, String fieldId, Long issueTypeId) Checks if the field is hidden in the project with id of projectId.booleanisFieldHidden(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.booleanisFieldHidden(String fieldId, Issue issue) Checks if the field is hidden for the issue's current field layout scheme.booleanisFieldHiddenInAllSchemes(Field field, SearchContext context, ApplicationUser user) booleanisFieldHiddenInAllSchemes(Long projectId, String fieldId) booleanisFieldHiddenInAllSchemes(Long projectId, String fieldId, List<String> issueTypes) Returns TRUE if specified field is hidden under the following scenarios:booleanisFieldHiddenInAllSchemes(String fieldId, SearchContext context, ApplicationUser user) booleanisFieldVisible(ApplicationUser remoteUser, Field field) Checks if the field is visible in at least one of the projects that the user can see (has thePermissions.BROWSEpermission).booleanisFieldVisible(ApplicationUser remoteUser, String id) Checks if the field is visible in at least one of the projects that the user can see (has thePermissions.BROWSEpermission).booleanisFieldVisible(Long projectId, String fieldId, Long issueTypeId) Checks if the field is visible in the project with id of projectId.booleanisFieldVisible(Long projectId, String fieldId, String issueTypeId) Checks if specified field is visible in all schemes associated with the specified project and issue type.booleanisFieldVisible(String fieldId, Issue issue) Checks if the field is visible for the issue's current field layout scheme.
-
Constructor Details
-
FieldVisibilityManagerImpl
@Deprecated public FieldVisibilityManagerImpl(FieldManager fieldManager, ProjectManager projectManager) Deprecated. -
FieldVisibilityManagerImpl
public FieldVisibilityManagerImpl(FieldManager fieldManager, ProjectManager projectManager, ConstantsManager constantsManager, FieldLayoutManager fieldLayoutManager, SubTaskManager subTaskManager)
-
-
Method Details
-
isFieldHidden
Description copied from interface:FieldVisibilityManagerChecks if the field is hidden across all the projects that the user can see (has thePermissions.BROWSEpermission).- Specified by:
isFieldHiddenin interfaceFieldVisibilityManager- Parameters:
remoteUser- userid- the field ID- Returns:
- true if the user cannot see the field across all visible projects, false otherwise
-
isFieldHidden
Description copied from interface:FieldVisibilityManagerChecks if the field is hidden across all the projects that the user can see (has thePermissions.BROWSEpermission).- Specified by:
isFieldHiddenin interfaceFieldVisibilityManager- Parameters:
remoteUser- userfield- the field- Returns:
- true if the user cannot see the field across all visible projects, false otherwise
-
isFieldVisible
Description copied from interface:FieldVisibilityManagerChecks if the field is visible in at least one of the projects that the user can see (has thePermissions.BROWSEpermission).- Specified by:
isFieldVisiblein interfaceFieldVisibilityManager- Parameters:
remoteUser- userid- the field ID- Returns:
- true if the user can see the field in at least one visible project, false otherwise
-
isFieldVisible
Description copied from interface:FieldVisibilityManagerChecks if the field is visible in at least one of the projects that the user can see (has thePermissions.BROWSEpermission).- Specified by:
isFieldVisiblein interfaceFieldVisibilityManager- Parameters:
remoteUser- userfield- the field- Returns:
- true if the user can see the field in at least one visible project, false otherwise
-
isFieldHidden
Description copied from interface:FieldVisibilityManagerChecks if the field is hidden for the issue's current field layout scheme.- Specified by:
isFieldHiddenin interfaceFieldVisibilityManager- Parameters:
fieldId- field idissue- issue- Returns:
- true if the field is hidden, false otherwise
-
isFieldVisible
Description copied from interface:FieldVisibilityManagerChecks if the field is visible for the issue's current field layout scheme.- Specified by:
isFieldVisiblein interfaceFieldVisibilityManager- Parameters:
fieldId- field idissue- issue- Returns:
- true if the field is visible, false otherwise
-
isCustomFieldHidden
Description copied from interface:FieldVisibilityManagerChecks if the custom field is hidden in the project with id of projectId.- Specified by:
isCustomFieldHiddenin interfaceFieldVisibilityManager- Parameters:
projectId- project idcustomFieldId- the data store id of the custom fieldissueTypeId- issue type id- Returns:
- true if the custom field is hidden, false otherwise
-
isCustomFieldVisible
Description copied from interface:FieldVisibilityManagerChecks if the custom field is visible in the project with id of projectId.- Specified by:
isCustomFieldVisiblein interfaceFieldVisibilityManager- Parameters:
projectId- project idcustomFieldId- the data store id of the custom fieldissueTypeId- issue type id- Returns:
- true if the custom field is visible, false otherwise
-
isFieldHidden
Description copied from interface:FieldVisibilityManagerChecks if the field is hidden in the project with id of projectId.- Specified by:
isFieldHiddenin interfaceFieldVisibilityManager- Parameters:
projectId- project idfieldId- field idissueTypeId- issue type id- Returns:
- true if the field is hidden, false otherwise
-
isFieldVisible
Description copied from interface:FieldVisibilityManagerChecks if the field is visible in the project with id of projectId.- Specified by:
isFieldVisiblein interfaceFieldVisibilityManager- Parameters:
projectId- project idfieldId- field idissueTypeId- issue type id- Returns:
- true if the field is visible, false otherwise
-
isFieldHidden
Description copied from interface:FieldVisibilityManagerChecks if specified field is hidden in at least one scheme associated with the specified project and issue type.- Specified by:
isFieldHiddenin interfaceFieldVisibilityManager- Parameters:
projectId- project idfieldId- field idissueTypeId- issue type id- Returns:
- true if the field is hidden, false otherwise
-
isFieldVisible
Description copied from interface:FieldVisibilityManagerChecks if specified field is visible in all schemes associated with the specified project and issue type.- Specified by:
isFieldVisiblein interfaceFieldVisibilityManager- Parameters:
projectId- project idfieldId- field idissueTypeId- issue type id- Returns:
- true if the field is visible, false otherwise
-
isFieldHiddenInAllSchemes
Description copied from interface:FieldVisibilityManagerReturns 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:
isFieldHiddenInAllSchemesin interfaceFieldVisibilityManager- Parameters:
projectId- project idfieldId- field idissueTypes- list of issue type ids (as String objects)- Returns:
- true if the given field is hidden, false otherwise
-
isFieldHiddenInAllSchemes
- Specified by:
isFieldHiddenInAllSchemesin interfaceFieldVisibilityManager
-
isFieldHiddenInAllSchemes
public boolean isFieldHiddenInAllSchemes(String fieldId, SearchContext context, ApplicationUser user) - Specified by:
isFieldHiddenInAllSchemesin interfaceFieldVisibilityManager
-
isFieldHiddenInAllSchemes
- Specified by:
isFieldHiddenInAllSchemesin interfaceFieldVisibilityManager
-