Class RuleSet
java.lang.Object
com.appiancorp.suiteapi.personalization.RuleSet
- All Implemented Interfaces:
Serializable
Title: RuleForm
Description: This is the form used to create a group membership ruleset.
Copyright: Copyright (c) 2002
Company: Appian Corporation
- See Also:
-
Constructor Summary
ConstructorDescriptionRuleSet()
Default no-arg constructor.RuleSet
(Long groupId, Expression[] expressions) Constructor that receives a group id for this rule set and a list of expressions. -
Method Summary
Modifier and TypeMethodDescriptionReturns the string representation of the conditions used in this rule set.Gets the entity type of this rule set.Gets the list of expressions used in this rule set.Gets the Id of the group of this rule set belongs.This field is used to temporarily store the types of expressions contained in this rule set (user or group).Gets the description of this rule set.Gets the name of the rule set.void
setConditions
(String conditions) Sets a string representation of the conditions to use in the rule set.void
setEntityType
(String entityType) Sets the entity type of this rule set.void
setExpressions
(Expression[] expressions) Sets the list of expressions for this rule set.void
setGroupId
(Long gid) Sets the Id of the group to which this rule set will belong.void
setGroupTypeId
(String groupTypeId) Sets string representation of types of expressions in the rule set.void
setRuleDescription
(String rdesc) Sets the description of this rule set.void
setRuleName
(String rnm) Sets the name of the rule set.toString()
Creates a string representation of the RuleSet (does not contain all fields).
-
Constructor Details
-
RuleSet
public RuleSet()Default no-arg constructor. -
RuleSet
Constructor that receives a group id for this rule set and a list of expressions.- Parameters:
groupId
- The id of the group to which this rule set belongs.expressions
- List of expressions to use in this rule set.
-
-
Method Details
-
setRuleName
Sets the name of the rule set.- Parameters:
rnm
- Name of the rule set.
-
getRuleName
Gets the name of the rule set.- Returns:
- Name of the rule set.
-
setGroupId
Sets the Id of the group to which this rule set will belong.- Parameters:
gid
- Id of the group of this rule set.
-
getGroupId
Gets the Id of the group of this rule set belongs.- Returns:
- Id of the group of this rule set.
-
setRuleDescription
Sets the description of this rule set.- Parameters:
rdesc
- Description of the rule set.
-
getRuleDescription
Gets the description of this rule set.- Returns:
- Description of this rule set.
-
setEntityType
Sets the entity type of this rule set.- Parameters:
entityType
- Entity type for this rule set.
-
getEntityType
Gets the entity type of this rule set.- Returns:
- Entity type of this rule set.
-
setGroupTypeId
Sets string representation of types of expressions in the rule set.- Parameters:
groupTypeId
-- See Also:
-
getGroupTypeId
This field is used to temporarily store the types of expressions contained in this rule set (user or group).- Returns:
- String representation of types of expressions used.
-
setConditions
Sets a string representation of the conditions to use in the rule set.- Parameters:
conditions
- Conditions to use.- See Also:
-
getConditions
Returns the string representation of the conditions used in this rule set. The conditions of this rule set however are stored asCondition
objects within the list ofExpression
.- Returns:
- String representation of defined conditions.
-
setExpressions
Sets the list of expressions for this rule set.- Parameters:
expressions
- List of expressions to use.
-
getExpressions
Gets the list of expressions used in this rule set.- Returns:
- List of expressions used.
-
toString
Creates a string representation of the RuleSet (does not contain all fields).
-