Package org.alfresco.rest.api.impl
Class RulesImpl
- java.lang.Object
-
- org.alfresco.rest.api.impl.RulesImpl
-
- All Implemented Interfaces:
Rules
@Experimental public class RulesImpl extends Object implements Rules
-
-
Constructor Summary
Constructors Constructor Description RulesImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Rule>createRules(String folderNodeId, String ruleSetId, List<Rule> rules)Create new rules (and potentially a rule set if "_default_" is supplied).voiddeleteRuleById(String folderNodeId, String ruleSetId, String ruleId)Delete rule for rule's ID and check associations with folder node and rule set nodeRulegetRuleById(String folderNodeId, String ruleSetId, String ruleId)Get rule for rule's ID and check associations with folder node and rule set nodeCollectionWithPagingInfo<Rule>getRules(String folderNodeId, String ruleSetId, Paging paging)Get rules for node's and rule set's IDsvoidsetNodes(Nodes nodes)voidsetPermissionService(PermissionService permissionService)voidsetRuleService(RuleService ruleService)
-
-
-
Method Detail
-
getRules
public CollectionWithPagingInfo<Rule> getRules(String folderNodeId, String ruleSetId, Paging paging)
Description copied from interface:RulesGet rules for node's and rule set's IDs- Specified by:
getRulesin interfaceRules- Parameters:
folderNodeId- - folder node IDruleSetId- - rule set IDpaging- -Paginginformation- Returns:
CollectionWithPagingInfocontaining a list page of folder rules
-
getRuleById
public Rule getRuleById(String folderNodeId, String ruleSetId, String ruleId)
Description copied from interface:RulesGet rule for rule's ID and check associations with folder node and rule set node- Specified by:
getRuleByIdin interfaceRules- Parameters:
folderNodeId- - folder node IDruleSetId- - rule set IDruleId- - rule ID- Returns:
Ruledefinition
-
createRules
public List<Rule> createRules(String folderNodeId, String ruleSetId, List<Rule> rules)
Description copied from interface:RulesCreate new rules (and potentially a rule set if "_default_" is supplied).- Specified by:
createRulesin interfaceRules- Parameters:
folderNodeId- The node id of a folder.ruleSetId- The id of a rule set (or "_default_" to use/create the default rule set for the folder).rules- The definition of the rule.- Returns:
- The newly created rules.
-
deleteRuleById
public void deleteRuleById(String folderNodeId, String ruleSetId, String ruleId)
Description copied from interface:RulesDelete rule for rule's ID and check associations with folder node and rule set node- Specified by:
deleteRuleByIdin interfaceRules- Parameters:
folderNodeId- - folder node IDruleSetId- - rule set IDruleId- - rule ID *
-
setNodes
public void setNodes(Nodes nodes)
-
setPermissionService
public void setPermissionService(PermissionService permissionService)
-
setRuleService
public void setRuleService(RuleService ruleService)
-
-