Class Overview
The Label parser understands the formatting of label strings.
The following are considered valid label strings.
my:label
: a user label owned by the currently logged in user. If no user is logged in, this
defaults to the global label of the same name..
label
: a global label.
~username:label
: a user label owned by the specified user.
Summary
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
int
MAX_LABEL_NAME_LENGTH
Constant Value:
255
(0x000000ff)
public
static
final
int
MAX_LABEL_PREFIX_LENGTH
Constant Value:
255
(0x000000ff)
public
static
final
String
NAMESPACE_DELIMITER
public
static
final
String
PERSONAL_LABEL_PREFIX
public
static
final
String
TEAM_LABEL_PREFIX
public
static
final
String
USER_LABEL_PREFIX
Fields
public
static
final
char[]
INVALID_CHARACTERS
Public Constructors
Public Methods
public
static
String
getInvalidCharactersAsString
()
public
static
boolean
isLabelOwnedByUser
(String labelString, User user)
Returns true if the label is a personal label and is owned by the specified user, false otherwise. Returns false,
if the specified labelString is not a personal or user label (as no other label types have user ownership).
Parameters
| labelString
| must be user label or personal label |
| user
| user to check against |
Returns
- true if the label is a personal label and is owned by the specified user, false otherwise.
public
static
boolean
isPersonalLabel
(String labelString)
Returns true if the label is a personal label, false otherwise.
Parameters
| labelString
| a string representation of exactly one label, optionally including a namespace.
E.g. "my:favourite", "team:confluence" or "blah". Should not be null. |
Returns
- true if the label is a personal label, false otherwise.