public class FieldVisibilityManagerImpl extends Object implements FieldVisibilityManager
ALL_ISSUE_TYPES
Constructor and Description |
---|
FieldVisibilityManagerImpl(FieldManager fieldManager,
ProjectManager projectManager)
Deprecated.
|
FieldVisibilityManagerImpl(FieldManager fieldManager,
ProjectManager projectManager,
ConstantsManager constantsManager,
FieldLayoutManager fieldLayoutManager,
SubTaskManager subTaskManager) |
Modifier and Type | Method and Description |
---|---|
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(ApplicationUser remoteUser,
Field field)
Checks if the field is hidden across all the projects
that the user can see (has the
Permissions.BROWSE permission). |
boolean |
isFieldHidden(ApplicationUser remoteUser,
String id)
Checks if the field is hidden across all the projects
that the user can see (has the
Permissions.BROWSE permission). |
boolean |
isFieldHidden(Long projectId,
String fieldId,
Long issueTypeId)
Checks if the field is hidden in the project with id of projectId.
|
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 |
isFieldHiddenInAllSchemes(Field field,
SearchContext context,
ApplicationUser user) |
boolean |
isFieldHiddenInAllSchemes(Long projectId,
String fieldId) |
boolean |
isFieldHiddenInAllSchemes(Long projectId,
String fieldId,
List<String> issueTypes)
Returns TRUE if specified field is hidden under the following scenarios:
|
boolean |
isFieldHiddenInAllSchemes(String fieldId,
SearchContext context,
ApplicationUser user) |
boolean |
isFieldVisible(ApplicationUser remoteUser,
Field field)
Checks if the field is visible in at least one of the projects
that the user can see (has the
Permissions.BROWSE permission). |
boolean |
isFieldVisible(ApplicationUser remoteUser,
String id)
Checks if the field is visible in at least one of the projects
that the user can see (has the
Permissions.BROWSE permission). |
boolean |
isFieldVisible(Long projectId,
String fieldId,
Long issueTypeId)
Checks if the field is visible in the project with id of projectId.
|
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(String fieldId,
Issue issue)
Checks if the field is visible for the issue's current field layout scheme.
|
@Deprecated public FieldVisibilityManagerImpl(FieldManager fieldManager, ProjectManager projectManager)
public FieldVisibilityManagerImpl(FieldManager fieldManager, ProjectManager projectManager, ConstantsManager constantsManager, FieldLayoutManager fieldLayoutManager, SubTaskManager subTaskManager)
public boolean isFieldHidden(ApplicationUser remoteUser, String id)
FieldVisibilityManager
Permissions.BROWSE
permission).isFieldHidden
in interface FieldVisibilityManager
remoteUser
- userid
- the field IDpublic boolean isFieldHidden(ApplicationUser remoteUser, Field field)
FieldVisibilityManager
Permissions.BROWSE
permission).isFieldHidden
in interface FieldVisibilityManager
remoteUser
- userfield
- the fieldpublic boolean isFieldVisible(ApplicationUser remoteUser, String id)
FieldVisibilityManager
Permissions.BROWSE
permission).isFieldVisible
in interface FieldVisibilityManager
remoteUser
- userid
- the field IDpublic boolean isFieldVisible(ApplicationUser remoteUser, Field field)
FieldVisibilityManager
Permissions.BROWSE
permission).isFieldVisible
in interface FieldVisibilityManager
remoteUser
- userfield
- the fieldpublic boolean isFieldHidden(String fieldId, Issue issue)
FieldVisibilityManager
isFieldHidden
in interface FieldVisibilityManager
fieldId
- field idissue
- issuepublic boolean isFieldVisible(String fieldId, Issue issue)
FieldVisibilityManager
isFieldVisible
in interface FieldVisibilityManager
fieldId
- field idissue
- issuepublic boolean isCustomFieldHidden(Long projectId, Long customFieldId, String issueTypeId)
FieldVisibilityManager
isCustomFieldHidden
in interface FieldVisibilityManager
projectId
- project idcustomFieldId
- the data store id of the custom fieldissueTypeId
- issue type idpublic boolean isCustomFieldVisible(Long projectId, Long customFieldId, String issueTypeId)
FieldVisibilityManager
isCustomFieldVisible
in interface FieldVisibilityManager
projectId
- project idcustomFieldId
- the data store id of the custom fieldissueTypeId
- issue type idpublic boolean isFieldHidden(Long projectId, String fieldId, Long issueTypeId)
FieldVisibilityManager
isFieldHidden
in interface FieldVisibilityManager
projectId
- project idfieldId
- field idissueTypeId
- issue type idpublic boolean isFieldVisible(Long projectId, String fieldId, Long issueTypeId)
FieldVisibilityManager
isFieldVisible
in interface FieldVisibilityManager
projectId
- project idfieldId
- field idissueTypeId
- issue type idpublic boolean isFieldHidden(Long projectId, String fieldId, String issueTypeId)
FieldVisibilityManager
isFieldHidden
in interface FieldVisibilityManager
projectId
- project idfieldId
- field idissueTypeId
- issue type idpublic boolean isFieldVisible(Long projectId, String fieldId, String issueTypeId)
FieldVisibilityManager
isFieldVisible
in interface FieldVisibilityManager
projectId
- project idfieldId
- field idissueTypeId
- issue type idpublic boolean isFieldHiddenInAllSchemes(Long projectId, String fieldId, List<String> issueTypes)
FieldVisibilityManager
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
isFieldHiddenInAllSchemes
in interface FieldVisibilityManager
projectId
- project idfieldId
- field idissueTypes
- list of issue type ids (as String objects)public boolean isFieldHiddenInAllSchemes(Long projectId, String fieldId)
isFieldHiddenInAllSchemes
in interface FieldVisibilityManager
public boolean isFieldHiddenInAllSchemes(String fieldId, SearchContext context, ApplicationUser user)
isFieldHiddenInAllSchemes
in interface FieldVisibilityManager
public boolean isFieldHiddenInAllSchemes(Field field, SearchContext context, ApplicationUser user)
isFieldHiddenInAllSchemes
in interface FieldVisibilityManager
Copyright © 2002-2021 Atlassian. All Rights Reserved.