Package org.camunda.bpm.engine.rest.impl
Class ProcessDefinitionRestServiceImpl
- java.lang.Object
-
- org.camunda.bpm.engine.rest.spi.impl.AbstractProcessEngineAware
-
- org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
-
- org.camunda.bpm.engine.rest.impl.ProcessDefinitionRestServiceImpl
-
- All Implemented Interfaces:
ProcessDefinitionRestService
public class ProcessDefinitionRestServiceImpl extends AbstractRestProcessEngineAware implements ProcessDefinitionRestService
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
objectMapper, relativeRootResourcePath
-
Fields inherited from class org.camunda.bpm.engine.rest.spi.impl.AbstractProcessEngineAware
processEngine
-
Fields inherited from interface org.camunda.bpm.engine.rest.ProcessDefinitionRestService
APPLICATION_BPMN20_XML, APPLICATION_BPMN20_XML_TYPE, PATH
-
-
Constructor Summary
Constructors Constructor Description ProcessDefinitionRestServiceImpl(String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deleteProcessDefinitions(DeleteProcessDefinitionsBuilder builder, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)
void
deleteProcessDefinitionsByKey(String processDefinitionKey, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)
void
deleteProcessDefinitionsByKeyAndTenantId(String processDefinitionKey, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings, String tenantId)
ProcessDefinitionResource
getProcessDefinitionById(String processDefinitionId)
ProcessDefinitionResource
getProcessDefinitionByKey(String processDefinitionKey)
ProcessDefinitionResource
getProcessDefinitionByKeyAndTenantId(String processDefinitionKey, String tenantId)
List<ProcessDefinitionDto>
getProcessDefinitions(javax.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults)
Exposes theProcessDefinitionQuery
interface as a REST service.CountResultDto
getProcessDefinitionsCount(javax.ws.rs.core.UriInfo uriInfo)
List<StatisticsResultDto>
getStatistics(Boolean includeFailedJobs, Boolean includeRootIncidents, Boolean includeIncidents, String includeIncidentsForType)
void
updateSuspensionState(ProcessDefinitionSuspensionStateDto dto)
-
Methods inherited from class org.camunda.bpm.engine.rest.impl.AbstractRestProcessEngineAware
getObjectMapper, getProcessEngine, setRelativeRootResourceUri
-
-
-
-
Constructor Detail
-
ProcessDefinitionRestServiceImpl
public ProcessDefinitionRestServiceImpl(String engineName, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
getProcessDefinitionByKey
public ProcessDefinitionResource getProcessDefinitionByKey(String processDefinitionKey)
- Specified by:
getProcessDefinitionByKey
in interfaceProcessDefinitionRestService
-
getProcessDefinitionByKeyAndTenantId
public ProcessDefinitionResource getProcessDefinitionByKeyAndTenantId(String processDefinitionKey, String tenantId)
- Specified by:
getProcessDefinitionByKeyAndTenantId
in interfaceProcessDefinitionRestService
-
getProcessDefinitionById
public ProcessDefinitionResource getProcessDefinitionById(String processDefinitionId)
- Specified by:
getProcessDefinitionById
in interfaceProcessDefinitionRestService
-
getProcessDefinitions
public List<ProcessDefinitionDto> getProcessDefinitions(javax.ws.rs.core.UriInfo uriInfo, Integer firstResult, Integer maxResults)
Description copied from interface:ProcessDefinitionRestService
Exposes theProcessDefinitionQuery
interface as a REST service.- Specified by:
getProcessDefinitions
in interfaceProcessDefinitionRestService
- Returns:
-
getProcessDefinitionsCount
public CountResultDto getProcessDefinitionsCount(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
getProcessDefinitionsCount
in interfaceProcessDefinitionRestService
-
getStatistics
public List<StatisticsResultDto> getStatistics(Boolean includeFailedJobs, Boolean includeRootIncidents, Boolean includeIncidents, String includeIncidentsForType)
- Specified by:
getStatistics
in interfaceProcessDefinitionRestService
-
updateSuspensionState
public void updateSuspensionState(ProcessDefinitionSuspensionStateDto dto)
- Specified by:
updateSuspensionState
in interfaceProcessDefinitionRestService
-
deleteProcessDefinitionsByKey
public void deleteProcessDefinitionsByKey(String processDefinitionKey, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)
- Specified by:
deleteProcessDefinitionsByKey
in interfaceProcessDefinitionRestService
-
deleteProcessDefinitionsByKeyAndTenantId
public void deleteProcessDefinitionsByKeyAndTenantId(String processDefinitionKey, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings, String tenantId)
- Specified by:
deleteProcessDefinitionsByKeyAndTenantId
in interfaceProcessDefinitionRestService
-
deleteProcessDefinitions
protected void deleteProcessDefinitions(DeleteProcessDefinitionsBuilder builder, boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)
-
-