Class RemoteGlobalPermissionServiceImpl
java.lang.Object
com.atlassian.confluence.rest.client.AbstractRemoteService<GlobalPermissionService>
com.atlassian.confluence.rest.client.RemoteGlobalPermissionServiceImpl
- All Implemented Interfaces:
RemoteGlobalPermissionService
public class RemoteGlobalPermissionServiceImpl
extends AbstractRemoteService<GlobalPermissionService>
implements RemoteGlobalPermissionService
- Since:
- 9.3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider -
Constructor Summary
ConstructorsConstructorDescriptionRemoteGlobalPermissionServiceImpl(AuthenticatedWebResourceProvider provider, ExecutorService executor) -
Method Summary
Modifier and TypeMethodDescriptionGet all global permissionsGet the permissions granted to an anonymous users.Get the permissions granted to a group.Get the permissions granted to unlicensed users.Get the permissions granted to a user.grantPermissionsToAnonymousUsers(Set<OperationDescription> permissions) Grants global permissions to anonymous users.grantPermissionsToGroup(String groupName, Set<OperationDescription> permissions) Grants global permissions to a group.grantPermissionsToUnlicensedUsers(Set<OperationDescription> permissions) Grants global permissions to unlicensed users.grantPermissionsToUser(User user, Set<OperationDescription> permissions) Grants global permissions to a user.revokePermissionsFromAnonymousUsers(Set<OperationDescription> permissions) Revoke global permissions from anonymous users.revokePermissionsFromGroup(String groupName, Set<OperationDescription> permissions) Revoke global permissions from a group.revokePermissionsFromUnlicensedUsers(Set<OperationDescription> permissions) Revoke global permissions from unlicensed users.revokePermissionsFromUser(User user, Set<OperationDescription> permissions) Revoke global permissions from a user.setPermissions(Set<SpacePermissionsForSubject> permissionsForSubjects) Sets global permissions to multiple users/groups.Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfGenericListResponse, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, newBackdoorWebTarget, newExperimentalRestWebTarget, newWebTarget, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postVoidCompletionStage, putCompletionStage, putVoidCompletionStage
-
Field Details
-
GROUP_PATH
- See Also:
-
USER_PATH
- See Also:
-
ANONYMOUS_PATH
- See Also:
-
UNLICENSED_PATH
- See Also:
-
PERMISSIONS_PATH
- See Also:
-
GRANT_PATH
- See Also:
-
REVOKE_PATH
- See Also:
-
-
Constructor Details
-
RemoteGlobalPermissionServiceImpl
public RemoteGlobalPermissionServiceImpl(AuthenticatedWebResourceProvider provider, ExecutorService executor)
-
-
Method Details
-
getAllPermissionsCompletionStage
Description copied from interface:RemoteGlobalPermissionServiceGet all global permissions
- Specified by:
getAllPermissionsCompletionStagein interfaceRemoteGlobalPermissionService- Returns:
- list of permissions granted to users and groups in the particular space
-
getPermissionsGrantedToUserCompletionStage
public CompletionStage<Iterable<GlobalPermission>> getPermissionsGrantedToUserCompletionStage(User user) Description copied from interface:RemoteGlobalPermissionServiceGet the permissions granted to a user.
- Specified by:
getPermissionsGrantedToUserCompletionStagein interfaceRemoteGlobalPermissionService- Parameters:
user- user whose permissions we retrieve- Returns:
- list of global permissions granted to the user
-
getPermissionsGrantedToGroupCompletionStage
public CompletionStage<Iterable<GlobalPermission>> getPermissionsGrantedToGroupCompletionStage(String groupName) Description copied from interface:RemoteGlobalPermissionServiceGet the permissions granted to a group.
- Specified by:
getPermissionsGrantedToGroupCompletionStagein interfaceRemoteGlobalPermissionService- Parameters:
groupName- the group name- Returns:
- list of global permissions granted to group
-
getPermissionsGrantedToAnonymousUsersCompletionStage
public CompletionStage<Iterable<GlobalPermission>> getPermissionsGrantedToAnonymousUsersCompletionStage()Description copied from interface:RemoteGlobalPermissionServiceGet the permissions granted to an anonymous users.
- Specified by:
getPermissionsGrantedToAnonymousUsersCompletionStagein interfaceRemoteGlobalPermissionService- Returns:
- list of global permissions granted to anonymous user
-
getPermissionsGrantedToUnlicensedUsersCompletionStage
public CompletionStage<Iterable<GlobalPermission>> getPermissionsGrantedToUnlicensedUsersCompletionStage()Description copied from interface:RemoteGlobalPermissionServiceGet the permissions granted to unlicensed users.
- Specified by:
getPermissionsGrantedToUnlicensedUsersCompletionStagein interfaceRemoteGlobalPermissionService- Returns:
- list of global permissions granted to unlicensed users
-
grantPermissionsToGroup
public CompletionStage<Void> grantPermissionsToGroup(String groupName, Set<OperationDescription> permissions) Description copied from interface:RemoteGlobalPermissionServiceGrants global permissions to a group.
- Specified by:
grantPermissionsToGroupin interfaceRemoteGlobalPermissionService- Parameters:
groupName- the name of the grouppermissions- the permissions being granted
-
grantPermissionsToUser
public CompletionStage<Void> grantPermissionsToUser(User user, Set<OperationDescription> permissions) Description copied from interface:RemoteGlobalPermissionServiceGrants global permissions to a user.
- Specified by:
grantPermissionsToUserin interfaceRemoteGlobalPermissionService- Parameters:
user- the user to whom we grant permissionspermissions- the permissions being granted
-
grantPermissionsToAnonymousUsers
public CompletionStage<Void> grantPermissionsToAnonymousUsers(Set<OperationDescription> permissions) Description copied from interface:RemoteGlobalPermissionServiceGrants global permissions to anonymous users.
- Specified by:
grantPermissionsToAnonymousUsersin interfaceRemoteGlobalPermissionService- Parameters:
permissions- the permissions being granted
-
grantPermissionsToUnlicensedUsers
public CompletionStage<Void> grantPermissionsToUnlicensedUsers(Set<OperationDescription> permissions) Description copied from interface:RemoteGlobalPermissionServiceGrants global permissions to unlicensed users.
- Specified by:
grantPermissionsToUnlicensedUsersin interfaceRemoteGlobalPermissionService- Parameters:
permissions- the permissions being granted
-
revokePermissionsFromGroup
public CompletionStage<Void> revokePermissionsFromGroup(String groupName, Set<OperationDescription> permissions) Description copied from interface:RemoteGlobalPermissionServiceRevoke global permissions from a group.
- Specified by:
revokePermissionsFromGroupin interfaceRemoteGlobalPermissionService- Parameters:
groupName- the name of the grouppermissions- the permissions being revoked
-
revokePermissionsFromUser
public CompletionStage<Void> revokePermissionsFromUser(User user, Set<OperationDescription> permissions) Description copied from interface:RemoteGlobalPermissionServiceRevoke global permissions from a user.
- Specified by:
revokePermissionsFromUserin interfaceRemoteGlobalPermissionService- Parameters:
user- the user from whom we revoke permissionspermissions- the permissions being revoked
-
revokePermissionsFromAnonymousUsers
public CompletionStage<Void> revokePermissionsFromAnonymousUsers(Set<OperationDescription> permissions) Description copied from interface:RemoteGlobalPermissionServiceRevoke global permissions from anonymous users.
- Specified by:
revokePermissionsFromAnonymousUsersin interfaceRemoteGlobalPermissionService- Parameters:
permissions- the permissions being revoked
-
revokePermissionsFromUnlicensedUsers
public CompletionStage<Void> revokePermissionsFromUnlicensedUsers(Set<OperationDescription> permissions) Description copied from interface:RemoteGlobalPermissionServiceRevoke global permissions from unlicensed users.
- Specified by:
revokePermissionsFromUnlicensedUsersin interfaceRemoteGlobalPermissionService- Parameters:
permissions- the permissions being revoked
-
setPermissions
Description copied from interface:RemoteGlobalPermissionServiceSets global permissions to multiple users/groups. Request should contain all permissions that user/group will have. If permission is absent in the request, but was granted before, it will be revoked. If empty list of permissions passed to user/group, then all their existing permissions will be revoked. If user/group not mentioned in the request, their permissions will not be revoked. Maximum 40 different users/groups could be passed in the request by default.- Specified by:
setPermissionsin interfaceRemoteGlobalPermissionService- Parameters:
permissionsForSubjects- a set of operations granted users or groups
-