org.alfresco.repo.web.scripts.rule
Class AbstractRuleWebScript

java.lang.Object
  extended by org.springframework.extensions.webscripts.AbstractWebScript
      extended by org.springframework.extensions.webscripts.DeclarativeWebScript
          extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
 
Field Summary
protected  org.alfresco.service.cmr.action.ActionService actionService
           
static java.text.SimpleDateFormat dateFormate
           
protected  org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
           
protected  org.alfresco.service.cmr.model.FileFolderService fileFolderService
           
protected  org.alfresco.service.namespace.NamespaceService namespaceService
           
protected  org.alfresco.service.cmr.repository.NodeService nodeService
           
protected  org.alfresco.service.cmr.rule.RuleService ruleService
           
 
Constructor Summary
AbstractRuleWebScript()
           
 
Method Summary
protected  org.alfresco.repo.action.ActionImpl parseJsonAction(org.json.JSONObject jsonAction)
           
protected  org.alfresco.repo.action.ActionConditionImpl parseJsonActionCondition(org.json.JSONObject jsonActionCondition)
           
protected  java.util.Map parseJsonParameterValues(org.json.JSONObject jsonParameterValues, java.lang.String name, boolean isAction)
           
protected  org.alfresco.service.cmr.rule.Rule parseJsonRule(org.json.JSONObject jsonRule)
           
protected  org.alfresco.service.cmr.repository.NodeRef parseRequestForNodeRef(org.springframework.extensions.webscripts.WebScriptRequest req)
          Parses the request and providing it's valid returns the NodeRef.
 void setActionService(org.alfresco.service.cmr.action.ActionService actionService)
          Set action service instance
 void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
          Set dictionary service instance
 void setFileFolderService(org.alfresco.service.cmr.model.FileFolderService fileFolderService)
          Set file folder service instance
 void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
          Set namespace service instance
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
          Sets the node service instance
 void setRuleService(org.alfresco.service.cmr.rule.RuleService ruleService)
          Set rule service instance
 
Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
 
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dateFormate

public static final java.text.SimpleDateFormat dateFormate

nodeService

protected org.alfresco.service.cmr.repository.NodeService nodeService

ruleService

protected org.alfresco.service.cmr.rule.RuleService ruleService

dictionaryService

protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService

actionService

protected org.alfresco.service.cmr.action.ActionService actionService

fileFolderService

protected org.alfresco.service.cmr.model.FileFolderService fileFolderService

namespaceService

protected org.alfresco.service.namespace.NamespaceService namespaceService
Constructor Detail

AbstractRuleWebScript

public AbstractRuleWebScript()
Method Detail

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the node service instance

Parameters:
nodeService - the node service to set

setRuleService

public void setRuleService(org.alfresco.service.cmr.rule.RuleService ruleService)
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

public void setActionService(org.alfresco.service.cmr.action.ActionService actionService)
Set action service instance

Parameters:
actionService - the action service to set

setFileFolderService

public void setFileFolderService(org.alfresco.service.cmr.model.FileFolderService fileFolderService)
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 org.alfresco.service.cmr.repository.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

protected org.alfresco.service.cmr.rule.Rule parseJsonRule(org.json.JSONObject jsonRule)
                                                    throws org.json.JSONException
Throws:
org.json.JSONException

parseJsonAction

protected org.alfresco.repo.action.ActionImpl parseJsonAction(org.json.JSONObject jsonAction)
                                                       throws org.json.JSONException
Throws:
org.json.JSONException

parseJsonActionCondition

protected org.alfresco.repo.action.ActionConditionImpl parseJsonActionCondition(org.json.JSONObject jsonActionCondition)
                                                                         throws org.json.JSONException
Throws:
org.json.JSONException

parseJsonParameterValues

protected java.util.Map parseJsonParameterValues(org.json.JSONObject jsonParameterValues,
                                                 java.lang.String name,
                                                 boolean isAction)
                                          throws org.json.JSONException
Throws:
org.json.JSONException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.