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 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
 String getSynonymKey(String domainId, String synonymValue)
          Returns the synonym key for a given value.
 String getSynonymValue(String domainId, 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 String getSynonymKey(String domainId,
                            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 String getSynonymValue(String domainId,
                              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