Class RulePut

  • All Implemented Interfaces:
    org.springframework.extensions.webscripts.WebScript

    public class RulePut
    extends RulePost
    Author:
    unknown
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript

        org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
    • Constructor Summary

      Constructors 
      Constructor Description
      RulePut()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Map<java.lang.String,​java.lang.Object> 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.springframework.extensions.webscripts.DeclarativeWebScript

        execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
      • Methods 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
      • 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<java.lang.String,​java.lang.Object> 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