use of com.google.gwt.json.client.JSONNumber in project perun by CESNET.
the class DeleteOwner method prepareJSONObject.
/**
* Prepares a JSON object
*
* @return JSONObject the whole query
*/
private JSONObject prepareJSONObject() {
JSONObject jsonQuery = new JSONObject();
jsonQuery.put("owner", new JSONNumber(ownerId));
return jsonQuery;
}
use of com.google.gwt.json.client.JSONNumber in project perun by CESNET.
the class DeleteVo method prepareJSONObject.
/**
* Prepares a JSON object
*
* @return JSONObject the whole query
*/
private JSONObject prepareJSONObject() {
JSONObject jsonQuery = new JSONObject();
jsonQuery.put("vo", new JSONNumber(voId));
if (force) {
jsonQuery.put("force", null);
}
return jsonQuery;
}
use of com.google.gwt.json.client.JSONNumber in project perun by CESNET.
the class UpdateVo method prepareJSONObject.
/**
* Prepares a JSON object.
* @return JSONObject - the whole query
*/
private JSONObject prepareJSONObject() {
// vo
JSONObject newVo = new JSONObject();
newVo.put("id", new JSONNumber(vo.getId()));
newVo.put("name", new JSONString(vo.getName()));
newVo.put("shortName", new JSONString(vo.getShortName()));
// whole JSON query
JSONObject jsonQuery = new JSONObject();
jsonQuery.put("vo", newVo);
return jsonQuery;
}
use of com.google.gwt.json.client.JSONNumber in project rstudio by rstudio.
the class RemoteServer method replayNotebookPlots.
@Override
public void replayNotebookPlots(String docId, String initialChunkId, int pixelWidth, int pixelHeight, ServerRequestCallback<String> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(docId));
params.set(1, new JSONString(initialChunkId));
params.set(2, new JSONNumber(pixelWidth));
params.set(3, new JSONNumber(pixelHeight));
sendRequest(RPC_SCOPE, "replay_notebook_plots", params, requestCallback);
}
use of com.google.gwt.json.client.JSONNumber in project rstudio by rstudio.
the class RemoteServer method findFunctionInSearchPath.
public void findFunctionInSearchPath(String line, int pos, String fromWhere, ServerRequestCallback<SearchPathFunctionDefinition> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(line));
params.set(1, new JSONNumber(pos));
params.set(2, fromWhere != null ? new JSONString(fromWhere) : JSONNull.getInstance());
sendRequest(RPC_SCOPE, FIND_FUNCTION_IN_SEARCH_PATH, params, requestCallback);
}
Aggregations