Class Condition
java.lang.Object
com.appiancorp.suiteapi.personalization.Condition
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the attribute's display name.Gets the attribute's name.Gets the id of the type of data used in this condition.Gets the name of the data type.Gets the operator's id.Gets the name of the operator.getValue()
Gets the value that is being used in the comparison of this condition.void
setAttributeDisplayName
(String attributeDisplayName) Sets the attribute's display name.void
setAttributeName
(String attributeName) Sets the attribute's name.void
setDataTypeId
(Long dataTypeId) Sets the id of the type of data to use in this condition.void
setDataTypeName
(String dataTypeName) Sets the name of the data type.void
setOperatorId
(Integer operatorId) Sets the operator's id.void
setOperatorName
(String operatorName) Sets the name of the operator.void
Sets the value.toString()
-
Field Details
-
ATTRIBUTE_NAME_USERNAME
- See Also:
-
DATA_TYPE_ID_TYPESTRING
-
-
Constructor Details
-
Condition
public Condition()Default no-arg constructor. -
Condition
Constructor that receives the attribute name, operator id and the value for this condition.- Parameters:
attributeName
- Name of the attribute used in this condition.operatorId
- Id of the relational operator; see fields inOperator
value
- Value to use for this condition.
-
-
Method Details
-
getAttributeName
Gets the attribute's name. This value corresponds to a key defined in the map retrieved from {@link com.appiancorp.ag.group.action.AddRuleSet.getAttributeAliasMap()}- Returns:
- Name of the attribute.
-
setAttributeName
Sets the attribute's name.- Parameters:
attributeName
- Name of the attribute.- See Also:
-
setAttributeDisplayName
Sets the attribute's display name.- Parameters:
attributeDisplayName
- Display name of the attribute.- See Also:
-
getAttributeDisplayName
Gets the attribute's display name. This is the value that is shown in the user interface.- Returns:
- Display name of the attribute.
- See Also:
-
AddRuleSet
-
setOperatorId
Sets the operator's id.- Parameters:
operatorId
- Id of the operator.- See Also:
-
getOperatorId
Gets the operator's id. This field corresponds to the id of the relational operator to use in the comparison of this condition. For instance, the equals operator isOperator.EQUALS
.- Returns:
- Id of the operator.
- See Also:
-
setValue
Sets the value.- Parameters:
value
- Value to use.
-
getValue
Gets the value that is being used in the comparison of this condition.- Returns:
- The value used in the condition.
-
setOperatorName
Sets the name of the operator.- Parameters:
operatorName
- Name of the operator.- See Also:
-
getOperatorName
Gets the name of the operator.- Returns:
- The name of the operator.
- See Also:
-
setDataTypeId
Sets the id of the type of data to use in this condition.- Parameters:
dataTypeId
- The id of the data type.- See Also:
-
getDataTypeId
Gets the id of the type of data used in this condition.- Returns:
- The id of the data type.
- See Also:
-
DataMap
-
getDataTypeName
Gets the name of the data type.- Returns:
- The name of the data type.
- See Also:
-
DataMap
-
setDataTypeName
Sets the name of the data type.- Parameters:
dataTypeName
- The name of the data type.- See Also:
-
toString
-