Class PagePermissionsActionHelper
java.lang.Object
com.atlassian.confluence.pages.actions.PagePermissionsActionHelper
Provides methods for converting user and group permission strings from web forms into collections of
ContentPermission
objects.-
Constructor Summary
ConstructorsConstructorDescriptionPagePermissionsActionHelper
(ConfluenceUser currentAuthenticatedUser, UserAccessor userAccessor) Deprecated, for removal: This API element is subject to removal in a future version.since 9.2.6PagePermissionsActionHelper
(ConfluenceUser currentAuthenticatedUser, UserAccessor userAccessor, ContentPermissionTester permissionSetTester) -
Method Summary
Modifier and TypeMethodDescriptioncreatePermissions
(String contentPermissionType, String permissionsGroups, String permissionsUsers) Deprecated.since 7.5.0 UsecreatePermissions(String, List, List)
insteadcreatePermissions
(String contentPermissionType, List<String> permissionsGroupList, List<String> permissionsUserList) Returns the viewContentPermission
s of the required type for this helper instance, adding the helper User if they don't have view permission via the list.
-
Constructor Details
-
PagePermissionsActionHelper
public PagePermissionsActionHelper(ConfluenceUser currentAuthenticatedUser, UserAccessor userAccessor, ContentPermissionTester permissionSetTester) -
PagePermissionsActionHelper
@Deprecated(since="9.2.6", forRemoval=true) public PagePermissionsActionHelper(ConfluenceUser currentAuthenticatedUser, UserAccessor userAccessor) Deprecated, for removal: This API element is subject to removal in a future version.since 9.2.6
-
-
Method Details
-
createPermissions
@Deprecated public List<ContentPermission> createPermissions(String contentPermissionType, String permissionsGroups, String permissionsUsers) Deprecated.since 7.5.0 UsecreatePermissions(String, List, List)
insteadReturns the viewContentPermission
s of the required type for this helper instance, adding the helper User if they don't have view permission via the list.- Since:
- 1.0.0
-
createPermissions
public List<ContentPermission> createPermissions(String contentPermissionType, List<String> permissionsGroupList, List<String> permissionsUserList) Returns the viewContentPermission
s of the required type for this helper instance, adding the helper User if they don't have view permission via the list.- Since:
- 7.5.0
-