Class ProjectTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.project.ProjectTemplate
Template that may be used to create a data source implementation for a project.
- Since:
- 7.1
- Author:
- O. Kerpershoek
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LanguageTemplate
The default language that is used by the template. -
Constructor Summary
ConstructorsConstructorDescriptionProjectTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, String name, com.aquima.interactions.foundation.Version version) Constructs the template with an existing report.ProjectTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, String name, String version) Constructs the template with an existing report.ProjectTemplate
(String name, String version) Constructs the template using a new report. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChannel
(String channel) This method may be used to add a channel to the meta model.addExpander
(String name) This method may be used to add an expander definition.addFieldType
(String name) addGlobalParameter
(String name) addLanguage
(String code, String name) This method may be used to add a language to the meta model.void
addMessage
(String key, com.aquima.interactions.foundation.text.IMultilingualText message) This method may be used to add messages with a key (normally defined in messages.properties).void
addMessage
(String key, String message) This method may be used to add messages with a key (normally defined in messages.properties).addPortalMessage
(String name) addResourceConnection
(String name) This method may be used to add a role to the meta model.addService
(String name) This method may be used to add a service definition.void
This method may be used to add a team to the meta model.void
This method may be used to add a theme to the meta model.addValidator
(String name) This method may be used to register a new validator type.void
addValueFormat
(String name, com.aquima.interactions.foundation.DataType type, String languageCode, String pattern) This method may be used to add a value format.com.aquima.interactions.foundation.ApplicationID
This method returns the application ID of the project.This method returns all channels defined in the metamodel template.protected Iterator
<ResourceConnectionTemplate> com.aquima.interactions.foundation.text.ILanguage
This method returns the default language of the template.protected Iterator
<ExpanderTemplate> protected Collection
<FieldTypeTemplate> protected Collection
<GlobalParameterTemplate> This method returns an array with the language templates that are defined.protected Iterator
<LanguageTemplate> protected com.aquima.interactions.test.templates.project.Message[]
getName()
This method returns the name of the project.protected Iterator
<PortalMessageTemplate> getRoles()
protected Iterator
<ServiceTemplate> getTeams()
This method returns all teams defined in the metamodel template.protected String[]
protected List
<ValidatorTemplate> protected Iterator
<com.aquima.interactions.test.templates.project.ValueFormatModel> void
setVersion
(com.aquima.interactions.foundation.Version version) This method sets the version of the project.com.aquima.interactions.project.ds.IProjectDS
This method converts the template to a data source that can be used to initialize a project.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Field Details
-
DEFAULT_LANGUAGE
The default language that is used by the template.
-
-
Constructor Details
-
ProjectTemplate
Constructs the template using a new report.- Parameters:
name
- The name of the project.version
- The version of the project.
-
ProjectTemplate
public ProjectTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, String name, String version) Constructs the template with an existing report.- Parameters:
report
- The report that should be used for errors and warnings.name
- The name of the project.version
- The version of the project.
-
ProjectTemplate
public ProjectTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, String name, com.aquima.interactions.foundation.Version version) Constructs the template with an existing report.- Parameters:
report
- The report that should be used for errors and warnings.name
- The name of the project.version
- The version of the project.
-
-
Method Details
-
setVersion
public void setVersion(com.aquima.interactions.foundation.Version version) This method sets the version of the project.- Parameters:
version
- the new version
-
getName
This method returns the name of the project.- Returns:
- The name of the project.
-
getApplicationID
public com.aquima.interactions.foundation.ApplicationID getApplicationID()This method returns the application ID of the project.- Returns:
- The application ID of the project.
-
addValueFormat
public void addValueFormat(String name, com.aquima.interactions.foundation.DataType type, String languageCode, String pattern) This method may be used to add a value format.- Parameters:
name
- The name of the value format.type
- The data type the format is defined for.languageCode
- The code of the language that should be used to determine the number symbols.pattern
- The pattern of the value format.
-
getValueFormats
protected Iterator<com.aquima.interactions.test.templates.project.ValueFormatModel> getValueFormats() -
addMessage
This method may be used to add messages with a key (normally defined in messages.properties).- Parameters:
key
- Key of the message.message
- The message text.
-
addMessage
public void addMessage(String key, com.aquima.interactions.foundation.text.IMultilingualText message) This method may be used to add messages with a key (normally defined in messages.properties).- Parameters:
key
- Key of the message.message
- The message text.- Since:
- 8.4
-
getLanguagesIterator
-
addExpander
This method may be used to add an expander definition.- Parameters:
name
- The name of the container expander definition.- Returns:
- Template for the newly added container expander definition.
-
getExpanders
-
addService
This method may be used to add a service definition.- Parameters:
name
- The name of the service definition.- Returns:
- Template representing the newly added service definition.
-
getServices
-
getConnections
-
getPortalMessages
-
getGlobalParameters
-
getFieldTypes
-
addGlobalParameter
-
addFieldType
-
addRole
This method may be used to add a role to the meta model.- Parameters:
name
- The name of the role that should be added.- Returns:
- The create role.
-
addChannel
This method may be used to add a channel to the meta model.- Parameters:
channel
- The name of the channel that should be added.
-
addTeam
This method may be used to add a team to the meta model.- Parameters:
team
- The name of the team that should be added.
-
getRoles
-
getChannels
This method returns all channels defined in the metamodel template.- Returns:
- Collection of String.
-
getTeams
This method returns all teams defined in the metamodel template.- Returns:
- Collection of String.
-
addTheme
This method may be used to add a theme to the meta model.- Parameters:
theme
- The name of the theme that should be added.
-
getThemes
-
getMessages
protected com.aquima.interactions.test.templates.project.Message[] getMessages() -
addLanguage
This method may be used to add a language to the meta model.- Parameters:
code
- The code of the language.name
- The name of the language.- Returns:
- Language template representing the added language.
-
getDefaultLanguage
public com.aquima.interactions.foundation.text.ILanguage getDefaultLanguage()This method returns the default language of the template.- Returns:
- The default language of the template.
-
getLanguages
This method returns an array with the language templates that are defined.- Returns:
- an array with the language templates that are defined.
-
addValidator
This method may be used to register a new validator type.- Parameters:
name
- The name of the validator that is added.- Returns:
- Template representing the newly added validator type.
-
getValidatorTypes
-
toDataSource
public com.aquima.interactions.project.ds.IProjectDS toDataSource()This method converts the template to a data source that can be used to initialize a project.- Returns:
- a data source that can be used to initialize a project.
-
addCsvResourceConnection
-
addResourceConnection
-
addPortalMessage
-