com.ibm.tivoli.maximo.report.cognos.metadata.generator

Class ActionLogBuilder

  • java.lang.Object
    • com.ibm.tivoli.maximo.report.cognos.metadata.generator.ActionLogBuilder


  • public class ActionLogBuilder
    extends java.lang.Object
    This class is responsible for building the action log script.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ActionLogBuilder() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String build(ActionLogInfo actionLogInfo)
      This method is responsible for building an action log script based on a maximo xml input.
      static void build(ActionLogInfo actionLogInfo, java.io.Reader in, java.io.Writer writer) 
      static void build(java.io.Reader in, java.io.Writer writer, java.lang.String databaseType, java.lang.String databaseSchema, java.lang.String databaseName, java.lang.String dataSourceName, java.lang.String contentStorePackageLocation)
      This method is responsible for building an action log script based on a maximo xml input reader.
      static void build(java.io.Reader in, java.io.Writer writer, java.lang.String databaseType, java.lang.String databaseSchema, java.lang.String databaseName, java.lang.String dataSourceName, java.lang.String contentStorePackageLocation, boolean isMultiserver)
      This method is responsible for building an action log script based on a maximo xml input reader.
      static java.lang.String build(java.lang.String inputModel, java.lang.String databaseType, java.lang.String databaseSchema, java.lang.String databaseName, java.lang.String dataSourceName, java.lang.String contentStorePackageLocation)
      This method is responsible for building an action log script based on a maximo xml input
      static java.lang.String build(java.lang.String inputModel, java.lang.String databaseType, java.lang.String databaseSchema, java.lang.String databaseName, java.lang.String dataSourceName, java.lang.String contentStorePackageLocation, boolean isMultiserver)
      This method is responsible for building an action log script based on a maximo xml input.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DATA_SOURCE_VIEW_NAMESPACE

        public static final java.lang.String DATA_SOURCE_VIEW_NAMESPACE
        See Also:
        Constant Field Values
    • Constructor Detail

      • ActionLogBuilder

        public ActionLogBuilder()
    • Method Detail

      • build

        public static java.lang.String build(java.lang.String inputModel,
                                             java.lang.String databaseType,
                                             java.lang.String databaseSchema,
                                             java.lang.String databaseName,
                                             java.lang.String dataSourceName,
                                             java.lang.String contentStorePackageLocation)
                                      throws CognosTransformationException

        This method is responsible for building an action log script based on a maximo xml input

        The method does the following steps:
        1. Generate the project initialization actions: set Default local, set project name, set model name,...
        2. Generate the data source view source query subjects.
        3. Generate the relationships between the data source view query subjects.
        4. Generate the business logic view model query subjects, query items and hide non-business query items.
        5. Generate the create and publish package actions.

        Parameters:
        inputModel - the maximo xml representing the integration object <MAXINTOBJECT>
        databaseType - the database type DB2, Oracle ("OR") or SQL-Server ("SS")
        databaseSchema - the Maximo database schema name
        databaseName - the Maximo database name, required only if the type is "SS"
        dataSourceName - the Cognos data source name connecting to the Maximo database
        contentStorePackageLocation - the location where the Cognos package will be published in the content store
        Returns:
        the generated action log script
        Throws:
        CognosTransformationException - if exception occurred while generating the action log script
      • build

        public static java.lang.String build(java.lang.String inputModel,
                                             java.lang.String databaseType,
                                             java.lang.String databaseSchema,
                                             java.lang.String databaseName,
                                             java.lang.String dataSourceName,
                                             java.lang.String contentStorePackageLocation,
                                             boolean isMultiserver)
                                      throws CognosTransformationException

        This method is responsible for building an action log script based on a maximo xml input.

        The method does the following steps:
        1. Generate the project initialization actions: set Default local, set project name, set model name,...
        2. Generate the data source view source query subjects.
        3. Generate the relationships between the data source view query subjects.
        4. Generate the business logic view model query subjects, query items and hide non-business query items.
        5. Generate the create and publish package actions.

        Parameters:
        inputModel - the maximo xml representing the integration object <MAXINTOBJECT>
        databaseType - the database type DB2, Oracle ("OR") or SQL-Server ("SS")
        databaseSchema - the Maximo database schema name
        databaseName - the Maximo database name, required only if the type is "SS"
        dataSourceName - the Cognos data source name connecting to the Maximo database
        contentStorePackageLocation - the location where the Cognos package will be published in the content store
        isMultiserver - is the Cognos server configured in multiserver mode?
        Returns:
        the generated action log script
        Throws:
        CognosTransformationException - if exception occurred while generating the action log script
      • build

        public static java.lang.String build(ActionLogInfo actionLogInfo)
                                      throws CognosTransformationException

        This method is responsible for building an action log script based on a maximo xml input.

        The method does the following steps:
        1. Generate the project initialization actions: set Default local, set project name, set model name,...
        2. Generate the data source view source query subjects.
        3. Generate the relationships between the data source view query subjects.
        4. Generate the business logic view model query subjects, query items and hide non-business query items.
        5. Generate the create and publish package actions.

        Parameters:
        actionLogInfo - information required to create the action log
        Returns:
        the generated action log script
        Throws:
        CognosTransformationException - if exception occurred while generating the action log script
      • build

        public static void build(java.io.Reader in,
                                 java.io.Writer writer,
                                 java.lang.String databaseType,
                                 java.lang.String databaseSchema,
                                 java.lang.String databaseName,
                                 java.lang.String dataSourceName,
                                 java.lang.String contentStorePackageLocation)
                          throws CognosTransformationException

        This method is responsible for building an action log script based on a maximo xml input reader.

        The method does the following steps:
        1. Generate the project initialization actions: set Default local, set project name, set model name,...
        2. Generate the data source view source query subjects.
        3. Generate the relationships between the data source view query subjects.
        4. Generate the business logic view model query subjects, query items and hide non-business query items.
        5. Generate the create and publish package actions.

        Parameters:
        in - the maximo xml reader representing the integration object <MAXINTOBJECT>
        writer - the writer to write the generated action log script on it
        databaseType - the database type DB2, Oracle ("OR") or SQL-Server ("SS")
        databaseSchema - the Maximo database schema name
        databaseName - the Maximo database name, required only if the type is "SS"
        dataSourceName - the Cognos data source name connecting to the Maximo database
        contentStorePackageLocation - the location where the Cognos package will be published in the content store
        Throws:
        CognosTransformationException - if exception occurred while generating the action log script
      • build

        public static void build(java.io.Reader in,
                                 java.io.Writer writer,
                                 java.lang.String databaseType,
                                 java.lang.String databaseSchema,
                                 java.lang.String databaseName,
                                 java.lang.String dataSourceName,
                                 java.lang.String contentStorePackageLocation,
                                 boolean isMultiserver)
                          throws CognosTransformationException

        This method is responsible for building an action log script based on a maximo xml input reader.

        The method does the following steps:
        1. Generate the project initialization actions: set Default local, set project name, set model name,...
        2. Generate the data source view source query subjects.
        3. Generate the relationships between the data source view query subjects.
        4. Generate the business logic view model query subjects, query items and hide non-business query items.
        5. Generate the create and publish package actions.

        Parameters:
        in - the maximo xml reader representing the integration object <MAXINTOBJECT>
        writer - the writer to write the generated action log script on it
        databaseType - the database type DB2, Oracle ("OR") or SQL-Server ("SS")
        databaseSchema - the Maximo database schema name
        databaseName - the Maximo database name, required only if the type is "SS"
        dataSourceName - the Cognos data source name connecting to the Maximo database
        contentStorePackageLocation - the location where the Cognos package will be published in the content store
        isMultiserver - is the Cognos server configured in multiserver mode?
        Throws:
        CognosTransformationException - if exception occurred while generating the action log script