Package com.atlassian.confluence.labels
Class ParsedLabelName
java.lang.Object
com.atlassian.confluence.labels.ParsedLabelName
The label reference object encapsulates the unique string representation of a label within confluence.
-
Constructor Summary
ConstructorDescriptionParsedLabelName
(String name) ParsedLabelName
(String name, @Nullable String owner) ParsedLabelName
(String name, @Nullable String owner, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionaddLabel
(Labelable labelable, LabelManager labelManager) boolean
getName()
The label name.@Nullable String
getOwner()
The name of the labels owner, or null if this label does not have an owner.int
hashCode()
boolean
void
toLabel()
Creates a personal, team or global Label object from the parsed name.toLabel
(@Nullable ConfluenceUser user) Creates a personal, team or global Label object from the parsed name with the given owner.
-
Constructor Details
-
ParsedLabelName
-
ParsedLabelName
-
ParsedLabelName
-
-
Method Details
-
getName
The label name. -
getOwner
The name of the labels owner, or null if this label does not have an owner. -
getPrefix
-
setPrefix
-
isOwnerSpecified
@EnsuresNonNullIf(expression="getOwner()", result=true) public boolean isOwnerSpecified() -
addLabel
-
toLabel
Creates a personal, team or global Label object from the parsed name. -
toLabel
Creates a personal, team or global Label object from the parsed name with the given owner.- Parameters:
user
- For personal or global labels, overrides the original user of the label.
-
equals
-
hashCode
public int hashCode()
-