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

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
              extended by org.alfresco.repo.web.scripts.rule.RulePost
                  extended by org.alfresco.repo.web.scripts.rule.RulePut
All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript

public class RulePut
extends RulePost


Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
 
Field Summary
 
Fields inherited from class org.alfresco.repo.web.scripts.rule.AbstractRuleWebScript
actionService, dateFormate, dictionaryService, fileFolderService, namespaceService, nodeService, ruleService
 
Constructor Summary
RulePut()
           
 
Method Summary
protected  java.util.Map executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
           
protected  org.alfresco.service.cmr.action.ActionCondition updateActionConditionFromJson(org.json.JSONObject jsonCondition, org.alfresco.repo.action.ActionConditionImpl conditionToUpdate)
           
protected  org.alfresco.service.cmr.action.Action updateActionFromJson(org.json.JSONObject jsonAction, org.alfresco.repo.action.ActionImpl actionToUpdate)
           
protected  void updateRuleFromJSON(org.json.JSONObject jsonRule, org.alfresco.service.cmr.rule.Rule ruleToUpdate)
           
 
Methods inherited from class org.alfresco.repo.web.scripts.rule.AbstractRuleWebScript
parseJsonAction, parseJsonActionCondition, parseJsonParameterValues, parseJsonRule, parseRequestForNodeRef, setActionService, setDictionaryService, setFileFolderService, setNamespaceService, setNodeService, setRuleService
 
Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, 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
 

Constructor Detail

RulePut

public RulePut()
Method Detail

executeImpl

protected java.util.Map executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req,
                                    org.springframework.extensions.webscripts.Status status,
                                    org.springframework.extensions.webscripts.Cache cache)
Overrides:
executeImpl in class RulePost

updateRuleFromJSON

protected void updateRuleFromJSON(org.json.JSONObject jsonRule,
                                  org.alfresco.service.cmr.rule.Rule ruleToUpdate)
                           throws org.json.JSONException
Throws:
org.json.JSONException

updateActionFromJson

protected org.alfresco.service.cmr.action.Action updateActionFromJson(org.json.JSONObject jsonAction,
                                                                      org.alfresco.repo.action.ActionImpl actionToUpdate)
                                                               throws org.json.JSONException
Throws:
org.json.JSONException

updateActionConditionFromJson

protected org.alfresco.service.cmr.action.ActionCondition updateActionConditionFromJson(org.json.JSONObject jsonCondition,
                                                                                        org.alfresco.repo.action.ActionConditionImpl conditionToUpdate)
                                                                                 throws org.json.JSONException
Throws:
org.json.JSONException


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