Class ProfileContext
java.lang.Object
com.aquima.interactions.portal.model.tx.ProfileContext
- All Implemented Interfaces:
IInstanceContext
,Serializable
Root context for the active instances. This context forwards all calls to getActiveInstance to the profile.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProfileContext
(TmsProfile profile) Constructs the profile context for the specified profile. -
Method Summary
Modifier and TypeMethodDescriptiongetActiveInstance
(String entityName) This method returns the active instance for the specified entity type.getId()
This method returns a unique ID for the instance context.This method returns the parent context of this context.This method will de-activate the last activated instance.void
pushActiveInstance
(IEntityInstance instance) This method will activate the specified instance within this context.
-
Constructor Details
-
ProfileContext
Constructs the profile context for the specified profile.- Parameters:
profile
- The profile for which the context is created.
-
-
Method Details
-
getId
Description copied from interface:IInstanceContext
This method returns a unique ID for the instance context. This ID can for instance the the name of the page of the flow the context belongs to.- Specified by:
getId
in interfaceIInstanceContext
- Returns:
- a unique ID for the instance context.
-
getParentContext
Description copied from interface:IInstanceContext
This method returns the parent context of this context. The parent context is available when nested contexts are used. For instance when the flow context will have a page context as parent.- Specified by:
getParentContext
in interfaceIInstanceContext
- Returns:
- the parent context of this context.
-
getActiveInstance
Description copied from interface:IInstanceContext
This method returns the active instance for the specified entity type.- Specified by:
getActiveInstance
in interfaceIInstanceContext
- Parameters:
entityName
- The entity type for which the active instance is requested.- Returns:
- The active instance for the specified entity type.
-
popActiveInstance
Description copied from interface:IInstanceContext
This method will de-activate the last activated instance.- Specified by:
popActiveInstance
in interfaceIInstanceContext
- Returns:
- The instance that was de-actived.
-
pushActiveInstance
Description copied from interface:IInstanceContext
This method will activate the specified instance within this context.- Specified by:
pushActiveInstance
in interfaceIInstanceContext
- Parameters:
instance
- The instance that should be made active.
-