Пример #1
0
 /**
  * Method to add a script-based rule on a space to apply on children space
  *
  * @param script the javascript script file containing the code of the rule to apply on the
  *     targeted space
  * @param targetSpace the targeted space
  * @param ruleType the rule type: either "inbound", "outbound" or "update"
  */
 public void addScriptRule(ScriptNode script, ScriptNode targetSpace, String ruleType) {
   rulesService.addRule(script.getNodeRef(), targetSpace.getNodeRef(), ruleType);
 }