public class

CommentVisibility

extends Object
java.lang.Object
   ↳ com.atlassian.jira.issue.fields.CommentVisibility

Class Overview

Represents the visibility of the comment to roles or groups of users.

Summary

Public Constructors
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 visiblity param.
CommentVisibility(String commentLevel)
Digests the passed in commentLevel string, will look something like 'role:ProjectRole' or 'group:jira-users'.
Public Methods
static String getCommentLevelFromLevels(String groupLevel, Long roleLevelId)
String getGroupLevel()
Gets the group level from the commentLevel if it is of type group, null otherwise.
String getRoleLevel()
Gets the role level from the commentLevel if it is of type role, null otherwise.
static String getRoleLevelWithPrefix(String roleLevel)
Boolean isPresent()
Boolean isVisibleByAll()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public 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 visiblity param.

public CommentVisibility (String commentLevel)

Digests the passed in commentLevel string, will look something like 'role:ProjectRole' or 'group:jira-users'.

Public Methods

public static String getCommentLevelFromLevels (String groupLevel, Long roleLevelId)

public String getGroupLevel ()

Gets the group level from the commentLevel if it is of type group, null otherwise.

Returns
  • group level

public String getRoleLevel ()

Gets the role level from the commentLevel if it is of type role, null otherwise.

Returns
  • role level

public static String getRoleLevelWithPrefix (String roleLevel)

public Boolean isPresent ()

public Boolean isVisibleByAll ()