use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method generateAppName.
@Override
public void generateAppName(String title, String appPath, String accountName, ServerRequestCallback<RSConnectAppName> resultCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(title));
params.set(1, new JSONString(StringUtil.isNullOrEmpty(appPath) ? "" : appPath));
params.set(2, new JSONString(accountName));
sendRequest(RPC_SCOPE, "generate_app_name", params, resultCallback);
}
use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method setProjectSharedUsers.
@Override
public void setProjectSharedUsers(JsArrayString users, ServerRequestCallback<SharingResult> callback) {
JSONArray params = new JSONArray();
params.set(0, new JSONArray(users));
sendRequest(RPC_SCOPE, "set_shared_users", params, callback);
}
use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method getOutputPreview.
public void getOutputPreview(String dataFilePath, String encoding, boolean heading, String separator, String decimal, String quote, String comment, ServerRequestCallback<DataPreviewResult> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(dataFilePath));
params.set(1, new JSONString(encoding));
params.set(2, JSONBoolean.getInstance(heading));
params.set(3, new JSONString(separator));
params.set(4, new JSONString(decimal));
params.set(5, new JSONString(quote));
params.set(6, new JSONString(comment));
sendRequest(RPC_SCOPE, GET_OUTPUT_PREVIEW, params, requestCallback);
}
use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method replayNotebookChunkPlots.
@Override
public void replayNotebookChunkPlots(String docId, String chunkId, int pixelWidth, int pixelHeight, ServerRequestCallback<String> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(docId));
params.set(1, new JSONString(chunkId));
params.set(2, new JSONNumber(pixelWidth));
params.set(3, new JSONNumber(pixelHeight));
sendRequest(RPC_SCOPE, "replay_notebook_chunk_plots", params, requestCallback);
}
use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method connectionPreviewTable.
@Override
public void connectionPreviewTable(ConnectionId connectionId, String table, ServerRequestCallback<Void> callback) {
JSONArray params = new JSONArray();
params.set(0, new JSONObject(connectionId));
params.set(1, new JSONString(table));
sendRequest(RPC_SCOPE, CONNECTION_PREVIEW_TABLE, params, callback);
}
Aggregations