public class DefaultVisibilityValidator extends Object implements VisibilityValidator
| Constructor and Description |
|---|
DefaultVisibilityValidator(ApplicationProperties applicationProperties,
JiraAuthenticationContext jiraAuthenticationContext,
ProjectRoleManager projectRoleManager,
GroupManager groupManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isGroupVisibilityEnabled()
Determines if group visibility restrictions are currently enabled in JIRA.
|
boolean |
isGroupVisiblityEnabled()
Determines if group visibility restrictions are currently enabled in JIRA.
|
boolean |
isProjectRoleVisibilityEnabled()
Determines if project role visibility restrictions are currently enabled in JIRA.
|
boolean |
isProjectRoleVisiblityEnabled()
Determines if project role visibility restrictions are currently enabled in JIRA.
|
boolean |
isValidVisibilityData(JiraServiceContext jiraServiceContext,
String i18nPrefix,
Issue issue,
String groupLevel,
String roleLevelId)
This will validate that the passed in group level and project role level id will constitute a valid visibility
restriction.
|
boolean |
isValidVisibilityData(JiraServiceContext jiraServiceContext,
String i18nPrefix,
Issue issue,
Visibility visibility)
This will validate that the passed in group level and project role level id will constitute a valid visibility
restriction.
|
public DefaultVisibilityValidator(ApplicationProperties applicationProperties, JiraAuthenticationContext jiraAuthenticationContext, ProjectRoleManager projectRoleManager, GroupManager groupManager)
public boolean isValidVisibilityData(JiraServiceContext jiraServiceContext, String i18nPrefix, Issue issue, String groupLevel, String roleLevelId)
VisibilityValidatorisValidVisibilityData in interface VisibilityValidatorjiraServiceContext - containing the user who wishes to apply the restriction and the errorCollectioni18nPrefix - the prefix for the I18N messages that will be added to the error collection.issue - the Issue you wish to associate the element that will be restricted with. This can not be null.groupLevel - the group level visibility of the comment (null if roleLevelId specified)roleLevelId - the role level visibility id of the comment (null if groupLevel specified)public boolean isValidVisibilityData(JiraServiceContext jiraServiceContext, String i18nPrefix, Issue issue, Visibility visibility)
VisibilityValidatorisValidVisibilityData in interface VisibilityValidatorjiraServiceContext - containing the user who wishes to apply the restriction and the errorCollectioni18nPrefix - the prefix for the I18N messages that will be added to the error collection.issue - the Issue you wish to associate the element that will be restricted with. This can not be null.visibility - defines visibility of the commentpublic boolean isGroupVisiblityEnabled()
VisibilityValidatorisGroupVisiblityEnabled in interface VisibilityValidatorpublic boolean isProjectRoleVisiblityEnabled()
VisibilityValidatorisProjectRoleVisiblityEnabled in interface VisibilityValidatorpublic boolean isGroupVisibilityEnabled()
VisibilityValidatorisGroupVisibilityEnabled in interface VisibilityValidatorpublic boolean isProjectRoleVisibilityEnabled()
VisibilityValidatorisProjectRoleVisibilityEnabled in interface VisibilityValidatorCopyright © 2002-2024 Atlassian. All Rights Reserved.