Package com.atlassian.confluence.labels
Class LabelPermissionSupport
java.lang.Object
com.atlassian.confluence.labels.LabelPermissionSupport
Deprecated.
Performs permission checking for label editing actions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ListfilterLabelsByNamespace(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 ListfilterVisibleLabels(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 booleanisLabelableByUser(Labelable object, PermissionManager permissionManager) Deprecated.Checks that the object permits labels to be edited by the logged in user.static booleanuserCanEditLabel(Label label, Labelable object, PermissionManager permissionManager) Deprecated.static booleanuserCanEditLabel(ParsedLabelName ref, Labelable object, PermissionManager permissionManager) Deprecated.static booleanuserCanEditLabelOrIsSpaceAdmin(Label label, SpaceContentEntityObject object, PermissionManager permissionManager) Deprecated.static booleanuserCanViewObject(Labelable object, PermissionManager permissionManager) Deprecated.
-
Constructor Details
-
LabelPermissionSupport
public LabelPermissionSupport()Deprecated.
-
-
Method Details
-
isLabelableByUser
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
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
-
LabelPermissionEnforcerif possible