Package com.aquima.interactions.rule.tms
Class TmsStateManager
java.lang.Object
com.aquima.interactions.rule.tms.TmsStateManager
- All Implemented Interfaces:
Serializable
Maintains the TMS state of the profile.
- Since:
- 7.0
- Author:
- a.pragt
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addDependencies
(ValueReference sourcedAttribute, Dependency[] dependencies) protected boolean
addEventListener
(IEventListener listener, EntityValue instance) protected void
clearTmsValue
(ValueReference valueReference) Clears the Tms values of an attributes an all it's usedby dependencies.protected void
clearTmsValues
(EntityValue instanceReference) Clears the Tms values of all attributes associated with an instance.protected void
clearTmsValues
(IEntityDefinition entityDefinition) Clears the Tms values of type dependent attributes.protected String[]
getGroupDependencies
(ValueReference valueReference) protected InstanceReferrer[]
getReferrers
(EntityValue ref) protected TmsAttributeValue
getTmsAttributeValue
(ValueReference valueReference) protected ValueReference[]
getTypeDependencies
(String entityType) protected ValueReference[]
getUsedByValueDependencies
(ValueReference valueReference) protected ValueReference[]
getUseValueDependencies
(ValueReference valueReference) protected boolean
hasTmsValue
(ValueReference valueReference) protected boolean
isTmsAnswered
(ValueReference valueReference) protected boolean
isTypeDependent
(ValueReference reference) protected boolean
removeEventListener
(IEventListener listener, EntityValue instance) protected void
removeEventListeners
(EntityValue instanceReference) protected void
setTmsValue
(ValueReference valueReference, TmsAttributeValue tmsValue, Dependency[] dependencies)
-
Constructor Details
-
TmsStateManager
-
-
Method Details
-
hasTmsValue
-
isTmsAnswered
-
getTmsAttributeValue
-
clearTmsValues
Clears the Tms values of all attributes associated with an instance.- Parameters:
instanceReference
- the instance reference- Throws:
AppException
- on exception
-
clearTmsValues
Clears the Tms values of type dependent attributes.- Parameters:
entityDefinition
- the entity definition- Throws:
AppException
- on exception
-
clearTmsValue
Clears the Tms values of an attributes an all it's usedby dependencies.- Parameters:
valueReference
- the value reference
-
isTypeDependent
-
getTypeDependencies
-
getUsedByValueDependencies
-
getUseValueDependencies
-
getGroupDependencies
-
addDependencies
-
setTmsValue
protected void setTmsValue(ValueReference valueReference, TmsAttributeValue tmsValue, Dependency[] dependencies) -
getReferrers
-
addEventListener
-
removeEventListener
-
removeEventListeners
-