Package com.atlassian.confluence.labels
Class PermittedLabelView
java.lang.Object
com.atlassian.confluence.labels.PermittedLabelView
- All Implemented Interfaces:
Labelable
This wrapper exposes only those labels and functions of the labelable object that the
specified user is permitted to view.
-
Constructor Summary
ConstructorsConstructorDescriptionPermittedLabelView(Labelable original, com.atlassian.user.User actingUser, boolean hideSpecialLabels) -
Method Summary
Modifier and TypeMethodDescriptionintGet the number of labels that are associated with this object.Retrieve the labels that are associated with this object.booleanisFavourite(ConfluenceUser user) Is this object marked as somebody's favourite?
-
Constructor Details
-
PermittedLabelView
public PermittedLabelView(Labelable original, com.atlassian.user.User actingUser, boolean hideSpecialLabels)
-
-
Method Details
-
getLabels
Description copied from interface:LabelableRetrieve the labels that are associated with this object. -
getLabelCount
public int getLabelCount()Description copied from interface:LabelableGet the number of labels that are associated with this object.- Specified by:
getLabelCountin interfaceLabelable- Returns:
- the number of labels associated with this object.
-
isFavourite
Description copied from interface:LabelableIs this object marked as somebody's favourite?- Specified by:
isFavouritein interfaceLabelable- Parameters:
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)- Returns:
- true if the labelable object is a 'favourite' of a given user, false otherwise
-
getDelegate
-