|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.core.bean.EntityObject
com.atlassian.confluence.labels.Labelling
public class Labelling
An essentially immutable object that represents the link between labels and the content they label.
Constructor Summary | |
---|---|
Labelling()
Available so that newInstance can be used by hibernate to create this object. |
|
Labelling(Label label,
ContentEntityObject content,
String user)
|
|
Labelling(Label label,
ContentEntityObject content,
String user,
String spaceKey)
Deprecated. since 2.10. The Labelling object is only associated
with a space through the content. Use
Labelling(Label, ContentEntityObject, String)
instead. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
ContentEntityObject |
getContent()
Getter for the content entity object associated with this labelling. |
Label |
getLabel()
|
String |
getSpaceKey()
Deprecated. since 2.10. Use getContent() and check if it is a
SpaceContentEntityObject . If it is, cast it and call
SpaceContentEntityObject.getSpaceKey() on it |
String |
getUser()
|
int |
hashCode()
|
void |
setSpaceKey(String spaceKey)
Deprecated. since 2.10. The Labelling object is only associated
with a space through the content. |
String |
toString()
|
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 |
Constructor Detail |
---|
public Labelling(Label label, ContentEntityObject content, String user)
@Deprecated public Labelling(Label label, ContentEntityObject content, String user, String spaceKey)
Labelling
object is only associated
with a space through the content. Use
Labelling(Label, ContentEntityObject, String)
instead.
public Labelling()
Method Detail |
---|
public ContentEntityObject getContent()
public Label getLabel()
public String getUser()
@Deprecated public String getSpaceKey()
getContent()
and check if it is a
SpaceContentEntityObject
. If it is, cast it and call
SpaceContentEntityObject.getSpaceKey()
on it
public void setSpaceKey(String spaceKey)
Labelling
object is only associated
with a space through the content.
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 String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |