Interface ContentPermissionCalculator
- All Known Implementing Classes:
DefaultContentPermissionCalculator
public interface ContentPermissionCalculator
Calculates encoded string of content permission.
- Since:
- 7.17
-
Method Summary
Modifier and TypeMethodDescriptioncalculate
(@Nullable ContentEntityObject contentEntityObject) getEncodedGroupName
(String groupname) getEncodedPermissionsCollection
(ContentPermissionSet contentPermissionSet) Encodes the user keys and groups in the contentPermissionSet for storage in indexgetEncodedUserKey
(com.atlassian.sal.api.user.UserKey userKey)
-
Method Details
-
calculate
- Parameters:
contentEntityObject
- the content entity object that we need to calculate its permissions- Returns:
- a collection of
ContentPermissionSet
-
getEncodedPermissionsCollection
Encodes the user keys and groups in the contentPermissionSet for storage in index- Parameters:
contentPermissionSet
- a set of content permissions (user key and groups)- Returns:
- a collection of encoded user keys and groups
-
getEncodedUserKey
-
getEncodedUserKey
-
getEncodedGroupName
-