Class AbstractRuleWebScript
java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.DeclarativeWebScript
org.alfresco.repo.web.scripts.rule.AbstractRuleWebScript
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
- Direct Known Subclasses:
ActionConditionDefinitionsGet,ActionConstraintGet,ActionConstraintsGet,ActionDefinitionsGet,ActionQueuePost,InheritedRulesGet,RuleDelete,RuleGet,RulePost,RulesetGet,RulesGet,RuleTypesGet
public abstract class AbstractRuleWebScript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
- Author:
- unknown
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActionServicestatic final SimpleDateFormatprotected org.alfresco.service.cmr.dictionary.DictionaryServiceprotected FileFolderServiceprotected org.alfresco.service.namespace.NamespaceServiceprotected NodeServiceprotected RuleService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected ActionImplparseJsonAction(org.json.JSONObject jsonAction) protected ActionConditionImplparseJsonActionCondition(org.json.JSONObject jsonActionCondition) protected Map<String,Serializable> parseJsonParameterValues(org.json.JSONObject jsonParameterValues, String name, boolean isAction) protected RuleparseJsonRule(org.json.JSONObject jsonRule) protected NodeRefparseRequestForNodeRef(org.springframework.extensions.webscripts.WebScriptRequest req) Parses the request and providing it's valid returns the NodeRef.voidsetActionService(ActionService actionService) Set action service instancevoidsetDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) Set dictionary service instancevoidsetFileFolderService(FileFolderService fileFolderService) Set file folder service instancevoidsetNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) Set namespace service instancevoidsetNodeService(NodeService nodeService) Sets the node service instancevoidsetRuleService(RuleService ruleService) Set rule service instanceMethods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplateMethods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
-
Field Details
-
dateFormate
-
nodeService
-
ruleService
-
dictionaryService
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService -
actionService
-
fileFolderService
-
namespaceService
protected org.alfresco.service.namespace.NamespaceService namespaceService
-
-
Constructor Details
-
AbstractRuleWebScript
public AbstractRuleWebScript()
-
-
Method Details
-
setNodeService
Sets the node service instance- Parameters:
nodeService- the node service to set
-
setRuleService
Set rule service instance- Parameters:
ruleService- the rule service to set
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) Set dictionary service instance- Parameters:
dictionaryService- the dictionary service to set
-
setActionService
Set action service instance- Parameters:
actionService- the action service to set
-
setFileFolderService
Set file folder service instance- Parameters:
fileFolderService- the fileFolderService to set
-
setNamespaceService
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) Set namespace service instance- Parameters:
namespaceService- the namespace service to set
-
parseRequestForNodeRef
protected NodeRef parseRequestForNodeRef(org.springframework.extensions.webscripts.WebScriptRequest req) Parses the request and providing it's valid returns the NodeRef.- Parameters:
req- The webscript request- Returns:
- The NodeRef passed in the request
-
parseJsonRule
- Throws:
org.json.JSONException
-
parseJsonAction
- Throws:
org.json.JSONException
-
parseJsonActionCondition
protected ActionConditionImpl parseJsonActionCondition(org.json.JSONObject jsonActionCondition) throws org.json.JSONException - Throws:
org.json.JSONException
-
parseJsonParameterValues
protected Map<String,Serializable> parseJsonParameterValues(org.json.JSONObject jsonParameterValues, String name, boolean isAction) throws org.json.JSONException - Throws:
org.json.JSONException
-
checkRule
-