public class CognosHandler extends BaseRouterHandler
This is a Cognos handler class that is responsible for communicating with Cognos as an external system using the
Cognos SDK Java APIs. The class doesn't communicate directly with Cognos APIs. It relies on
ActionLogPlayer
for interacting with Cognos. Therefore, the CognosHandler
role is to
hook the ActionLogPlayer
with the Maximo integration framework by wrapping it as a handler like other
handlers (EJB Handler, Web Service Handler, etc.).
This handler has five properties. All of them are mandatory. Properties are:
ActionLogPlayer}
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENT_STORE_PACKAGE_LOCATION
A Constant for retrieving the Cognos "Content store package location" handler property
|
static java.lang.String |
DATA_SOURCE_NAME
A Constant for retrieving the Cognos "Data Source Name" handler property
|
static java.lang.String |
MULTISERVER_ENABLED
A Constant for retrieving the Cognos "Is Multiserver Enabled?" handler property
|
static java.lang.String |
NAMESPACE_ID
A Constant for retrieving the Cognos "Namespace ID" handler property.
|
static java.lang.String |
PROJECT_BASE_DIR
A Constant for retrieving the Cognos "Project Base Directory" handler property
|
static java.lang.String |
URL
A Constant for retrieving the Cognos "URL" handler property.
|
BIDICONFIG, PASSWORD, USERNAME
Constructor and Description |
---|
CognosHandler()
Initialise
CognosHandler without parameters. |
CognosHandler(MaxEndPointInfo endPointInfo)
Initialise
CognosHandler with end point information. |
Modifier and Type | Method and Description |
---|---|
java.util.List<RouterPropsInfo> |
getProperties()
Returns list of
RouterPropsInfo objects that represent the handler properties. |
byte[] |
invoke(java.util.Map<java.lang.String,?> metadata,
byte[] data)
Uses the
ActionLogPlayer to invokes the Cognos Java SDK APIs to upload the cognos action logs and
publish them in Cognos. |
public static final java.lang.String URL
public static final java.lang.String NAMESPACE_ID
public static final java.lang.String PROJECT_BASE_DIR
public static final java.lang.String DATA_SOURCE_NAME
public static final java.lang.String CONTENT_STORE_PACKAGE_LOCATION
public static final java.lang.String MULTISERVER_ENABLED
public CognosHandler()
CognosHandler
without parameters.public CognosHandler(MaxEndPointInfo endPointInfo)
CognosHandler
with end point information.endPointInfo
- public java.util.List<RouterPropsInfo> getProperties()
RouterPropsInfo
objects that represent the handler properties.public byte[] invoke(java.util.Map<java.lang.String,?> metadata, byte[] data) throws MXException
ActionLogPlayer
to invokes the Cognos Java SDK APIs to upload the cognos action logs and
publish them in Cognos.invoke
in interface RouterHandler
invoke
in class BaseRouterHandler
metadata
- Metadata as Mapdata
- Cognos Action Logs as byte[].MXException
ActionLogPlayer}