Class ContainerContextTemplate
java.lang.Object
com.aquima.interactions.test.templates.context.EventContextTemplate
com.aquima.interactions.test.templates.context.ContainerContextTemplate
Template that can be used to create a container context.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs the template with an new application template.ContainerContextTemplate
(IApplicationTemplate application) Constructs the template with the specified application template. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExpressionParameter
(String name, String expressionValue) Add an expression parameter to the context.void
addParameter
(String name, String strValue) This method may be used to add a parameter for the container.void
addReferenceParameter
(String name, String refName) Add a reference parameter to the context.void
addReferenceParameters
(String name, String... refNames) Add a reference parameter to the context.void
addValueParameter
(String name, com.aquima.interactions.foundation.IValue value) Add a value parameter to the context.protected String
com.aquima.interactions.portal.model.def.TypedParameters
void
setAuditEngine
(com.aquima.interactions.foundation.logging.audit.IAuditEngine auditEngine) This method should be invoked to set a specific auditEngine.void
setCommentsManager
(com.aquima.interactions.portal.ICommentsManager commentsManager) void
setContainerName
(String name) This method should be invoked to specify the name of the container.void
setParameters
(com.aquima.interactions.portal.ITypedParameters parameters) This method can be used to set the container parameters.com.aquima.interactions.portal.IContainerContext
This method converts the template to a container context.com.aquima.interactions.portal.IContainerEventContext
This method converts the template to a container event context.Methods inherited from class com.aquima.interactions.test.templates.context.EventContextTemplate
getEvent, getSessionId, setFiredEvent, setSessionId
-
Constructor Details
-
ContainerContextTemplate
public ContainerContextTemplate()Constructs the template with an new application template. -
ContainerContextTemplate
Constructs the template with the specified application template.- Parameters:
application
- The application template that should be used by the context.
-
-
Method Details
-
setContainerName
This method should be invoked to specify the name of the container.- Parameters:
name
- The name of the container.
-
addParameter
This method may be used to add a parameter for the container.- Parameters:
name
- The name of the parameter.strValue
- The value of the parameter.
-
setAuditEngine
public void setAuditEngine(com.aquima.interactions.foundation.logging.audit.IAuditEngine auditEngine) This method should be invoked to set a specific auditEngine.- Parameters:
auditEngine
- The auditEngine
-
setCommentsManager
public void setCommentsManager(com.aquima.interactions.portal.ICommentsManager commentsManager) -
getApplicationTemplate
- Specified by:
getApplicationTemplate
in classEventContextTemplate
-
getContainerName
-
getParameters
public com.aquima.interactions.portal.model.def.TypedParameters getParameters() -
toContext
public com.aquima.interactions.portal.IContainerContext toContext()This method converts the template to a container context.- Returns:
- Container context for the template.
-
toEventContext
public com.aquima.interactions.portal.IContainerEventContext toEventContext()This method converts the template to a container event context.- Returns:
- Container event context for the template.
-
addExpressionParameter
Add an expression parameter to the context.- Parameters:
name
- The name of the parameter.expressionValue
- The expression value.- Throws:
com.aquima.interactions.foundation.exception.AppException
- When an error occurred parsing the expression.
-
addValueParameter
Add a value parameter to the context.- Parameters:
name
- The name of the parameter.value
- The value.
-
addReferenceParameter
Add a reference parameter to the context.- Parameters:
name
- The name of the parameter.refName
- The name of the element referring to.
-
addReferenceParameters
Add a reference parameter to the context.- Parameters:
name
- The name of the parameter.refNames
- The names of the elements referring to.
-
setParameters
public void setParameters(com.aquima.interactions.portal.ITypedParameters parameters) This method can be used to set the container parameters.- Parameters:
parameters
- The parameters.
-