Package io.camunda.client.impl.command
Class UpdateAuthorizationCommandImpl
java.lang.Object
io.camunda.client.impl.command.UpdateAuthorizationCommandImpl
- All Implemented Interfaces:
FinalCommandStep<UpdateAuthorizationResponse>,UpdateAuthorizationCommandStep1,UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep2,UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep3,UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep4,UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep5,UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep6
public class UpdateAuthorizationCommandImpl
extends Object
implements UpdateAuthorizationCommandStep1, UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep2, UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep3, UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep4, UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep5, UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep6
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.client.api.command.UpdateAuthorizationCommandStep1
UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep2, UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep3, UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep4, UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep5, UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep6 -
Constructor Summary
ConstructorsConstructorDescriptionUpdateAuthorizationCommandImpl(HttpClient httpClient, JsonMapper jsonMapper, long authorizationKey) -
Method Summary
Modifier and TypeMethodDescriptionSets the ownerId of the permissions for the authorization.ownerType(OwnerTypeEnum ownerType) Sets the ownerType of the permissions for the authorization.permissionTypes(PermissionTypeEnum... permissionTypes) List the permission types for the authorization.requestTimeout(Duration requestTimeout) Sets the request timeout for the command.resourceId(String resourceId) Sets the resource ID for the authorization.resourceType(ResourceTypeEnum resourceType) Sets the resource type for the authorization.send()Sends the command to the Camunda gateway.
-
Constructor Details
-
UpdateAuthorizationCommandImpl
public UpdateAuthorizationCommandImpl(HttpClient httpClient, JsonMapper jsonMapper, long authorizationKey)
-
-
Method Details
-
ownerId
Description copied from interface:UpdateAuthorizationCommandStep1Sets the ownerId of the permissions for the authorization.- Specified by:
ownerIdin interfaceUpdateAuthorizationCommandStep1- Parameters:
ownerId- the ID of the owner of the permissions- Returns:
- the builder for this command
-
ownerType
public UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep3 ownerType(OwnerTypeEnum ownerType) Description copied from interface:UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep2Sets the ownerType of the permissions for the authorization.- Specified by:
ownerTypein interfaceUpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep2- Parameters:
ownerType- the type of the owner of the permissions- Returns:
- the builder for this command
-
resourceId
public UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep4 resourceId(String resourceId) Description copied from interface:UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep3Sets the resource ID for the authorization.- Specified by:
resourceIdin interfaceUpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep3- Parameters:
resourceId- the ID of the resource- Returns:
- the builder for this command
-
resourceType
public UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep5 resourceType(ResourceTypeEnum resourceType) Description copied from interface:UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep4Sets the resource type for the authorization.- Specified by:
resourceTypein interfaceUpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep4- Parameters:
resourceType- the type of the resource- Returns:
- the builder for this command
-
permissionTypes
public UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep6 permissionTypes(PermissionTypeEnum... permissionTypes) Description copied from interface:UpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep5List the permission types for the authorization.- Specified by:
permissionTypesin interfaceUpdateAuthorizationCommandStep1.UpdateAuthorizationCommandStep5- Parameters:
permissionTypes- the permission types- 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 usingCamundaClientBuilder.defaultRequestTimeout(Duration).- Specified by:
requestTimeoutin interfaceFinalCommandStep<UpdateAuthorizationResponse>- Parameters:
requestTimeout- the request timeout- Returns:
- the configured command
-
send
Description copied from interface:FinalCommandStepSends the command to the Camunda gateway. This operation is asynchronous. In case of success, the future returns the event that was generated by the Camunda gateway in response to the command.Call
CamundaFuture.join()to wait until the response is available.Future<JobEventinvalid input: '>' future = command.send(); JobEvent event = future.join();- Specified by:
sendin interfaceFinalCommandStep<UpdateAuthorizationResponse>- Returns:
- a future tracking state of success/failure of the command.
-