public class ActionLogGen
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ROS_APP |
static java.lang.String |
ROS_SITEORGTYPE |
Constructor and Description |
---|
ActionLogGen(PrintWriter out)
Initialize the ActionLogGen with the writer to write the generated output on it.
|
Modifier and Type | Method and Description |
---|---|
void |
generateAddProjectLocale(java.lang.String locale,
java.lang.String defaultLocale)
This method is responsible for the generation of the add project locale actions.
|
void |
generateAllowCrossProductJoin()
This method is responsible for the generation of the allow croos product join actions.
|
void |
generateCreateNamespace(java.lang.String namespace,
java.lang.String parentNamespace)
This method is responsible for the generation of the creation of a new namespace.
|
void |
generateCreatePackage(java.lang.String packageName,
java.lang.String excludedNamespace,
java.lang.String topLevelNamespace)
Deprecated.
Replaced by generateCreatePackage(packageName, excludedNamespace, topLevelNamespace,
defaultLocale, translations)
|
void |
generateCreatePackage(java.lang.String packageName,
java.lang.String excludedNamespace,
java.lang.String topLevelNamespace,
java.lang.String defaultLocale,
java.util.List<java.lang.String> languages)
This method is responsible for the generation of package creation actions.
|
void |
generateDBImport(java.lang.String parentNamespace,
java.lang.String databaseType,
java.lang.String dataSourceName,
java.lang.String schema,
java.util.Set<MXObject> tables,
java.util.Set<MXObject> views,
java.lang.String databaseName)
This method is responsible for the generation of the DBImport and DBRelease actions.
The DBImport action is the action responsible for creating the source query subjects. |
void |
generateEvaluateQuerySubject(java.lang.String parentNamespace,
java.lang.String querySubjectName)
This method is responsible for the generation of the object evaluation action.
|
void |
generateHideQueryItem(java.lang.String parentNamespace,
java.lang.String querySubjectName,
java.lang.String queryItemName)
This method is responsible for the generation of the hide query item action.
|
void |
generateModelNameTranslation(java.lang.String modelName,
java.lang.String nameTranslation,
int localeIndex)
This method is responsible for the generation of modify actions that localize the model name.
|
void |
generateModelQueryItem(java.lang.String parentNamespace,
java.lang.String querySubjectName,
java.lang.String queryItemName,
java.lang.String basedOnNamespace,
java.lang.String sourceQuerySubjectName,
java.lang.String queryItemDescription,
java.lang.String dataSourceQueryItemName)
Deprecated.
Replaced by generateModelQueryItem(parentNamespace, querySubjectName, queryItemName,
basedOnNamespace, sourceQuerySubjectName, queryItemDescription, dataSourceQueryItemName, defaultLocale
|
void |
generateModelQueryItem(java.lang.String parentNamespace,
java.lang.String querySubjectName,
java.lang.String queryItemName,
java.lang.String basedOnNamespace,
java.lang.String sourceQuerySubjectName,
java.lang.String queryItemDescription,
java.lang.String dataSourceQueryItemName,
java.lang.String defaultLocale)
This method is responsible for the generation of the model query item creation action.
|
void |
generateModelQueryItemDescTranslation(java.lang.String parentNamespace,
java.lang.String querySubjectName,
java.lang.String queryItemName,
java.lang.String descTranslation,
int localeIndex)
This method is responsible for the generation of the model query item description and screen tip
translation actions.
|
void |
generateModelQueryItemNameTranslation(java.lang.String parentNamespace,
java.lang.String querySubjectName,
java.lang.String queryItemName,
java.lang.String nameTranslation,
int localeIndex)
This method is responsible for the generation of the model query item name translation actions.
|
void |
generateModelQuerySubject(java.lang.String parentNamespace,
java.lang.String querySubjectName)
Deprecated.
Replaced by generateModelQuerySubject(parentNamespace, querySubjectName, defaultLocale)
|
void |
generateModelQuerySubject(java.lang.String parentNamespace,
java.lang.String querySubjectName,
java.lang.String defaultLocale)
This method is responsible for the generation of the model query subject creation action.
|
void |
generateModelQuerySubjectTranslations(java.lang.String parentNamespace,
java.lang.String querySubjectName,
java.lang.String nameTranslation,
int localeIndex)
This method is responsible for the generation of the model query subject translation actions.
|
void |
generateNamespaceTranslation(java.lang.String namespace,
java.lang.String nameTranslation,
int localeIndex)
This method is responsible for the generation of namespace translation actions.
|
void |
generatePackageNameTranslations(java.lang.String packageName,
java.lang.String nameTranslation,
int localeIndex)
This method is responsible for the generation of modify actions that provide package name translations.
|
void |
generateProjectInitialization(java.lang.String projectName,
java.lang.String topLevelNamespace)
Deprecated.
Replaced by generateProjectInitialization(projectName, topLevelNamespace, defaultLocale)
|
void |
generateProjectInitialization(java.lang.String projectName,
java.lang.String topLevelNamespace,
java.lang.String defaultLocale)
Deprecated.
Replaced by generateProjectInitialization(projectName, topLevelNamespace, defaultLocale, queryMode)
|
void |
generateProjectInitialization(java.lang.String projectName,
java.lang.String topLevelNamespace,
java.lang.String defaultLocale,
java.lang.String queryMode)
This method is responsible for the generation of the project initialization actions.
|
void |
generatePublishPackage(java.lang.String packageName,
java.lang.String contentStorePackageLocation)
This method is responsible for the generation of the package publishing action.
|
void |
generateRelationship(java.lang.String topLevelNamespace,
java.lang.String parentNamespace,
java.lang.String leftQuerySubjectName,
java.lang.String leftMinCardinality,
java.lang.String leftMaxCardinality,
java.lang.String rightQuerySubjectName,
java.lang.String rightMinCardinality,
java.lang.String rightMaxCardinality,
java.lang.String relationshipName,
java.util.List<java.lang.String> leftQueryItems,
java.util.List<java.lang.String> rightQueryItems)
This method is responsible for the generation of the relationship actions.
|
void |
generateRelationship(java.lang.String topLevelNamespace,
java.lang.String parentNamespace,
java.lang.String leftQuerySubjectName,
java.lang.String leftMinCardinality,
java.lang.String leftMaxCardinality,
java.lang.String rightQuerySubjectName,
java.lang.String rightMinCardinality,
java.lang.String rightMaxCardinality,
java.lang.String relationshipName,
java.lang.String cognosRelationship) |
void |
generateReorderByNameQuerySubject(java.lang.String parentNamespace,
java.lang.String querySubjectName)
This method is responsible for the generation of the object evaluation action.
|
void |
generateScriptHeader()
This method is responsible for generation the header of the BMTActionLog file used by the BMTActionLogPlayer.exe
provided with Cognos installation.
|
void |
generateScriptTail()
This method is responsible for the generation of the tail of the BMTActionLog file used by the
BMTActionLogPlayer.exe provided with Cognos installation.
|
void |
generateSetQueryProcessingToLocal(java.lang.String dataSourceName)
This method is responsible for the generation of the setting of the query processing to local.
|
void |
generateTransactionHeader()
This method is responsible for the generation of the transaction header.
|
void |
generateTransactionHeader(boolean useSavedAttribute)
This method is responsible for the generation of the transaction header.
|
void |
generateTransactionTail()
This method is responsible for the generation of the transaction tail.
|
int |
getQuerySubjectSequence()
This method is responsible for getting the sequence number for the action.
|
public static final java.lang.String ROS_SITEORGTYPE
public static final java.lang.String ROS_APP
public ActionLogGen(PrintWriter out)
out
- the writer to write the generated output on it.public void generateScriptHeader()
public void generateScriptTail()
public void generateTransactionHeader()
public void generateTransactionHeader(boolean useSavedAttribute)
useSavedAttribute
- should the save attribute be includedpublic void generateTransactionTail()
public void generateProjectInitialization(java.lang.String projectName, java.lang.String topLevelNamespace)
public void generateProjectInitialization(java.lang.String projectName, java.lang.String topLevelNamespace, java.lang.String defaultLocale)
public void generateProjectInitialization(java.lang.String projectName, java.lang.String topLevelNamespace, java.lang.String defaultLocale, java.lang.String queryMode)
projectName
- the project nametopLevelNamespace
- the model namedefaultLocale
- the default localequeryMode
- the query modepublic void generateCreateNamespace(java.lang.String namespace, java.lang.String parentNamespace)
namespace
- the new namespaceparentNamespace
- the parent namespacepublic void generateDBImport(java.lang.String parentNamespace, java.lang.String databaseType, java.lang.String dataSourceName, java.lang.String schema, java.util.Set<MXObject> tables, java.util.Set<MXObject> views, java.lang.String databaseName)
parentNamespace
- the parent namespacedatabaseType
- the database type (DB2, Oracle "OR" or SQL-Server "SS")dataSourceName
- the name of the data source configured on Cognos to connect to the Maximo databaseschema
- the name of the Maximo database schematables
- the tables to be used as source for the query subjectsviews
- the views to be used as source for the query subjectsdatabaseName
- the Maximo database name, only needed if the database type is SQL-Serverpublic void generateModelQuerySubject(java.lang.String parentNamespace, java.lang.String querySubjectName)
public void generateModelQuerySubject(java.lang.String parentNamespace, java.lang.String querySubjectName, java.lang.String defaultLocale)
parentNamespace
- the parent namespacequerySubjectName
- the query subject namedefaultLocale
- the default localepublic void generateModelQueryItem(java.lang.String parentNamespace, java.lang.String querySubjectName, java.lang.String queryItemName, java.lang.String basedOnNamespace, java.lang.String sourceQuerySubjectName, java.lang.String queryItemDescription, java.lang.String dataSourceQueryItemName)
public void generateModelQueryItem(java.lang.String parentNamespace, java.lang.String querySubjectName, java.lang.String queryItemName, java.lang.String basedOnNamespace, java.lang.String sourceQuerySubjectName, java.lang.String queryItemDescription, java.lang.String dataSourceQueryItemName, java.lang.String defaultLocale)
parentNamespace
- the parent namespacequerySubjectName
- the model query subject namequeryItemName
- the query item namebasedOnNamespace
- the namespace of the source query subjectsourceQuerySubjectName
- the name of the source query subjectqueryItemDescription
- the description of the query itemdataSourceQueryItemName
- the name of the source query itemdefaultLocale
- the design language for the projectpublic void generateHideQueryItem(java.lang.String parentNamespace, java.lang.String querySubjectName, java.lang.String queryItemName)
parentNamespace
- the parent namespacequerySubjectName
- the name of the query subjectqueryItemName
- the name of the query itempublic void generateEvaluateQuerySubject(java.lang.String parentNamespace, java.lang.String querySubjectName)
parentNamespace
- the parent namespacequerySubjectName
- the name of the query subjectpublic void generateReorderByNameQuerySubject(java.lang.String parentNamespace, java.lang.String querySubjectName)
parentNamespace
- the parent namespacequerySubjectName
- the name of the query subjectpublic void generateRelationship(java.lang.String topLevelNamespace, java.lang.String parentNamespace, java.lang.String leftQuerySubjectName, java.lang.String leftMinCardinality, java.lang.String leftMaxCardinality, java.lang.String rightQuerySubjectName, java.lang.String rightMinCardinality, java.lang.String rightMaxCardinality, java.lang.String relationshipName, java.util.List<java.lang.String> leftQueryItems, java.util.List<java.lang.String> rightQueryItems)
topLevelNamespace
- the model nameparentNamespace
- the parent namespaceleftQuerySubjectName
- the name of the left query subjectleftMinCardinality
- the minimum cardinality for the left query subjectleftMaxCardinality
- the maximum cardinality for the left query subjectrightQuerySubjectName
- the name of the right query subjectrightMinCardinality
- the minimum cardinality for the right query subjectrightMaxCardinality
- the maximum cardinality for the right query subjectrelationshipName
- the relationship nameleftQueryItems
- the query items of the left query subjectrightQueryItems
- the query items of the right query subjectpublic void generateRelationship(java.lang.String topLevelNamespace, java.lang.String parentNamespace, java.lang.String leftQuerySubjectName, java.lang.String leftMinCardinality, java.lang.String leftMaxCardinality, java.lang.String rightQuerySubjectName, java.lang.String rightMinCardinality, java.lang.String rightMaxCardinality, java.lang.String relationshipName, java.lang.String cognosRelationship)
public void generateAllowCrossProductJoin()
public void generateSetQueryProcessingToLocal(java.lang.String dataSourceName)
public void generateCreatePackage(java.lang.String packageName, java.lang.String excludedNamespace, java.lang.String topLevelNamespace)
public void generateCreatePackage(java.lang.String packageName, java.lang.String excludedNamespace, java.lang.String topLevelNamespace, java.lang.String defaultLocale, java.util.List<java.lang.String> languages)
packageName
- excludedNamespace
- topLevelNamespace
- defaultLocale
- languages
- public void generatePublishPackage(java.lang.String packageName, java.lang.String contentStorePackageLocation)
packageName
- contentStorePackageLocation
- public void generateAddProjectLocale(java.lang.String locale, java.lang.String defaultLocale)
locale
- the locale to add to the projectdefaultLocale
- the design language for the projectpublic void generatePackageNameTranslations(java.lang.String packageName, java.lang.String nameTranslation, int localeIndex)
packageName
- the package namenameTranslation
- the package name translationlocaleIndex
- the index of the locale for this translationpublic void generateModelNameTranslation(java.lang.String modelName, java.lang.String nameTranslation, int localeIndex)
modelName
- the model namelocaleIndex
- the index of the locale for this translationpublic void generateNamespaceTranslation(java.lang.String namespace, java.lang.String nameTranslation, int localeIndex)
namespace
- the new namespaceparentNamespace
- the parent namespacelocaleIndex
- the index of the locale for this translationpublic void generateModelQuerySubjectTranslations(java.lang.String parentNamespace, java.lang.String querySubjectName, java.lang.String nameTranslation, int localeIndex)
parentNamespace
- the parent namespacequerySubjectName
- the query subject namenameTranslation
- the query subject name translationlocaleIndex
- the index of the locale for this translationpublic void generateModelQueryItemNameTranslation(java.lang.String parentNamespace, java.lang.String querySubjectName, java.lang.String queryItemName, java.lang.String nameTranslation, int localeIndex)
parentNamespace
- the parent namespacequerySubjectName
- the query subject namequeryItemName
- the query item namenameTranslation
- the query item name translationlocaleIndex
- the index of the locale for this translationpublic void generateModelQueryItemDescTranslation(java.lang.String parentNamespace, java.lang.String querySubjectName, java.lang.String queryItemName, java.lang.String descTranslation, int localeIndex)
parentNamespace
- the parent namespacequerySubjectName
- the query subject namequeryItemName
- the query item namedescTranslation
- the query item description translationlocaleIndex
- the index of the locale for this translationpublic int getQuerySubjectSequence()