public abstract class AbstractLabelableEntityObject extends AbstractVersionedEntityObject implements EditableLabelable
INITIAL_VERSION
Constructor and Description |
---|
AbstractLabelableEntityObject() |
Modifier and Type | Method and Description |
---|---|
void |
addLabelling(Labelling content) |
Object |
clone() |
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.
|
List<Labelling> |
getLabellings() |
List<Label> |
getLabels()
Retrieve the labels that are associated with this object.
|
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. |
List<Label> |
getPersonalLabels(com.atlassian.user.User user)
List the labels on this content that are personal labels for a particular user
|
List<Label> |
getTeamLabels(com.atlassian.user.User user)
List the labels on this content that are team labels for a particular user
|
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.
since 5.2. Use
isFavourite(com.atlassian.confluence.user.ConfluenceUser) instead. |
void |
removeLabelling(Labelling labelling) |
protected void |
setLabellings(List<Labelling> labellings) |
applyChildVersioningPolicy, convertToHistoricalVersion, getConfluenceRevision, getLatestVersion, getOriginalVersion, getVersion, getVersionChildPolicy, isLatestVersion, isNew, setOriginalVersion, setVersion
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, setLastModifierName
equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getId, getTitle, isPersistent
public List<Label> getLabels()
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(com.atlassian.confluence.user.ConfluenceUser)
instead.isFavourite
in interface Labelable
public List<Label> getVisibleLabels(com.atlassian.user.User user)
user
- the userpublic List<Label> getPersonalLabels(com.atlassian.user.User user)
user
- the userpublic List<Label> getGlobalLabels(com.atlassian.user.User user)
user
- the userpublic List<Label> getTeamLabels(com.atlassian.user.User user)
user
- the userpublic List<Label> getLabelsForDisplay(com.atlassian.user.User user)
user
- the user@Deprecated public LabelUtil getLabelUtil()
LabelUtil
directly.public 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 Object clone() throws CloneNotSupportedException
clone
in class com.atlassian.core.bean.EntityObject
CloneNotSupportedException
Copyright © 2003–2017 Atlassian. All rights reserved.