io.camunda.service.CamundaServices Maven / Gradle / Ivy
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Camunda License 1.0. You may not use this file
* except in compliance with the Camunda License 1.0.
*/
package io.camunda.service;
import io.camunda.search.clients.CamundaSearchClient;
import io.camunda.service.security.auth.Authentication;
import io.camunda.service.transformers.ServiceTransformers;
import io.camunda.zeebe.broker.client.api.BrokerClient;
import io.camunda.zeebe.gateway.impl.job.ActivateJobsHandler;
public final class CamundaServices extends ApiServices {
public CamundaServices(final BrokerClient brokerClient, final CamundaSearchClient searchClient) {
this(brokerClient, searchClient, null, null);
}
public CamundaServices(
final BrokerClient brokerClient,
final CamundaSearchClient searchClient,
final ServiceTransformers transformers,
final Authentication authentication) {
super(brokerClient, searchClient, transformers, authentication);
}
public JobServices jobServices(final ActivateJobsHandler activateJobsHandler) {
return new JobServices<>(
brokerClient, activateJobsHandler, searchClient, transformers, authentication);
}
public ProcessInstanceServices processInstanceServices() {
return new ProcessInstanceServices(brokerClient, searchClient, transformers, authentication);
}
public UserTaskServices userTaskServices() {
return new UserTaskServices(brokerClient, searchClient, transformers, authentication);
}
public VariableServices variableServices() {
return new VariableServices(brokerClient, searchClient, transformers, authentication);
}
public DecisionDefinitionServices decisionDefinitionServices() {
return new DecisionDefinitionServices(brokerClient, searchClient, transformers, authentication);
}
public DecisionRequirementsServices decisionRequirementsServices() {
return new DecisionRequirementsServices(
brokerClient, searchClient, transformers, authentication);
}
public DecisionInstanceServices decisionInstanceServices() {
return new DecisionInstanceServices(brokerClient, searchClient, transformers, authentication);
}
public IncidentServices incidentServices() {
return new IncidentServices(brokerClient, searchClient, transformers, authentication);
}
public FlowNodeInstanceServices flownodeInstanceServices() {
return new FlowNodeInstanceServices(brokerClient, searchClient, transformers, authentication);
}
public UserServices userServices() {
return new UserServices(brokerClient, searchClient, transformers, authentication);
}
public MessageServices messageServices() {
return new MessageServices(brokerClient, searchClient, transformers, authentication);
}
public DocumentServices documentServices() {
return new DocumentServices(brokerClient, searchClient, transformers, authentication);
}
public AuthorizationServices authorizationServices() {
return new AuthorizationServices<>(brokerClient, searchClient, transformers, authentication);
}
public ClockServices clockServices() {
return new ClockServices(brokerClient, searchClient, transformers, authentication);
}
public ResourceServices resourceService() {
return new ResourceServices(brokerClient, searchClient, transformers, authentication);
}
public ElementInstanceServices elementServices() {
return new ElementInstanceServices(brokerClient, searchClient, transformers, authentication);
}
public SignalServices signalServices() {
return new SignalServices(brokerClient, searchClient, transformers, authentication);
}
@Override
public CamundaServices withAuthentication(final Authentication authentication) {
return new CamundaServices(brokerClient, searchClient, transformers, authentication);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy