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.ResponseBuilder |
executeScript(javax.ws.rs.core.HttpHeaders headers,
ItemProxy item,
String scriptName,
Integer scriptVersion,
String actPath,
String inputJson,
Map<String,Object> additionalInputs) |
protected Object |
executeScript(ItemProxy item,
Script script,
CastorHashMap inputs) |
javax.ws.rs.core.Response.ResponseBuilder |
returnScriptResult(String scriptName,
ItemProxy item,
Schema schema,
Script script,
CastorHashMap inputs,
boolean jsonFlag) |
protected javax.ws.rs.core.Response.ResponseBuilder |
runScript(String scriptName,
ItemProxy item,
Schema schema,
Script script,
CastorHashMap inputs,
boolean jsonFlag) |
enumerate, enumerate, executeJob, executePredefinedStep, getAllViewpoints, getItemName, getItemNames, getItemURI, getItemURI, getItemURI, getItemURI, getJobActivityData, getJobItemData, getJobOutcomeData, getJobTransitionData, getOutcome, getOutcomeResponse, getOutcomeResponse, getOutcomeResponse, getPropertySummary, getProxy, getViewpointOutcome, makeCollectionData, makeEventData, makeJobData, produceJSONcheckAndCreateNewCookie, checkAndCreateNewCookie, checkAuthCookie, createNewCookie, createNewCookie, decryptAuthData, encryptAuthData, getAgent, getAgent, getAgentPath, getPagedResult, getPropertiesFromQParams, makeItemDomainPathsData, toJSONprotected Object executeScript(ItemProxy item, Script script, CastorHashMap inputs) throws ScriptingEngineException, org.cristalise.kernel.common.InvalidDataException
item - script - ScriptingEngineExceptionorg.cristalise.kernel.common.InvalidDataExceptionpublic javax.ws.rs.core.Response.ResponseBuilder executeScript(javax.ws.rs.core.HttpHeaders headers,
ItemProxy item,
String scriptName,
Integer scriptVersion,
String actPath,
String inputJson,
Map<String,Object> additionalInputs)
throws org.cristalise.kernel.common.ObjectNotFoundException,
UnsupportedOperationException
org.cristalise.kernel.common.ObjectNotFoundExceptionUnsupportedOperationExceptionpublic javax.ws.rs.core.Response.ResponseBuilder returnScriptResult(String scriptName, ItemProxy item, Schema schema, Script script, CastorHashMap inputs, boolean jsonFlag) throws ScriptingEngineException, org.cristalise.kernel.common.InvalidDataException
ScriptingEngineExceptionorg.cristalise.kernel.common.InvalidDataExceptionprotected javax.ws.rs.core.Response.ResponseBuilder runScript(String scriptName, ItemProxy item, Schema schema, Script script, CastorHashMap inputs, boolean jsonFlag) throws ScriptingEngineException, org.cristalise.kernel.common.InvalidDataException, org.cristalise.kernel.common.ObjectNotFoundException
scriptName - item - schema - script - jsonFlag - whether the response is a JSON or XMLorg.cristalise.kernel.common.ObjectNotFoundExceptionScriptingEngineExceptionorg.cristalise.kernel.common.InvalidDataExceptionCopyright © 1997–2020 CRISTAL-iSE. All rights reserved.