Package io.camunda.client.impl.command
Class CreateAuthorizationCommandImpl
java.lang.Object
io.camunda.client.impl.command.CreateAuthorizationCommandImpl
- All Implemented Interfaces:
CreateAuthorizationCommandStep1,CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep2,CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep3,CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep4,CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep5,CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep6,FinalCommandStep<CreateAuthorizationResponse>
public class CreateAuthorizationCommandImpl
extends Object
implements CreateAuthorizationCommandStep1, CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep2, CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep3, CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep4, CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep5, CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep6
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.client.api.command.CreateAuthorizationCommandStep1
CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep2, CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep3, CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep4, CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep5, CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep6 -
Constructor Summary
ConstructorsConstructorDescriptionCreateAuthorizationCommandImpl(HttpClient httpClient, JsonMapper jsonMapper) -
Method Summary
Modifier and TypeMethodDescriptionSets the ownerId of the permissions for the authorization.Sets the ownerType of the permissions for the authorization.permissionTypes(PermissionType... 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(ResourceType resourceType) Sets the resource type for the authorization.send()Sends the command to the Camunda gateway.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.client.api.command.FinalCommandStep
execute
-
Constructor Details
-
CreateAuthorizationCommandImpl
-
-
Method Details
-
ownerId
Description copied from interface:CreateAuthorizationCommandStep1Sets the ownerId of the permissions for the authorization.- Specified by:
ownerIdin interfaceCreateAuthorizationCommandStep1- Parameters:
ownerId- the ID of the owner of the permissions- Returns:
- the builder for this command
-
ownerType
public CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep3 ownerType(OwnerType ownerType) Description copied from interface:CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep2Sets the ownerType of the permissions for the authorization.- Specified by:
ownerTypein interfaceCreateAuthorizationCommandStep1.CreateAuthorizationCommandStep2- Parameters:
ownerType- the type of the owner of the permissions- Returns:
- the builder for this command
-
resourceId
public CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep4 resourceId(String resourceId) Description copied from interface:CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep3Sets the resource ID for the authorization.- Specified by:
resourceIdin interfaceCreateAuthorizationCommandStep1.CreateAuthorizationCommandStep3- Parameters:
resourceId- the ID of the resource- Returns:
- the builder for this command
-
resourceType
public CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep5 resourceType(ResourceType resourceType) Description copied from interface:CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep4Sets the resource type for the authorization.- Specified by:
resourceTypein interfaceCreateAuthorizationCommandStep1.CreateAuthorizationCommandStep4- Parameters:
resourceType- the type of the resource- Returns:
- the builder for this command
-
permissionTypes
public CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep6 permissionTypes(PermissionType... permissionTypes) Description copied from interface:CreateAuthorizationCommandStep1.CreateAuthorizationCommandStep5List the permission types for the authorization.- Specified by:
permissionTypesin interfaceCreateAuthorizationCommandStep1.CreateAuthorizationCommandStep5- 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<CreateAuthorizationResponse>- 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<CreateAuthorizationResponse>- Returns:
- a future tracking state of success/failure of the command.
-