public class ScriptUtils extends ItemUtils
RestHandler.AuthDataPREDEFINED_PATHCOOKIENAME, PASSWORD, USERNAME| Constructor and Description |
|---|
ScriptUtils() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
executeScript(javax.ws.rs.core.HttpHeaders headers,
ItemProxy item,
String scriptName,
Integer scriptVersion,
String inputJson,
Map<String,Object> additionalInputs) |
protected Object |
executeScript(ItemProxy item,
Script script,
CastorHashMap inputs) |
javax.ws.rs.core.Response |
returnScriptResult(String scriptName,
ItemProxy item,
Schema schema,
Script script,
CastorHashMap inputs,
boolean jsonFlag) |
protected javax.ws.rs.core.Response |
runScript(String scriptName,
ItemProxy item,
Schema schema,
Script script,
CastorHashMap inputs,
boolean jsonFlag) |
createWebAppException, createWebAppException, createWebAppException, enumerate, enumerate, executeJob, executePredefinedStep, getAllViewpoints, getItemName, getItemNames, getItemURI, getItemURI, getItemURI, getItemURI, getJobActivityData, getJobItemData, getJobOutcomeData, getJobTransitionData, getOutcome, getOutcomeResponse, getOutcomeResponse, getOutcomeResponse, getPropertySummary, getProxy, getViewpointOutcome, makeCollectionData, makeEventData, makeItemDomainPathsData, makeJobData, produceJSONcheckAuthCookie, encryptAuthData, getAgent, getAgent, getPagedResult, getPropertiesFromQParams, toJSONprotected Object executeScript(ItemProxy item, Script script, CastorHashMap inputs) throws ScriptingEngineException, InvalidDataException
item - script - ScriptingEngineExceptionInvalidDataExceptionpublic javax.ws.rs.core.Response executeScript(javax.ws.rs.core.HttpHeaders headers,
ItemProxy item,
String scriptName,
Integer scriptVersion,
String inputJson,
Map<String,Object> additionalInputs)
public javax.ws.rs.core.Response returnScriptResult(String scriptName, ItemProxy item, Schema schema, Script script, CastorHashMap inputs, boolean jsonFlag) throws ScriptingEngineException, InvalidDataException
protected javax.ws.rs.core.Response runScript(String scriptName, ItemProxy item, Schema schema, Script script, CastorHashMap inputs, boolean jsonFlag) throws ScriptingEngineException, InvalidDataException
scriptName - item - schema - script - jsonFlag - whether the response is a JSON or XMLScriptingEngineExceptionInvalidDataExceptionCopyright © 1997–2019 CRISTAL-iSE. All rights reserved.