SpacePermissionManagerInternal inject

Hi,
I’m developing a new custom plugin, I change the permissions of some spaces.
I’m using Confluence Server 6.13.0.
I tried using the SpacePermissionManagerInternal in my plugin but cannot inject it successfully.

The method:
spacePermissionManager.removePermission(spacePermission);
is Deprecated. since 5.9.
Use SpacePermissionManagerInternal.removePermission(SpacePermission, com.atlassian.confluence.internal.security.SpacePermissionContext) instead.

I don’t know how to inject the class SpacePermissionManagerInternal.

I tried
private final SpacePermissionManagerInternal spacePermissionManagerInternal = ComponentLocator.getComponent(SpacePermissionManagerInternal.class);

or

@ConfluenceImport
private final SpacePermissionManagerInternal spacePermissionManagerInternal;

but without result.

The error is the package com.atlassian.confluence.internal

Thanks for support

2 Likes

I have the same problem. Have you had any luck yet?

2 Likes

This post says that the SpacePermissionManagerInternal class is not available to people outside of Atlassian.

What now?