java.lang.Object | ||
↳ | com.atlassian.core.bean.EntityObject | |
↳ | com.atlassian.confluence.labels.Labelling |
An ostensibly immutable object that represents the link between labels and the content they label. This represents a union type, internally only one of content, attachment or pagetemplate should be not null for any instance of a Labelling, this is what will be returned from getContent. The labelableType and labelableId fields in this class are summary fields, and are present to make the queries around popular and related labels easier.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This constructor is deprecated.
since 2.10. The
Labelling object is only associated
with a space through the content. Use
#Labelling(Label, ContentEntityObject, String)
instead.
| |||||||||||
Available so that newInstance can be used by hibernate to create this object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Getter for the content entity object associated with this labelling.
| |||||||||||
This method is deprecated.
since 2.10. Use
getLableable() and check if it is a
SpaceContentEntityObject . If it is, cast it and call
getSpaceKey() on it
| |||||||||||
This method is deprecated.
since 2.10. The
Labelling object is only associated
with a space through the content.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Setter for the content entity object associated with this labelling.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.core.bean.EntityObject
| |||||||||||
From class
java.lang.Object
|
This constructor is deprecated.
since 2.10. The Labelling
object is only associated
with a space through the content. Use
#Labelling(Label, ContentEntityObject, String)
instead.
Available so that newInstance can be used by hibernate to create this object.
Getter for the content entity object associated with this labelling.
This method is deprecated.
since 2.10. Use getLableable()
and check if it is a
SpaceContentEntityObject
. If it is, cast it and call
getSpaceKey()
on it
This method is deprecated.
since 2.10. The Labelling
object is only associated
with a space through the content.
Setter for the content entity object associated with this labelling.