com.atlassian.jira.issue.fields
Class CommentVisibility

java.lang.Object
  extended by com.atlassian.jira.issue.fields.CommentVisibility

public class CommentVisibility
extends Object

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


Constructor Summary
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'.
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentVisibility

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.


CommentVisibility

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

Parameters:
commentLevel -
Method Detail

getRoleLevel

public String getRoleLevel()
Gets the role level from the commentLevel if it is of type role, null otherwise.

Returns:
role level

getGroupLevel

public String getGroupLevel()
Gets the group level from the commentLevel if it is of type group, null otherwise.

Returns:
group level

getCommentLevelFromLevels

public static String getCommentLevelFromLevels(String groupLevel,
                                               Long roleLevelId)

getRoleLevelWithPrefix

public static String getRoleLevelWithPrefix(String roleLevel)


Copyright © 2002-2012 Atlassian. All Rights Reserved.