Class PermittedLabelView

  • All Implemented Interfaces:

    public class PermittedLabelView
    extends Object
    implements Labelable
    This wrapper exposes only those labels and functions of the labelable object that the specified user is permitted to view.
    • Constructor Detail

      • PermittedLabelView

        public PermittedLabelView​(Labelable original,
                                  com.atlassian.user.User actingUser,
                                  boolean hideSpecialLabels)
    • Method Detail

      • getLabels

        public List<Label> getLabels()
        Description copied from interface: Labelable
        Retrieve the labels that are associated with this object.
        Specified by:
        getLabels in interface Labelable
        a list of label instances.
      • getLabelCount

        public int getLabelCount()
        Description copied from interface: Labelable
        Get the number of labels that are associated with this object.
        Specified by:
        getLabelCount in interface Labelable
        the number of labels associated with this object.
      • isFavourite

        public boolean isFavourite​(ConfluenceUser user)
        Description copied from interface: Labelable
        Is this object marked as somebody's favourite?
        Specified by:
        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)
        true if the labelable object is a 'favourite' of a given user, false otherwise
      • getDelegate

        public Labelable getDelegate()