Package com.atlassian.confluence.labels
Class LabelPermissionSupport
- java.lang.Object
-
- com.atlassian.confluence.labels.LabelPermissionSupport
-
@Deprecated public class LabelPermissionSupport extends Object
Deprecated.since 6.9.0. Use the newLabelPermissionEnforcer
if possiblePerforms permission checking for label editing actions
-
-
Constructor Summary
Constructors Constructor Description LabelPermissionSupport()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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 namespacestatic 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 userstatic boolean
isLabelableByUser(Labelable object, PermissionManager permissionManager)
Deprecated.Checks that the object permits labels to be edited by the logged in user.static boolean
userCanEditLabel(Label label, Labelable object, PermissionManager permissionManager)
Deprecated.static boolean
userCanEditLabel(ParsedLabelName ref, Labelable object, PermissionManager permissionManager)
Deprecated.static boolean
userCanEditLabelOrIsSpaceAdmin(Label label, SpaceContentEntityObject object, PermissionManager permissionManager)
Deprecated.static boolean
userCanViewObject(Labelable object, PermissionManager permissionManager)
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.
-
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 objectsuser
- the User the labels are filtered forhideSpecialLabels
- 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 objectsuser
- the User the labels are filtered fornamespace
- the Namespace to filter by- Returns:
- a filtered list of Label objects
-
-