|
||||||||||
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)
|
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()
|
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(com.atlassian.user.User user)
Is this object marked as somebody's favourite? |
void |
removeLabelling(Labelling labelling)
|
protected void |
setLabellings(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 |
---|
getCreatorName, getLastModifierName, getRealClass, isPersistent, setCreatorName, 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 List<Label> getLabels()
Labelable
getLabels
in interface Labelable
public int getLabelCount()
Labelable
getLabelCount
in interface Labelable
public boolean isFavourite(com.atlassian.user.User 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)
public List<Label> getVisibleLabels(com.atlassian.user.User user)
user
- the user
public List<Label> getPersonalLabels(com.atlassian.user.User user)
user
- the user
public List<Label> getGlobalLabels(com.atlassian.user.User user)
user
- the user
public List<Label> getTeamLabels(com.atlassian.user.User user)
user
- the user
public List<Label> getLabelsForDisplay(com.atlassian.user.User user)
user
- the user
public LabelUtil getLabelUtil()
protected void setLabellings(List<Labelling> labellings)
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |