Package com.atlassian.jira.issue.fields
Class CommentVisibility
java.lang.Object
com.atlassian.jira.issue.fields.CommentVisibility
Represents the visibility of the comment to roles or groups of users.
-
Constructor Summary
ConstructorsConstructorDescriptionCommentVisibility
(String commentLevel) Digests the passed in commentLevel string, will look something like 'role:ProjectRole' or 'group:jira-users'.CommentVisibility
(Map params, String paramName) Gets a commentLevel string out of a map and then will tell you if the provided param is a role or group level visibility param. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCommentLevelFromLevels
(String groupLevel, Long roleLevelId) Gets the group level from the commentLevel if it is of type group, null otherwise.Gets the role level from the commentLevel if it is of type role, null otherwise.static String
getRoleLevelWithPrefix
(String roleLevel)
-
Constructor Details
-
CommentVisibility
Gets a commentLevel string out of a map and then will tell you if the provided param is a role or group level visibility param. -
CommentVisibility
Digests the passed in commentLevel string, will look something like 'role:ProjectRole' or 'group:jira-users'.- Parameters:
commentLevel
-
-
-
Method Details
-
isVisibleByAll
-
isPresent
-
getRoleLevel
Gets the role level from the commentLevel if it is of type role, null otherwise.- Returns:
- role level
-
getGroupLevel
Gets the group level from the commentLevel if it is of type group, null otherwise.- Returns:
- group level
-
getCommentLevelFromLevels
-
getRoleLevelWithPrefix
-