com.ibm.di.connector.maximo.core
Class MxConnFunctions

java.lang.Object
  extended by com.ibm.di.connector.maximo.core.MxConnFunctions

public final class MxConnFunctions
extends java.lang.Object

This class provides utility functions that can be used inside scripts.

Since:
7.1

Constructor Summary
MxConnFunctions(MxConnConfiguration cfg, Log log)
          Constructs a MxConnFunctions.
 
Method Summary
 java.lang.String getSynonymKey(java.lang.String domainId, java.lang.String synonymValue)
          Returns the synonym key for a given value.
 java.lang.String getSynonymValue(java.lang.String domainId, java.lang.String synonymKey)
          Returns the synonym value for a given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MxConnFunctions

public MxConnFunctions(MxConnConfiguration cfg,
                       Log log)
Constructs a MxConnFunctions.

Parameters:
cfg - connector configuration object
Method Detail

getSynonymKey

public java.lang.String getSynonymKey(java.lang.String domainId,
                                      java.lang.String synonymValue)
                               throws MxConnectorException
Returns the synonym key for a given value.

Parameters:
domainId - domain ID
synonymValue - value associated with the synonym key
Returns:
synonym key for a given value or null if the domain ID does not exist
Throws:
MxConnectorException - if it is not possible obtain the synonym domain from Maximo

getSynonymValue

public java.lang.String getSynonymValue(java.lang.String domainId,
                                        java.lang.String synonymKey)
                                 throws MxConnectorException
Returns the synonym value for a given key.

Parameters:
domainId - domain ID
synonymKey - key associated with the synonym value
Returns:
synonym value for a given key or null if the domain ID does not exist
Throws:
MxConnectorException - if it is not possible obtain the synonym domain from Maximo