Class InstanceStackPortalContext
java.lang.Object
com.aquima.interactions.portal.model.session.PortalContextDelegate
com.aquima.interactions.portal.model.session.InstanceStackPortalContext
- All Implemented Interfaces:
IPortalContext
,IInternalPortalContext
,Serializable
public class InstanceStackPortalContext
extends PortalContextDelegate
implements IInternalPortalContext
Internal portal context with an optional instance stack.
- Since:
- 8.3
- Author:
- Jon van Leuven
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic IInternalPortalContext
create
(IInternalPortalContext context, InstanceStack instanceStack) getActiveInstance
(String entityName) Returns the active instance connected to the specified entity name.This method returns a document engine for the current context.This method returns an element factory that may be used to expand pre-defined elements from the composer using the current container context.This method returns an element factory that may be used to expand pre-defined elements from the composer using the mapping context.This method will return the current profile interface.void
pushActiveInstance
(IEntityInstance instance) This method will activate the instance in the current context.Methods inherited from class com.aquima.interactions.portal.model.session.PortalContextDelegate
forModule, forModule, getApplication, getApplicationMode, getApplicationModel, getAuditEngine, getCaseEngineClient, getCommentsManager, getCommunicationEngine, getComposer, getConfiguration, getConnectionManager, getContentManagerFactory, getContentManagerFactory, getContext, getCurrentFlow, getCurrentLanguage, getDebugger, getExpressionParser, getFactoryManager, getFlowEngine, getFlowScope, getFunctionCallDefinitionManager, getId, getMappingManager, getMaskManager, getMatchEngine, getMetaModel, getPageScope, getProcessScope, getProject, getRequestScope, getResourceManager, getRuleEngine, getServiceManager, getSessionId, getSessionScope, getState, getTraceEngine, getTreeEngine, getUserProfile, getUserScope, getWebServices, restore
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aquima.interactions.portal.model.IInternalPortalContext
getApplication, getApplicationModel, getComposer, getConfiguration, getFactoryManager, getId
Methods inherited from interface com.aquima.interactions.portal.IPortalContext
forModule, forModule, getApplicationMode, getAuditEngine, getCaseEngineClient, getCommentsManager, getCommunicationEngine, getConnectionManager, getContentManagerFactory, getContentManagerFactory, getCurrentFlow, getCurrentLanguage, getDebugger, getExpressionParser, getFlowEngine, getFlowScope, getFunctionCallDefinitionManager, getMappingManager, getMaskManager, getMatchEngine, getMetaModel, getPageScope, getProcessScope, getProject, getRequestScope, getResourceManager, getRuleEngine, getServiceManager, getSessionId, getSessionScope, getState, getTraceEngine, getTreeEngine, getUserProfile, getUserScope, getWebServices, restore
-
Method Details
-
create
public static IInternalPortalContext create(IInternalPortalContext context, InstanceStack instanceStack) -
pushActiveInstance
Description copied from interface:IPortalContext
This method will activate the instance in the current context. Once an instance has been activated in a portal context, the instance will stay active until the page flow the activation occurred in has been completed.- Specified by:
pushActiveInstance
in interfaceIPortalContext
- Overrides:
pushActiveInstance
in classPortalContextDelegate
- Parameters:
instance
- The instance that should be activated.
-
getProfile
Description copied from interface:IPortalContext
This method will return the current profile interface. In addition to the standard profile behavior, the implementation returned here will also automatically inference unknown values, and is aware of the instances that might have been activated during the page flow.See also getUserProfile()
- Specified by:
getProfile
in interfaceIPortalContext
- Overrides:
getProfile
in classPortalContextDelegate
- Returns:
- Profile interface.
-
getActiveInstance
Description copied from interface:IPortalContext
Returns the active instance connected to the specified entity name. An instance might have been activated in the following ways:- The instance is a singleton, and therefore always active.
- The instance is activated through a container (only during page evaluation).
- The instance is activated by using the pushActiveInstance within the same flow.
- Specified by:
getActiveInstance
in interfaceIPortalContext
- Overrides:
getActiveInstance
in classPortalContextDelegate
- Parameters:
entityName
- The entity name for which the active instance is requested.- Returns:
- The instance that is active for the specified entity type.
-
getElementComposer
Description copied from interface:IPortalContext
This method returns an element factory that may be used to expand pre-defined elements from the composer using the current container context.- Specified by:
getElementComposer
in interfaceIPortalContext
- Overrides:
getElementComposer
in classPortalContextDelegate
- Returns:
- An element factory that can be used to expand elements from the composer.
-
getMappingComposer
Description copied from interface:IPortalContext
This method returns an element factory that may be used to expand pre-defined elements from the composer using the mapping context.- Specified by:
getMappingComposer
in interfaceIPortalContext
- Overrides:
getMappingComposer
in classPortalContextDelegate
- Returns:
- An element factory that can be used to expand elements from the composer.
-
getDocumentEngine
Description copied from interface:IPortalContext
This method returns a document engine for the current context.- Specified by:
getDocumentEngine
in interfaceIPortalContext
- Overrides:
getDocumentEngine
in classPortalContextDelegate
- Returns:
- Document engine for the current session.
-