|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.service.cmr.rule.Rule
public class Rule
Rule class.
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 Summary | |
---|---|
Rule()
Constructor |
|
Rule(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Constructor. |
Method Summary | |
---|---|
void |
applyToChildren(boolean isAppliedToChildren)
Sets the values that indicates whether this rule should be applied to the children of the owning space. |
boolean |
equals(java.lang.Object obj)
Equals implementation |
Action |
getAction()
Gets the action associatied with the rule |
java.lang.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 |
java.util.List |
getRuleTypes()
Get the rules rule types. |
java.lang.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(java.lang.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(java.lang.String ruleType)
Helper method to set one rule type on the rule. |
void |
setRuleTypes(java.util.List ruleTypes)
Set the rules rule types. |
void |
setTitle(java.lang.String title)
Set the title of the rule |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Rule()
public Rule(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- the rule node referenceMethod Detail |
---|
public 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(java.lang.String title)
title
- the titlepublic java.lang.String getTitle()
public void setDescription(java.lang.String description)
description
- the descriptionpublic java.lang.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(java.lang.String ruleType)
ruleType
- the rule typepublic void setRuleTypes(java.util.List ruleTypes)
ruleTypes
- list of rule typespublic java.util.List 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 otherwisepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |