Class AbstractRuleWebScript

    • Constructor Detail

      • AbstractRuleWebScript

        public AbstractRuleWebScript()
    • Method Detail

      • setNodeService

        public void setNodeService​(NodeService nodeService)
        Sets the node service instance
        Parameters:
        nodeService - the node service to set
      • setRuleService

        public void setRuleService​(RuleService ruleService)
        Set rule service instance
        Parameters:
        ruleService - the rule service to set
      • setDictionaryService

        public void setDictionaryService​(DictionaryService dictionaryService)
        Set dictionary service instance
        Parameters:
        dictionaryService - the dictionary service to set
      • setActionService

        public void setActionService​(ActionService actionService)
        Set action service instance
        Parameters:
        actionService - the action service to set
      • setFileFolderService

        public void setFileFolderService​(FileFolderService fileFolderService)
        Set file folder service instance
        Parameters:
        fileFolderService - the fileFolderService to set
      • setNamespaceService

        public void setNamespaceService​(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

        protected Rule parseJsonRule​(org.json.JSONObject jsonRule)
                              throws org.json.JSONException
        Throws:
        org.json.JSONException
      • parseJsonAction

        protected ActionImpl parseJsonAction​(org.json.JSONObject jsonAction)
                                      throws org.json.JSONException
        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

        protected void checkRule​(Rule rule)