Class RemoteGroupServiceImpl
- java.lang.Object
-
- com.atlassian.confluence.rest.client.AbstractRemoteService<GroupService>
-
- com.atlassian.confluence.rest.client.remoteservice.people.RemoteGroupServiceImpl
-
- All Implemented Interfaces:
RemoteGroupService
public class RemoteGroupServiceImpl extends AbstractRemoteService<GroupService> implements RemoteGroupService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
RemoteGroupServiceImpl.RemoteGroupFinderImpl
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.rest.client.remoteservice.people.RemoteGroupService
RemoteGroupService.RemoteGroupFinder
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider
-
-
Constructor Summary
Constructors Constructor Description RemoteGroupServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Group>
createGroup(String groupName)
Send request to create a groupCompletionStage<Void>
deleteGroup(String groupName)
Send request to delete a group by its nameRemoteGroupService.RemoteGroupFinder
find(Expansion... expansions)
GroupService.Validator
validator()
-
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, deleteFuture, deleteFuture, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, postVoidCompletionStage, putCompletionStage, putFuture
-
-
-
-
Constructor Detail
-
RemoteGroupServiceImpl
public RemoteGroupServiceImpl(AuthenticatedWebResourceProvider provider, com.google.common.util.concurrent.ListeningExecutorService executor)
-
-
Method Detail
-
validator
public GroupService.Validator validator()
- Specified by:
validator
in interfaceRemoteGroupService
-
find
public RemoteGroupService.RemoteGroupFinder find(Expansion... expansions)
- Specified by:
find
in interfaceRemoteGroupService
- Returns:
- a finder for executing remote GET calls to the group API
-
createGroup
public CompletionStage<Group> createGroup(String groupName)
Description copied from interface:RemoteGroupService
Send request to create a group- Specified by:
createGroup
in interfaceRemoteGroupService
- Returns:
- a group entity
Group
-
deleteGroup
public CompletionStage<Void> deleteGroup(String groupName)
Description copied from interface:RemoteGroupService
Send request to delete a group by its name- Specified by:
deleteGroup
in interfaceRemoteGroupService
- Returns:
- empty body
-
-