public abstract class AbstractRuleWebScript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
| Modifier and Type | Field and Description |
|---|---|
protected ActionService |
actionService |
static SimpleDateFormat |
dateFormate |
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService |
protected FileFolderService |
fileFolderService |
protected org.alfresco.service.namespace.NamespaceService |
namespaceService |
protected NodeService |
nodeService |
protected RuleService |
ruleService |
| Constructor and Description |
|---|
AbstractRuleWebScript() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkRule(Rule rule) |
protected ActionImpl |
parseJsonAction(org.json.JSONObject jsonAction) |
protected ActionConditionImpl |
parseJsonActionCondition(org.json.JSONObject jsonActionCondition) |
protected Map<String,Serializable> |
parseJsonParameterValues(org.json.JSONObject jsonParameterValues,
String name,
boolean isAction) |
protected Rule |
parseJsonRule(org.json.JSONObject jsonRule) |
protected NodeRef |
parseRequestForNodeRef(org.springframework.extensions.webscripts.WebScriptRequest req)
Parses the request and providing it's valid returns the NodeRef.
|
void |
setActionService(ActionService actionService)
Set action service instance
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Set dictionary service instance
|
void |
setFileFolderService(FileFolderService fileFolderService)
Set file folder service instance
|
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
Set namespace service instance
|
void |
setNodeService(NodeService nodeService)
Sets the node service instance
|
void |
setRuleService(RuleService ruleService)
Set rule service instance
|
execute, executeFinallyImpl, executeImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplateaddModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toStringpublic static final SimpleDateFormat dateFormate
protected NodeService nodeService
protected RuleService ruleService
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
protected ActionService actionService
protected FileFolderService fileFolderService
protected org.alfresco.service.namespace.NamespaceService namespaceService
public void setNodeService(NodeService nodeService)
nodeService - the node service to setpublic void setRuleService(RuleService ruleService)
ruleService - the rule service to setpublic void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService - the dictionary service to setpublic void setActionService(ActionService actionService)
actionService - the action service to setpublic void setFileFolderService(FileFolderService fileFolderService)
fileFolderService - the fileFolderService to setpublic void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService - the namespace service to setprotected NodeRef parseRequestForNodeRef(org.springframework.extensions.webscripts.WebScriptRequest req)
req - The webscript requestprotected Rule parseJsonRule(org.json.JSONObject jsonRule) throws org.json.JSONException
org.json.JSONExceptionprotected ActionImpl parseJsonAction(org.json.JSONObject jsonAction) throws org.json.JSONException
org.json.JSONExceptionprotected ActionConditionImpl parseJsonActionCondition(org.json.JSONObject jsonActionCondition) throws org.json.JSONException
org.json.JSONExceptionprotected Map<String,Serializable> parseJsonParameterValues(org.json.JSONObject jsonParameterValues, String name, boolean isAction) throws org.json.JSONException
org.json.JSONExceptionprotected void checkRule(Rule rule)
Copyright © 2005–2014 Alfresco Software. All rights reserved.