Class AddPermissionsCommandImpl
java.lang.Object
io.camunda.zeebe.client.impl.command.AddPermissionsCommandImpl
- All Implemented Interfaces:
AddPermissionsCommandStep1,AddPermissionsCommandStep1.AddPermissionsCommandStep2,AddPermissionsCommandStep1.AddPermissionsCommandStep3,AddPermissionsCommandStep1.AddPermissionsCommandStep4,FinalCommandStep<AddPermissionsResponse>
public class AddPermissionsCommandImpl
extends Object
implements AddPermissionsCommandStep1, AddPermissionsCommandStep1.AddPermissionsCommandStep2, AddPermissionsCommandStep1.AddPermissionsCommandStep3, AddPermissionsCommandStep1.AddPermissionsCommandStep4
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.client.api.command.AddPermissionsCommandStep1
AddPermissionsCommandStep1.AddPermissionsCommandStep2, AddPermissionsCommandStep1.AddPermissionsCommandStep3, AddPermissionsCommandStep1.AddPermissionsCommandStep4 -
Constructor Summary
ConstructorsConstructorDescriptionAddPermissionsCommandImpl(long ownerKey, HttpClient httpClient, JsonMapper jsonMapper) -
Method Summary
Modifier and TypeMethodDescriptionSets the permission type of the permissions that should be added.requestTimeout(Duration requestTimeout) Sets the request timeout for the command.resourceId(String resourceId) Adds a resourceId to the add permissions request.resourceIds(List<String> resourceIds) Adds all resourceIds in the list to the add permissions request.resourceType(AuthorizationPatchRequest.ResourceTypeEnum resourceType) Sets the resource type for which the permissions should be added.send()Sends the command to the Zeebe broker.
-
Constructor Details
-
AddPermissionsCommandImpl
-
-
Method Details
-
resourceType
public AddPermissionsCommandStep1.AddPermissionsCommandStep2 resourceType(AuthorizationPatchRequest.ResourceTypeEnum resourceType) Description copied from interface:AddPermissionsCommandStep1Sets the resource type for which the permissions should be added.- Specified by:
resourceTypein interfaceAddPermissionsCommandStep1- Parameters:
resourceType- the resource type- Returns:
- the builder for this command
-
permission
public AddPermissionsCommandStep1.AddPermissionsCommandStep3 permission(AuthorizationPatchRequestPermissionsInner.PermissionTypeEnum permissionType) Description copied from interface:AddPermissionsCommandStep1.AddPermissionsCommandStep2Sets the permission type of the permissions that should be added.- Specified by:
permissionin interfaceAddPermissionsCommandStep1.AddPermissionsCommandStep2- Parameters:
permissionType- the permission type- Returns:
- the builder for this command
-
resourceIds
Description copied from interface:AddPermissionsCommandStep1.AddPermissionsCommandStep3Adds all resourceIds in the list to the add permissions request.- Specified by:
resourceIdsin interfaceAddPermissionsCommandStep1.AddPermissionsCommandStep3- Parameters:
resourceIds- the list of resource ids- Returns:
- the builder for this command
-
resourceId
Description copied from interface:AddPermissionsCommandStep1.AddPermissionsCommandStep3Adds a resourceId to the add permissions request.- Specified by:
resourceIdin interfaceAddPermissionsCommandStep1.AddPermissionsCommandStep3- Parameters:
resourceId- the resource id- Returns:
- the builder for this command
-
requestTimeout
Description copied from interface:FinalCommandStepSets the request timeout for the command. The default request timeout can be configured usingZeebeClientBuilder.defaultRequestTimeout(Duration).- Specified by:
requestTimeoutin interfaceFinalCommandStep<AddPermissionsResponse>- Parameters:
requestTimeout- the request timeout- Returns:
- the configured command
-
send
Description copied from interface:FinalCommandStepSends the command to the Zeebe broker. This operation is asynchronous. In case of success, the future returns the event that was generated by the Zeebe broker in response to the command.Call
ZeebeFuture.join()to wait until the response is available.Future<JobEventinvalid input: '>' future = command.send(); JobEvent event = future.join();- Specified by:
sendin interfaceFinalCommandStep<AddPermissionsResponse>- Returns:
- a future tracking state of success/failure of the command.
-