Class Expression
java.lang.Object
com.appiancorp.suiteapi.personalization.Expression
- All Implemented Interfaces:
Serializable
Title: Expression
Description: Holds expression for a rule set, where an expression consists of an entity name, entity id, and list of conditions.
Copyright: Copyright (c) 2002
Company: Appian Corporation
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefault no-arg constructor.Expression
(Long entityTypeId, String entityTypeName, Condition[] conditions) Constructor that receives the entity type id, name and a list of conditions. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of conditions.Gets the entityTypeId of this expression.Gets the entity type name of this expression.void
setConditions
(Condition[] conditions) Sets the list of conditions.void
setEntityTypeId
(Long entityTypeId) Sets the entityTypeId of this expression.void
setEntityTypeName
(String entityTypeName) Sets the entity type name for this expression.toString()
-
Field Details
-
ENTITY_TYPE_NAME_USER
- See Also:
-
ENTITY_TYPE_ID_USER
-
-
Constructor Details
-
Expression
public Expression()Default no-arg constructor. -
Expression
Constructor that receives the entity type id, name and a list of conditions.- Parameters:
entityTypeId
- Id of the entity type of this expression. @see #getEntityTypeId().entityTypeName
- Name of the entity type of this expression. @see #getEntityTypeName().conditions
- List of conditions that form this expression.
-
-
Method Details
-
getEntityTypeName
Gets the entity type name of this expression. The value of theentityTypeName
depends on the type of expression. For user expressions the value is the stringENTITY_TYPE_NAME_USER
, whereas for group types the value is the name of the group type.- Returns:
- The entityTypeName of this expression.
-
setEntityTypeName
Sets the entity type name for this expression.- Parameters:
entityTypeName
- Name of the entity type.- See Also:
-
setConditions
Sets the list of conditions.- Parameters:
conditions
- The list of conditions to set.
-
getConditions
Gets the list of conditions.- Returns:
- List of conditions.
-
setEntityTypeId
Sets the entityTypeId of this expression.- Parameters:
entityTypeId
- The entityTypeId to set.- See Also:
-
getEntityTypeId
Gets the entityTypeId of this expression. The value of the entityTypeId depends if the expression is for users or group types. For users the value isENTITY_TYPE_ID_USER
, whereas for group types it corresponds to the group type id.- Returns:
- The entityTypeId of this expression
-
toString
-