|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.confluence.core.ConfluenceEntityObject com.atlassian.confluence.core.AbstractVersionedEntityObject com.atlassian.confluence.core.AbstractLabelableEntityObject
public abstract class AbstractLabelableEntityObject
Field Summary |
---|
Fields inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject |
---|
INITIAL_VERSION |
Constructor Summary | |
---|---|
AbstractLabelableEntityObject()
|
Method Summary | |
---|---|
void |
addLabelling(Labelling content)
|
java.lang.Object |
clone()
|
java.util.List<Label> |
getGlobalLabels(com.atlassian.user.User user)
List the labels on this content that are global labels |
int |
getLabelCount()
Get the number of labels that are associated with this object. |
java.util.List<Labelling> |
getLabellings()
|
java.util.List<Label> |
getLabels()
Retrieve the labels that are associated with this object. |
java.util.List<Label> |
getLabelsForDisplay(com.atlassian.user.User user)
List the labels on this content that are visible to a particular user, and should be shown in a list of labels. |
LabelUtil |
getLabelUtil()
Deprecated. since 5.2. Use LabelUtil directly. |
java.util.List<Label> |
getPersonalLabels(com.atlassian.user.User user)
List the labels on this content that are personal labels for a particular user |
java.util.List<Label> |
getTeamLabels(com.atlassian.user.User user)
List the labels on this content that are team labels for a particular user |
java.util.List<Label> |
getVisibleLabels(com.atlassian.user.User user)
List the labels on this content that are visible to a particular user |
boolean |
isFavourite(ConfluenceUser user)
Is this object marked as somebody's favourite? |
boolean |
isFavourite(com.atlassian.user.User user)
Deprecated. |
void |
removeLabelling(Labelling labelling)
|
protected void |
setLabellings(java.util.List<Labelling> labellings)
|
Methods inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject |
---|
convertToHistoricalVersion, getLatestVersion, getOriginalVersion, getVersion, isLatestVersion, isNew, setOriginalVersion, setVersion |
Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject |
---|
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, setLastModifierName |
Methods inherited from class com.atlassian.core.bean.EntityObject |
---|
equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.confluence.labels.EditableLabelable |
---|
getId, getTitle, isPersistent |
Constructor Detail |
---|
public AbstractLabelableEntityObject()
Method Detail |
---|
public java.util.List<Label> getLabels()
Labelable
getLabels
in interface Labelable
public int getLabelCount()
Labelable
getLabelCount
in interface Labelable
public boolean isFavourite(ConfluenceUser user)
Labelable
isFavourite
in interface Labelable
user
- the user who is being checked against. If user is null
this method must always return false (anonymous users can not
mark anything as a favourite, obviously)
@Deprecated public boolean isFavourite(com.atlassian.user.User user)
isFavourite
in interface Labelable
public java.util.List<Label> getVisibleLabels(com.atlassian.user.User user)
user
- the user
public java.util.List<Label> getPersonalLabels(com.atlassian.user.User user)
user
- the user
public java.util.List<Label> getGlobalLabels(com.atlassian.user.User user)
user
- the user
public java.util.List<Label> getTeamLabels(com.atlassian.user.User user)
user
- the user
public java.util.List<Label> getLabelsForDisplay(com.atlassian.user.User user)
user
- the user
@Deprecated public LabelUtil getLabelUtil()
LabelUtil
directly.
protected void setLabellings(java.util.List<Labelling> labellings)
public java.util.List<Labelling> getLabellings()
getLabellings
in interface EditableLabelable
public void addLabelling(Labelling content)
addLabelling
in interface EditableLabelable
public void removeLabelling(Labelling labelling)
removeLabelling
in interface EditableLabelable
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class com.atlassian.core.bean.EntityObject
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |