Class BpmnProcessServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.BpmnProcessServiceImpl
-
- All Implemented Interfaces:
BpmnProcessService
,JAXRSService
@Service public class BpmnProcessServiceImpl extends AbstractService implements BpmnProcessService
-
-
Field Summary
Fields Modifier and Type Field Description protected BpmnProcessLogic
logic
-
Fields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfo
-
Fields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_KEYWORD, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RECURSIVE, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
-
-
Constructor Summary
Constructors Constructor Description BpmnProcessServiceImpl(BpmnProcessLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(String key)
Removes the BPMN process under the provided key.javax.ws.rs.core.Response
exportDiagram(String key)
Exports the BPMN diagram representation (if available), for matching key.javax.ws.rs.core.Response
get(String key)
Exports the BPMN process for matching key.List<BpmnProcess>
list()
Lists the available BPMN processes.void
set(String key, String definition)
Imports the BPMN process under the provided key.-
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getOrderByClauses, getPreference, isNullPriorityAsync, modificationResponse
-
-
-
-
Field Detail
-
logic
protected final BpmnProcessLogic logic
-
-
Constructor Detail
-
BpmnProcessServiceImpl
public BpmnProcessServiceImpl(BpmnProcessLogic logic)
-
-
Method Detail
-
list
public List<BpmnProcess> list()
Description copied from interface:BpmnProcessService
Lists the available BPMN processes.- Specified by:
list
in interfaceBpmnProcessService
- Returns:
- available BPMN processs
-
get
public javax.ws.rs.core.Response get(String key)
Description copied from interface:BpmnProcessService
Exports the BPMN process for matching key.- Specified by:
get
in interfaceBpmnProcessService
- Parameters:
key
- BPMN process key- Returns:
- BPMN process for matching key
-
exportDiagram
public javax.ws.rs.core.Response exportDiagram(String key)
Description copied from interface:BpmnProcessService
Exports the BPMN diagram representation (if available), for matching key.- Specified by:
exportDiagram
in interfaceBpmnProcessService
- Parameters:
key
- BPMN process key- Returns:
- BPMN diagram representation
-
set
public void set(String key, String definition)
Description copied from interface:BpmnProcessService
Imports the BPMN process under the provided key.- Specified by:
set
in interfaceBpmnProcessService
- Parameters:
key
- BPMN process keydefinition
- BPMN process for matching kind
-
delete
public void delete(String key)
Description copied from interface:BpmnProcessService
Removes the BPMN process under the provided key.- Specified by:
delete
in interfaceBpmnProcessService
- Parameters:
key
- BPMN process key
-
-