public class ActionLogPlayer
extends java.lang.Object
Constructor and Description |
---|
ActionLogPlayer(java.lang.String url,
java.lang.String namespaeId,
java.lang.String userName,
java.lang.String password)
This constructor is responsible for initializing the Cognos manager
|
Modifier and Type | Method and Description |
---|---|
void |
playScript(java.lang.String projectBaseDir,
java.io.Reader in,
java.lang.String dataSourceName,
java.lang.String contentStorePackageLocation)
This method is responsible of executing an action log script on Cognos server.
|
void |
playScript(java.lang.String projectBaseDir,
java.io.Reader in,
java.lang.String dataSourceName,
java.lang.String contentStorePackageLocation,
boolean useTransientAction)
This method is responsible of executing an action log script on Cognos server.
|
void |
playScript(java.lang.String projectBaseDir,
java.lang.String script,
java.lang.String dataSourceName,
java.lang.String contentStorePackageLocation)
This method is responsible of executing an action log script on Cognos server.
|
void |
playScript(java.lang.String projectBaseDir,
java.lang.String script,
java.lang.String dataSourceName,
java.lang.String contentStorePackageLocation,
boolean useTransientAction)
This method is responsible of executing an action log script on Cognos server.
|
public ActionLogPlayer(java.lang.String url, java.lang.String namespaeId, java.lang.String userName, java.lang.String password) throws CognosHandlerException
url
- the url of the Cognos Server, it is the value provided in the "IBM Cognos Configuration" tool: in
Local Configuration -> Environment -> Dispatcher URI for external applicationsnamespaeId
- the namespace for the authentication provider configured on Cognos Server. It is the value provided in
the "IBM Cognos Configuration" tool: in Local Configuration -> Security -> Authentication -> userName
- the username of the Cognos userpassword
- the password og the Cognos userCognosHandlerException
- if exception occurred while connecting to the Cognos serverpublic void playScript(java.lang.String projectBaseDir, java.lang.String script, java.lang.String dataSourceName, java.lang.String contentStorePackageLocation) throws CognosHandlerException
This method is responsible of executing an action log script on Cognos server.
The method do the following:
1. Generate the folder name for the framework manager project. It appends the maximo integration object name to
the current data time.
2. Create the framework manager project.
3. Open the framework manager project.
4. Loop on the transactions in the script and execute them one by one.
5. Save the project.
6. Close the project
projectBaseDir
- the directory where the framework manager project directory will be createdscript
- the action log to be executeddataSourceName
- the Cognos data source name connecting to the Maximo databasecontentStorePackageLocation
- the location where the Cognos package will be published in the content storeCognosHandlerException
- if exception occurred while executing the scriptpublic void playScript(java.lang.String projectBaseDir, java.lang.String script, java.lang.String dataSourceName, java.lang.String contentStorePackageLocation, boolean useTransientAction) throws CognosHandlerException
This method is responsible of executing an action log script on Cognos server.
projectBaseDir
- the directory where the framework manager project directory will be createdscript
- the action log to be executeddataSourceName
- the Cognos data source name connecting to the Maximo databasecontentStorePackageLocation
- the location where the Cognos package will be published in the content storeuseTransientAction
- should this action log be executed with a transient action? Required for multiserver support.CognosHandlerException
- if exception occurred while executing the scriptpublic void playScript(java.lang.String projectBaseDir, java.io.Reader in, java.lang.String dataSourceName, java.lang.String contentStorePackageLocation) throws CognosHandlerException
This method is responsible of executing an action log script on Cognos server.
The method do the following:
1. Generate the folder name for the framework manager project. It appends the maximo integration object name to
the current data time.
2. Create the framework manager project.
3. Open the framework manager project.
4. Loop on the transactions in the script and execute them one by one.
5. Save the project.
6. Close the project
projectBaseDir
- the directory where the framework manager project directory will be createdin
- the reader of the action log script to be executeddataSourceName
- the Cognos data source name connecting to the Maximo databasecontentStorePackageLocation
- the location where the Cognos package will be published in the content storeCognosHandlerException
- if exception occurred while executing the scriptpublic void playScript(java.lang.String projectBaseDir, java.io.Reader in, java.lang.String dataSourceName, java.lang.String contentStorePackageLocation, boolean useTransientAction) throws CognosHandlerException
This method is responsible of executing an action log script on Cognos server.
The method generates the folder name for the framework manager project. It appends the maximo integration
object name to the current data time.
If the useTransient argument value is false, the method will also do the following individual steps:
1. Create the framework manager project.
2. Open the framework manager project.
3. Loop on the transactions in the script and execute them one by one.
4. Save the project.
5. Close the project
If the useTransient argument value is true, the method will create the project and execute the action log in a single step. In this case the script will only include one transaction.
projectBaseDir
- the directory where the framework manager project directory will be createdin
- the reader of the action log script to be executeddataSourceName
- the Cognos data source name connecting to the Maximo databasecontentStorePackageLocation
- the location where the Cognos package will be published in the content storeuseTransientAction
- should this action log be executed with a transient action? Required for multiserver support.CognosHandlerException
- if exception occurred while executing the script