Class TmsStateManager

java.lang.Object
com.aquima.interactions.rule.tms.TmsStateManager
All Implemented Interfaces:
Serializable

public class TmsStateManager extends Object implements Serializable
Maintains the TMS state of the profile.
Since:
7.0
Author:
a.pragt
See Also:
  • Constructor Details

    • TmsStateManager

      protected TmsStateManager(TmsProfile profile)
  • Method Details

    • hasTmsValue

      protected boolean hasTmsValue(ValueReference valueReference)
    • isTmsAnswered

      protected boolean isTmsAnswered(ValueReference valueReference)
    • getTmsAttributeValue

      protected TmsAttributeValue getTmsAttributeValue(ValueReference valueReference)
    • clearTmsValues

      protected void clearTmsValues(EntityValue instanceReference)
      Clears the Tms values of all attributes associated with an instance.
      Parameters:
      instanceReference - the instance reference
      Throws:
      AppException - on exception
    • clearTmsValues

      protected void clearTmsValues(IEntityDefinition entityDefinition)
      Clears the Tms values of type dependent attributes.
      Parameters:
      entityDefinition - the entity definition
      Throws:
      AppException - on exception
    • clearTmsValue

      protected void clearTmsValue(ValueReference valueReference)
      Clears the Tms values of an attributes an all it's usedby dependencies.
      Parameters:
      valueReference - the value reference
    • isTypeDependent

      protected boolean isTypeDependent(ValueReference reference)
    • getTypeDependencies

      protected ValueReference[] getTypeDependencies(String entityType)
    • getUsedByValueDependencies

      protected ValueReference[] getUsedByValueDependencies(ValueReference valueReference)
    • getUseValueDependencies

      protected ValueReference[] getUseValueDependencies(ValueReference valueReference)
    • getGroupDependencies

      protected String[] getGroupDependencies(ValueReference valueReference)
    • addDependencies

      protected void addDependencies(ValueReference sourcedAttribute, Dependency[] dependencies)
    • setTmsValue

      protected void setTmsValue(ValueReference valueReference, TmsAttributeValue tmsValue, Dependency[] dependencies)
    • getReferrers

      protected InstanceReferrer[] getReferrers(EntityValue ref)
    • addEventListener

      protected boolean addEventListener(IEventListener listener, EntityValue instance)
    • removeEventListener

      protected boolean removeEventListener(IEventListener listener, EntityValue instance)
    • removeEventListeners

      protected void removeEventListeners(EntityValue instanceReference)