Earlier we used to get Space Permissions using below code
com.atlassian.confluence.spaces.Space space = spaceManager.getSpace(spaceKey);
List spList = space.getPermissions();
But now we are upgrading to Confluence 7.13.4 and spaceManager.getSpace(spaceKey) is deprecated and I can’t find a way to pull com.atlassian.confluence.spaces.Space which has most of the information.
According to Confluence 7.13.4 API ( SpaceManager (Atlassian Confluence 7.13.4 API) ) " since 7.3.0, use
SpaceService.find(Expansion...) in plugins and
SpaceManagerInternal in core where applicable ", So when I use above method to pull Space it returns a new Space ( com.atlassian.confluence.api.model.content.Space) class instance with minimum details unlike old one.
When I try to use SpacePermissionManager (SpacePermissionManager (Atlassian Confluence 7.13.4 API)) or PermissionManager methods accept only com.atlassian.confluence.spaces.Space but not new Space ( com.atlassian.confluence.api.model.content.Space)
Without the old Space (com.atlassian.confluence.spaces.Space) class I couldn’t find a way to pull SpacePermissions.
Thanks in advance!!