|
||||||||||
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 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.
Constructor Summary | |
---|---|
Labelling()
Available so that newInstance can be used by hibernate to create this object. |
|
Labelling(Label label,
EditableLabelable labelable,
String user)
|
Method Summary | |
---|---|
Labelling |
copy()
|
Labelling |
copy(EditableLabelable labelable)
Copies the current Labelling, but providing it with a new EditableLabelable. |
boolean |
equals(Object o)
|
protected Attachment |
getAttachment()
|
protected ContentEntityObject |
getContent()
|
Label |
getLabel()
|
protected Long |
getLabelableId()
|
protected String |
getLabelableType()
|
EditableLabelable |
getLableable()
Getter for the content entity object associated with this labelling. |
protected PageTemplate |
getPageTemplate()
|
String |
getUser()
|
int |
hashCode()
|
protected void |
setAttachment(Attachment attachment)
|
protected void |
setContent(ContentEntityObject ceo)
|
protected void |
setLabelable(EditableLabelable labelable)
Setter for the content entity object associated with this labelling. |
protected void |
setLabelableId(Long id)
|
protected void |
setLabelableType(String type)
|
protected void |
setPageTemplate(PageTemplate pageTemplate)
|
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, EditableLabelable labelable, String user)
public Labelling()
Method Detail |
---|
public EditableLabelable getLableable()
protected void setLabelable(EditableLabelable labelable)
content
- public Label getLabel()
public String getUser()
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
protected Attachment getAttachment()
protected PageTemplate getPageTemplate()
protected ContentEntityObject getContent()
protected void setAttachment(Attachment attachment)
protected void setPageTemplate(PageTemplate pageTemplate)
protected void setContent(ContentEntityObject ceo)
protected void setLabelableId(Long id)
protected Long getLabelableId()
protected void setLabelableType(String type)
protected String getLabelableType()
public Labelling copy()
public Labelling copy(EditableLabelable labelable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |