public class SignavioClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DIRECTORY_URL_SUFFIX |
static String |
MODEL_URL_SUFFIX |
| Constructor and Description |
|---|
SignavioClient(String configurationName,
String signavioBaseUrl,
String proxyUrl,
String proxyUsername,
String proxyPassword,
String defaultCommitMessage) |
| Modifier and Type | Method and Description |
|---|---|
String |
createFolder(String name,
String parent) |
String |
createModel(String parentId,
String label,
String message) |
String |
delete(String type,
String id) |
void |
dispose() |
protected org.camunda.bpm.cycle.http.client.fluent.Content |
executeAndGetContent(org.camunda.bpm.cycle.http.client.fluent.Request request) |
protected org.camunda.bpm.cycle.http.HttpResponse |
executeAndGetResponse(org.camunda.bpm.cycle.http.client.fluent.Request request) |
String |
getChildren(String dir) |
String |
getInfo(String type,
String id) |
String |
getModelAsJson(String id) |
String |
getModelAsSVG(String id) |
InputStream |
getPngContent(String model) |
InputStream |
getXmlContent(String model) |
String |
importBpmnXml(String parentFolderId,
String content,
String modelName) |
String |
importSignavioArchive(String parentFolderId,
String signavioArchive) |
boolean |
login(String username,
String password) |
String |
updateModel(String id,
String label,
String json,
String svg,
String parentId,
String message) |
public static final String MODEL_URL_SUFFIX
public static final String DIRECTORY_URL_SUFFIX
public SignavioClient(String configurationName, String signavioBaseUrl, String proxyUrl, String proxyUsername, String proxyPassword, String defaultCommitMessage) throws URISyntaxException
URISyntaxExceptionpublic InputStream getXmlContent(String model)
public InputStream getPngContent(String model)
public String updateModel(String id, String label, String json, String svg, String parentId, String message) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionpublic String importBpmnXml(String parentFolderId, String content, String modelName) throws org.camunda.bpm.cycle.http.ParseException, IOException
org.camunda.bpm.cycle.http.ParseExceptionIOExceptionpublic String importSignavioArchive(String parentFolderId, String signavioArchive) throws org.camunda.bpm.cycle.http.ParseException, IOException
org.camunda.bpm.cycle.http.ParseExceptionIOExceptionprotected org.camunda.bpm.cycle.http.client.fluent.Content executeAndGetContent(org.camunda.bpm.cycle.http.client.fluent.Request request)
protected org.camunda.bpm.cycle.http.HttpResponse executeAndGetResponse(org.camunda.bpm.cycle.http.client.fluent.Request request)
public void dispose()
Copyright © 2015. All rights reserved.