Class Condition

java.lang.Object
com.appiancorp.suiteapi.personalization.Condition
All Implemented Interfaces:
Serializable

public class Condition extends Object implements Serializable
See Also:
  • Field Details

    • ATTRIBUTE_NAME_USERNAME

      public static final String ATTRIBUTE_NAME_USERNAME
      See Also:
    • DATA_TYPE_ID_TYPESTRING

      public static final Long DATA_TYPE_ID_TYPESTRING
  • Constructor Details

    • Condition

      public Condition()
      Default no-arg constructor.
    • Condition

      public Condition(String attributeName, Integer operatorId, String value)
      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 in Operator
      value - Value to use for this condition.
  • Method Details

    • getAttributeName

      public String 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

      public void setAttributeName(String attributeName)
      Sets the attribute's name.
      Parameters:
      attributeName - Name of the attribute.
      See Also:
    • setAttributeDisplayName

      public void setAttributeDisplayName(String attributeDisplayName)
      Sets the attribute's display name.
      Parameters:
      attributeDisplayName - Display name of the attribute.
      See Also:
    • getAttributeDisplayName

      public String 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

      public void setOperatorId(Integer operatorId)
      Sets the operator's id.
      Parameters:
      operatorId - Id of the operator.
      See Also:
    • getOperatorId

      public Integer 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 is Operator.EQUALS.
      Returns:
      Id of the operator.
      See Also:
    • setValue

      public void setValue(String value)
      Sets the value.
      Parameters:
      value - Value to use.
    • getValue

      public String getValue()
      Gets the value that is being used in the comparison of this condition.
      Returns:
      The value used in the condition.
    • setOperatorName

      public void setOperatorName(String operatorName)
      Sets the name of the operator.
      Parameters:
      operatorName - Name of the operator.
      See Also:
    • getOperatorName

      public String getOperatorName()
      Gets the name of the operator.
      Returns:
      The name of the operator.
      See Also:
    • setDataTypeId

      public void setDataTypeId(Long dataTypeId)
      Sets the id of the type of data to use in this condition.
      Parameters:
      dataTypeId - The id of the data type.
      See Also:
    • getDataTypeId

      public Long getDataTypeId()
      Gets the id of the type of data used in this condition.
      Returns:
      The id of the data type.
      See Also:
      • DataMap
    • getDataTypeName

      public String getDataTypeName()
      Gets the name of the data type.
      Returns:
      The name of the data type.
      See Also:
      • DataMap
    • setDataTypeName

      public void setDataTypeName(String dataTypeName)
      Sets the name of the data type.
      Parameters:
      dataTypeName - The name of the data type.
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object