public final class JSONServletTool extends JSONTool
JSON Servlet toolbox
ERRLEVEL_ERROR, ERRLEVEL_FATAL, ERRLEVEL_WARNING, JSON_DOT_REPLACEMENT
Constructor and Description |
---|
JSONServletTool() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
action(ObjectDB obj,
Action action,
ServletParameters params,
boolean embedded) |
static java.lang.String |
applicationService(ServletParameters params,
Grant g) |
static java.lang.String |
businessObjectService(ServletParameters params,
Grant g) |
static java.lang.String |
businessProcessService(ServletParameters params,
Grant g) |
static java.lang.String |
create(ObjectDB obj,
ServletParameters params) |
static java.lang.String |
create(ObjectDB obj,
ServletParameters params,
boolean embedded) |
static java.lang.String |
create(ObjectDB obj,
ServletParameters params,
boolean inlineDocs,
boolean inlineThumbs,
boolean inlineObjs,
boolean embedded) |
static java.lang.String |
crosstab(ObjectDB obj,
Crosstab c,
ServletParameters params) |
static java.lang.String |
crosstab(ObjectDB obj,
Crosstab c,
ServletParameters params,
boolean embedded) |
static java.lang.String |
crosstabcubes(ObjectDB obj,
Crosstab c,
ServletParameters params) |
static java.lang.String |
crosstabcubes(ObjectDB obj,
Crosstab c,
ServletParameters params,
boolean embedded) |
static java.lang.String |
delete(ObjectDB obj,
ServletParameters params) |
static java.lang.String |
delete(ObjectDB obj,
ServletParameters params,
boolean embedded) |
static java.lang.String |
documentation(java.lang.String obj,
boolean html,
boolean header,
boolean services,
int titleLevel) |
static java.lang.String |
flashchartdata(ObjectDB obj,
ServletParameters params) |
static java.lang.String |
getRedo(Grant g,
ServletParameters params)
List all redo
|
static java.lang.String |
getUndo(Grant g,
ServletParameters params)
List all undo
|
static java.lang.String |
graph(ObjectDB obj,
Graphic g,
ServletParameters params) |
static java.lang.String |
graph(ObjectDB obj,
Graphic g,
ServletParameters params,
boolean embedded) |
static java.lang.String |
indexsearch(ObjectDB obj,
java.lang.String req,
ServletParameters params,
boolean inlineDocs,
boolean inlineThumbs,
boolean inlineObjs,
boolean embedded) |
static java.lang.String |
populate(ObjectDB obj,
ServletParameters params,
boolean inlineDocs,
boolean inlineThumbs,
boolean inlineObjs,
boolean embedded) |
static java.lang.String |
print(ObjectDB obj,
PrintTemplate pt,
ServletParameters params,
boolean embedded) |
static java.lang.String |
redo(Grant g,
ServletParameters params)
Redo last change if Undo/Redo is set
|
static java.lang.String |
search(ObjectDB obj,
int context,
ServletParameters params,
boolean inlineDocs,
boolean inlineThumbs,
boolean inlineObjs,
boolean embedded) |
static java.lang.String |
treeview(ServletParameters params)
Tree view service
|
static java.lang.String |
undo(Grant g,
ServletParameters params)
Undo last change if Undo/Redo is set
|
static java.lang.String |
update(ObjectDB obj,
ServletParameters params) |
static java.lang.String |
update(ObjectDB obj,
ServletParameters params,
boolean embedded) |
static java.lang.String |
update(ObjectDB obj,
ServletParameters params,
boolean inlineDocs,
boolean inlineThumbs,
boolean inlineObjs,
boolean embedded) |
document, document, error, errors, fieldDefaultValue, fieldsToJson, fieldsToJson, fieldsToJson, fieldsToJson, fieldsToJson, fieldValue, fieldValue, filters, filters, filters, filtersToJson, functIdToJson, get, get, get, info, jsonAppInfo, jsonArray, jsonArray, jsonArray, jsonArray, jsonArray, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDeclaration, jsonDocument, jsonDocument, jsonEnclosedDeclaration, jsonEnclosedDeclaration, jsonEnclosedDeclaration, jsonEnclosedDeclaration, jsonEnclosedStringDeclaration, jsonEnclosedStringDeclaration, jsonEnclosedStringDeclaration, jsonEnclosedStringDeclaration, jsonExtObject, jsonGetSysParam, jsonGetSysParams, jsonGrant, jsonListOfValue, jsonMenu, jsonMetaObject, jsonNews, jsonObjectToMap, jsonReadDocument, jsonResponse, jsonSetSysParam, jsonString, jsonStringArray, jsonStringArray, jsonStringArray, jsonStringDeclaration, jsonStringDeclaration, jsonStringDeclaration, jsonStringDeclaration, jsonSysInfo, jsonText, jsonTexts, jsonTextsArray, jsonUser, jsonWriteDocument, list, list, list, listToJson, listToJson, lovToJson, main, metadata, metadata, objectFieldMetaDataToJson, objectMetaDataToJson, processMetadata, processMetadata, processMetaDataToJson, resourcesToJson, warning, warnings
public static java.lang.String applicationService(ServletParameters params, Grant g)
public static java.lang.String businessObjectService(ServletParameters params, Grant g)
public static java.lang.String businessProcessService(ServletParameters params, Grant g)
public static java.lang.String search(ObjectDB obj, int context, ServletParameters params, boolean inlineDocs, boolean inlineThumbs, boolean inlineObjs, boolean embedded) throws com.simplicite.util.exceptions.ValidateSearchException
com.simplicite.util.exceptions.ValidateSearchException
public static java.lang.String indexsearch(ObjectDB obj, java.lang.String req, ServletParameters params, boolean inlineDocs, boolean inlineThumbs, boolean inlineObjs, boolean embedded) throws com.simplicite.util.exceptions.SearchException
com.simplicite.util.exceptions.SearchException
public static java.lang.String populate(ObjectDB obj, ServletParameters params, boolean inlineDocs, boolean inlineThumbs, boolean inlineObjs, boolean embedded) throws com.simplicite.util.exceptions.GetException
com.simplicite.util.exceptions.GetException
public static java.lang.String create(ObjectDB obj, ServletParameters params) throws com.simplicite.util.exceptions.ValidateException, com.simplicite.util.exceptions.CreateException, com.simplicite.util.exceptions.GetException
com.simplicite.util.exceptions.ValidateException
com.simplicite.util.exceptions.CreateException
com.simplicite.util.exceptions.GetException
public static java.lang.String create(ObjectDB obj, ServletParameters params, boolean embedded) throws com.simplicite.util.exceptions.ValidateException, com.simplicite.util.exceptions.CreateException, com.simplicite.util.exceptions.GetException
com.simplicite.util.exceptions.ValidateException
com.simplicite.util.exceptions.CreateException
com.simplicite.util.exceptions.GetException
public static java.lang.String create(ObjectDB obj, ServletParameters params, boolean inlineDocs, boolean inlineThumbs, boolean inlineObjs, boolean embedded) throws com.simplicite.util.exceptions.ValidateException, com.simplicite.util.exceptions.CreateException, com.simplicite.util.exceptions.GetException
com.simplicite.util.exceptions.ValidateException
com.simplicite.util.exceptions.CreateException
com.simplicite.util.exceptions.GetException
public static java.lang.String update(ObjectDB obj, ServletParameters params) throws com.simplicite.util.exceptions.ValidateException, com.simplicite.util.exceptions.UpdateException, com.simplicite.util.exceptions.GetException
com.simplicite.util.exceptions.ValidateException
com.simplicite.util.exceptions.UpdateException
com.simplicite.util.exceptions.GetException
public static java.lang.String update(ObjectDB obj, ServletParameters params, boolean embedded) throws com.simplicite.util.exceptions.ValidateException, com.simplicite.util.exceptions.UpdateException, com.simplicite.util.exceptions.GetException
com.simplicite.util.exceptions.ValidateException
com.simplicite.util.exceptions.UpdateException
com.simplicite.util.exceptions.GetException
public static java.lang.String update(ObjectDB obj, ServletParameters params, boolean inlineDocs, boolean inlineThumbs, boolean inlineObjs, boolean embedded) throws com.simplicite.util.exceptions.ValidateException, com.simplicite.util.exceptions.UpdateException, com.simplicite.util.exceptions.GetException
com.simplicite.util.exceptions.ValidateException
com.simplicite.util.exceptions.UpdateException
com.simplicite.util.exceptions.GetException
public static java.lang.String delete(ObjectDB obj, ServletParameters params) throws com.simplicite.util.exceptions.GetException, com.simplicite.util.exceptions.DeleteException
com.simplicite.util.exceptions.GetException
com.simplicite.util.exceptions.DeleteException
public static java.lang.String delete(ObjectDB obj, ServletParameters params, boolean embedded) throws com.simplicite.util.exceptions.GetException, com.simplicite.util.exceptions.DeleteException
com.simplicite.util.exceptions.GetException
com.simplicite.util.exceptions.DeleteException
public static java.lang.String crosstab(ObjectDB obj, Crosstab c, ServletParameters params) throws com.simplicite.util.exceptions.CrosstabException
com.simplicite.util.exceptions.CrosstabException
public static java.lang.String crosstab(ObjectDB obj, Crosstab c, ServletParameters params, boolean embedded) throws com.simplicite.util.exceptions.CrosstabException
com.simplicite.util.exceptions.CrosstabException
public static java.lang.String crosstabcubes(ObjectDB obj, Crosstab c, ServletParameters params) throws com.simplicite.util.exceptions.CrosstabException
com.simplicite.util.exceptions.CrosstabException
public static java.lang.String crosstabcubes(ObjectDB obj, Crosstab c, ServletParameters params, boolean embedded) throws com.simplicite.util.exceptions.CrosstabException
com.simplicite.util.exceptions.CrosstabException
public static java.lang.String graph(ObjectDB obj, Graphic g, ServletParameters params) throws com.simplicite.util.exceptions.GraphException
com.simplicite.util.exceptions.GraphException
public static java.lang.String graph(ObjectDB obj, Graphic g, ServletParameters params, boolean embedded) throws com.simplicite.util.exceptions.GraphException
com.simplicite.util.exceptions.GraphException
public static java.lang.String flashchartdata(ObjectDB obj, ServletParameters params) throws com.simplicite.util.exceptions.ChartException, com.simplicite.util.exceptions.CrosstabException, com.simplicite.util.exceptions.GraphException
com.simplicite.util.exceptions.ChartException
com.simplicite.util.exceptions.CrosstabException
com.simplicite.util.exceptions.GraphException
public static java.lang.String action(ObjectDB obj, Action action, ServletParameters params, boolean embedded) throws com.simplicite.util.exceptions.ActionException
com.simplicite.util.exceptions.ActionException
public static java.lang.String print(ObjectDB obj, PrintTemplate pt, ServletParameters params, boolean embedded) throws com.simplicite.util.exceptions.PrintException
com.simplicite.util.exceptions.PrintException
public static java.lang.String documentation(java.lang.String obj, boolean html, boolean header, boolean services, int titleLevel) throws com.simplicite.util.exceptions.PrintException
com.simplicite.util.exceptions.PrintException
public static java.lang.String treeview(ServletParameters params)
params
- Request parameterspublic static java.lang.String undo(Grant g, ServletParameters params)
params
- Request parameterspublic static java.lang.String redo(Grant g, ServletParameters params)
params
- Request parameterspublic static java.lang.String getUndo(Grant g, ServletParameters params)
params
- Request parameters with type: patch or userpublic static java.lang.String getRedo(Grant g, ServletParameters params)
params
- Request parameters with type: patch or userCopyright (c)2006-2014 Simplicite Software. All Rights Reserved.