I tried using the SpacePermissionManagerInternal in my custom plugin but cannot inject it successfully.
The method:
pacePermissionManager.removePermission(spacePermission);
is Deprecated. since 5.9. Use SpacePermissionManagerInternal.removePermission(SpacePermission, com.atlassian.confluence.internal.security.SpacePermissionContext) instead.
Can you help me, I need to add or remove permissions for the spaces, but cannot inject SpacePermissionManagerInternal in my plugin?
I’m developing a new custom plugin, I change the permissions of some spaces.
I’m using Confluence Server 6.13.0.
The method has been deprecated
pacePermissionManager.removePermission(spacePermission);
and must be used
SpacePermissionManagerInternal.removePermission(SpacePermission, com.atlassian.confluence.internal.security.SpacePermissionContext)
however I don’t know how to inject the class SpacePermissionManagerInternal.
Thanks