|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.bc.issue.util.DefaultVisibilityValidator
public class DefaultVisibilityValidator
Used to validate things like Comment
's and
Worklog
's group or project role visiblity restrictions.
Constructor Summary | |
---|---|
DefaultVisibilityValidator(ApplicationProperties applicationProperties,
JiraAuthenticationContext jiraAuthenticationContext,
ProjectRoleManager projectRoleManager)
|
Method Summary | |
---|---|
boolean |
isGroupVisiblityEnabled()
Determines if group 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultVisibilityValidator(ApplicationProperties applicationProperties, JiraAuthenticationContext jiraAuthenticationContext, ProjectRoleManager projectRoleManager)
Method Detail |
---|
public boolean isValidVisibilityData(JiraServiceContext jiraServiceContext, String i18nPrefix, Issue issue, String groupLevel, String roleLevelId)
VisibilityValidator
isValidVisibilityData
in interface VisibilityValidator
jiraServiceContext
- 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 isGroupVisiblityEnabled()
VisibilityValidator
isGroupVisiblityEnabled
in interface VisibilityValidator
public boolean isProjectRoleVisiblityEnabled()
VisibilityValidator
isProjectRoleVisiblityEnabled
in interface VisibilityValidator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |