Class LabelPermissionSupport

java.lang.Object
com.atlassian.confluence.labels.LabelPermissionSupport

@Deprecated public class LabelPermissionSupport extends Object
Deprecated.
since 6.9.0. Use the new LabelPermissionEnforcer if possible
Performs permission checking for label editing actions
  • Constructor Details

    • LabelPermissionSupport

      public LabelPermissionSupport()
      Deprecated.
  • Method Details

    • isLabelableByUser

      public static boolean isLabelableByUser(Labelable object, PermissionManager permissionManager)
      Deprecated.
      Checks that the object permits labels to be edited by the logged in user.
      Parameters:
      object - - the object to be labelled, if null returns false.
      permissionManager - - permission manaager to use
      Returns:
      true if permitted.
    • userCanEditLabel

      public static boolean userCanEditLabel(ParsedLabelName ref, Labelable object, PermissionManager permissionManager)
      Deprecated.
    • userCanEditLabel

      public static boolean userCanEditLabel(Label label, Labelable object, PermissionManager permissionManager)
      Deprecated.
    • userCanEditLabelOrIsSpaceAdmin

      public static boolean userCanEditLabelOrIsSpaceAdmin(Label label, SpaceContentEntityObject object, PermissionManager permissionManager)
      Deprecated.
    • userCanViewObject

      public static boolean userCanViewObject(Labelable object, PermissionManager permissionManager)
      Deprecated.
    • filterVisibleLabels

      public static List filterVisibleLabels(List labelList, com.atlassian.user.User user, boolean hideSpecialLabels)
      Deprecated.
      Takes a list of label objects and filters out those not visible to the given user
      Parameters:
      labelList - a list of Label objects
      user - the User the labels are filtered for
      hideSpecialLabels - whether to hide special labels, such as favourites
      Returns:
      a filtered list of Label objects
    • filterLabelsByNamespace

      public static List filterLabelsByNamespace(List labelList, com.atlassian.user.User user, Namespace namespace)
      Deprecated.
      Takes a list of label objects and filters out those not in the specified namespace
      Parameters:
      labelList - a list of Label objects
      user - the User the labels are filtered for
      namespace - the Namespace to filter by
      Returns:
      a filtered list of Label objects