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
ConstructorsConstructorDescriptionParsedLabelName(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) Deprecated, for removal: This API element is subject to removal in a future version.since 9.3booleangetName()The label name.@Nullable StringgetOwner()The name of the labels owner, or null if this label does not have an owner.inthashCode()booleanvoidtoLabel()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
@Deprecated(since="9.3", forRemoval=true) public Label addLabel(Labelable labelable, LabelManager labelManager) Deprecated, for removal: This API element is subject to removal in a future version.since 9.3 -
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()
-