Class LabelPermissionSupport

    • Constructor Detail

      • LabelPermissionSupport

        public LabelPermissionSupport()
        Deprecated.
    • Method Detail

      • 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.
      • 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