|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.labels.PermittedLabelView
public class PermittedLabelView
This wrapper exposes only those labels and functions of the labelable object that the specified user is permitted to view.
Field Summary | |
---|---|
static org.apache.log4j.Category |
log
Deprecated. since 5.5, use private logger |
Constructor Summary | |
---|---|
PermittedLabelView(Labelable original,
com.atlassian.user.User actingUser,
boolean hideSpecialLabels)
|
Method Summary | |
---|---|
Labelable |
getDelegate()
|
int |
getLabelCount()
Get the number of labels that are associated with this object. |
java.util.List<Label> |
getLabels()
Retrieve the labels that are associated with this object. |
boolean |
isFavourite(ConfluenceUser user)
Is this object marked as somebody's favourite? |
boolean |
isFavourite(com.atlassian.user.User user)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final org.apache.log4j.Category log
Constructor Detail |
---|
public PermittedLabelView(Labelable original, com.atlassian.user.User actingUser, boolean hideSpecialLabels)
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 Labelable getDelegate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |