Package org.alfresco.rest.api.impl.rules
Class RuleSetsImpl
java.lang.Object
org.alfresco.rest.api.impl.rules.RuleSetsImpl
- All Implemented Interfaces:
RuleSets
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRuleSetById
(String folderNodeId, String ruleSetId, List<String> includes) Get the rule set with the given ID and check associations with the folder node.getRuleSets
(String folderNodeId, List<String> includes, Paging paging) Get rule sets for a folder.linkToRuleSet
(String folderNodeId, String linkToNodeId) Link a rule set to a foldervoid
setNodeService
(NodeService nodeService) void
setRuleService
(RuleService ruleService) void
setRuleSetLoader
(RuleSetLoader ruleSetLoader) void
setRuntimeRuleService
(RuntimeRuleService runtimeRuleService) void
setValidator
(NodeValidator validator) void
unlinkRuleSet
(String folderNodeId, String ruleSetId) Removes the link between a rule set and a folderupdateRuleSet
(String folderNodeId, RuleSet ruleSet, List<String> includes) Update a rule set - for example to reorder the rules within it.
-
Constructor Details
-
RuleSetsImpl
public RuleSetsImpl()
-
-
Method Details
-
getRuleSets
public CollectionWithPagingInfo<RuleSet> getRuleSets(String folderNodeId, List<String> includes, Paging paging) Description copied from interface:RuleSets
Get rule sets for a folder.- Specified by:
getRuleSets
in interfaceRuleSets
- Parameters:
folderNodeId
- Folder node IDincludes
- List of fields to include in the rule setpaging
-Paging
information- Returns:
CollectionWithPagingInfo
containing a list page of rule sets
-
getRuleSetById
Description copied from interface:RuleSets
Get the rule set with the given ID and check associations with the folder node.- Specified by:
getRuleSetById
in interfaceRuleSets
- Parameters:
folderNodeId
- Folder node IDruleSetId
- Rule set IDincludes
- List of fields to include in the rule set- Returns:
RuleSet
definition
-
updateRuleSet
Description copied from interface:RuleSets
Update a rule set - for example to reorder the rules within it.- Specified by:
updateRuleSet
in interfaceRuleSets
- Parameters:
folderNodeId
- Folder node IDruleSet
- The updated rule set.includes
- List of fields to include in the response.- Returns:
- The updated rule set from the server.
-
linkToRuleSet
Description copied from interface:RuleSets
Link a rule set to a folder- Specified by:
linkToRuleSet
in interfaceRuleSets
-
unlinkRuleSet
Description copied from interface:RuleSets
Removes the link between a rule set and a folder- Specified by:
unlinkRuleSet
in interfaceRuleSets
-
setRuleSetLoader
-
setValidator
-
setRuleService
-
setNodeService
-
setRuntimeRuleService
-