use of org.activityinfo.json.JsonValue in project activityinfo by bedatadriven.
the class RowSource method toJson.
@Override
public JsonValue toJson() {
JsonValue object = createObject();
object.put("rootFormId", rootFormId.asString());
return object;
}
use of org.activityinfo.json.JsonValue in project activityinfo by bedatadriven.
the class ExportResult method toJson.
@Override
public JsonValue toJson() {
JsonValue object = createObject();
object.put("downloadUrl", downloadUrl);
return object;
}
use of org.activityinfo.json.JsonValue in project activityinfo by bedatadriven.
the class JobRequest method toJsonObject.
public JsonValue toJsonObject() {
JsonValue object = createObject();
object.put("type", descriptor.getType());
object.put("descriptor", descriptor.toJson());
if (locale != null) {
object.put("locale", locale);
}
return object;
}
use of org.activityinfo.json.JsonValue in project activityinfo by bedatadriven.
the class JobStatus method toJsonObject.
public JsonValue toJsonObject() {
JsonValue object = createObject();
object.put("id", id);
object.put("type", descriptor.getType());
object.put("descriptor", descriptor.toJson());
object.put("state", state.name().toLowerCase());
if (result != null) {
object.put("result", result.toJson());
}
return object;
}
use of org.activityinfo.json.JsonValue in project activityinfo by bedatadriven.
the class ColumnModel method toJson.
public JsonValue toJson() {
JsonValue object = createObject();
object.put("id", id);
object.put("expression", getFormulaAsString());
return object;
}
Aggregations