public class CommentVisibility extends Object
Constructor and Description |
---|
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.
|
CommentVisibility(String commentLevel)
Digests the passed in commentLevel string, will look something like
'role:ProjectRole' or 'group:jira-users'.
|
Modifier and Type | Method and Description |
---|---|
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() |
public CommentVisibility(Map params, String paramName)
public CommentVisibility(String commentLevel)
commentLevel
- public Boolean isVisibleByAll()
public Boolean isPresent()
public String getRoleLevel()
public String getGroupLevel()
public static String getCommentLevelFromLevels(String groupLevel, Long roleLevelId)
Copyright © 2002-2024 Atlassian. All Rights Reserved.