|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.core.bean.EntityObject
com.atlassian.confluence.labels.Label
public class Label
Constructor Summary | |
---|---|
Label()
|
|
Label(String name)
|
|
Label(String name,
Namespace namespace)
|
|
Label(String name,
Namespace namespace,
String owner)
|
|
Label(String name,
String namespace,
String owner)
|
Method Summary | |
---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object o)
Equals implementation is a value based implementation. |
String |
getDisplayTitle()
|
String |
getName()
Returns the label's name only. |
Namespace |
getNamespace()
|
String |
getOwner()
|
String |
getRealTitle()
Return the title as a combination of the namespace and the label name. |
String |
getType()
|
String |
getUrlPath()
Generates the url path for a label. |
String |
getUrlPath(String spaceKey)
Generates the url path for a label in the context of a given space i.e. |
int |
hashCode()
|
boolean |
isNew()
|
boolean |
isPersistent()
This label is persistent iff the id is not 0. |
boolean |
isRealTitleSafeForUrl()
Returns true if the label's title is safe to pass in the URL. |
boolean |
isTeamLabel()
|
boolean |
isVisibleTo(String username)
Determines whether the label should be made visible to a particular user. |
String |
toString()
|
String |
toStringWithNamespace()
|
String |
toStringWithOwnerPrefix()
|
Methods inherited from class com.atlassian.core.bean.EntityObject |
---|
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.atlassian.confluence.core.Addressable |
---|
getId |
Constructor Detail |
---|
public Label()
public Label(String name)
public Label(String name, Namespace namespace)
public Label(String name, String namespace, String owner)
public Label(String name, Namespace namespace, String owner)
Method Detail |
---|
public String getName()
DisplayableLabel
eg. label name for label my:foo is "foo".
getName
in interface DisplayableLabel
public String getOwner()
public Namespace getNamespace()
public String getType()
getType
in interface ContentTypeAware
public boolean equals(Object o)
equals
in class com.atlassian.core.bean.EntityObject
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
public int compareTo(Object o)
compareTo
in interface Comparable
public String getRealTitle()
DisplayableLabel
getRealTitle
in interface DisplayableLabel
public String getDisplayTitle()
getDisplayTitle
in interface Addressable
public boolean isRealTitleSafeForUrl()
DisplayableLabel
eg. my:foo is safe, perc% is not safe. chicken+cheese is safe in a "combined" label.
isRealTitleSafeForUrl
in interface DisplayableLabel
public String getUrlPath()
DisplayableLabel
getUrlPath
in interface Addressable
getUrlPath
in interface DisplayableLabel
public String getUrlPath(String spaceKey)
DisplayableLabel
DisplayableLabel.getUrlPath()
is called.
getUrlPath
in interface DisplayableLabel
public boolean isNew()
public boolean isPersistent()
public boolean isVisibleTo(String username)
username
- the username of the user who wishes to see the label
public String toStringWithOwnerPrefix()
public String toString()
toString
in class Object
public String toStringWithNamespace()
public boolean isTeamLabel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |