public class Rule extends Object implements Serializable
Encapsulates all the information about a rule. Can be creted or editied and then passed to the rule service to create/update a rule instance.
Constructor and Description |
---|
Rule()
Constructor
|
Rule(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
applyToChildren(boolean isAppliedToChildren)
Sets the values that indicates whether this rule should be applied to the children
of the owning space.
|
boolean |
equals(Object obj)
Equals implementation
|
Action |
getAction()
Gets the action associatied with the rule
|
String |
getDescription()
Get the description of the rule
|
boolean |
getExecuteAsynchronously()
Indicates whether the associated action should be executed async or not
|
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef()
Get the node reference of the rule
|
boolean |
getRuleDisabled()
Indicates wehther this rule has been disabled or not
|
List<String> |
getRuleTypes()
Get the rules rule types.
|
String |
getTitle()
Get the title of the rule
|
int |
hashCode()
Hash code implementation
|
boolean |
isAppliedToChildren()
Indicates wehther this rule should be applied to the children of
the owning space.
|
void |
setAction(Action action)
Set the action
|
void |
setDescription(String description)
Set the description of the rule
|
void |
setExecuteAsynchronously(boolean executeAsynchronously)
Sets the value that indicates whether this associated action should be executed
asynchrously or not
|
void |
setNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Set the node reference of the rule
|
void |
setRuleDisabled(boolean ruleDisabled)
Set the value that indicates wehther this rule has been disabled or not
|
void |
setRuleType(String ruleType)
Helper method to set one rule type on the rule.
|
void |
setRuleTypes(List<String> ruleTypes)
Set the rules rule types.
|
void |
setTitle(String title)
Set the title of the rule
|
public Rule()
public Rule(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- the rule node referencepublic void setAction(Action action)
action
- the actionpublic Action getAction()
public void setNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- the rule node referencepublic org.alfresco.service.cmr.repository.NodeRef getNodeRef()
public void setTitle(String title)
title
- the titlepublic String getTitle()
public void setDescription(String description)
description
- the descriptionpublic String getDescription()
public boolean isAppliedToChildren()
public void applyToChildren(boolean isAppliedToChildren)
isAppliedToChildren
- true if the rule is to be applied to children, false otherwisepublic void setRuleType(String ruleType)
ruleType
- the rule typepublic void setRuleTypes(List<String> ruleTypes)
ruleTypes
- list of rule typespublic List<String> getRuleTypes()
public void setExecuteAsynchronously(boolean executeAsynchronously)
executeAsynchronously
- true to execute action async, false otherwisepublic boolean getExecuteAsynchronously()
public boolean getRuleDisabled()
public void setRuleDisabled(boolean ruleDisabled)
ruleDisabled
- true id the rule has been disabled, false otherwiseCopyright © 2005–2017 Alfresco Software. All rights reserved.