Package com.ibm.di.connector.maximo.core
Class MxConnFunctions
- java.lang.Object
-
- com.ibm.di.connector.maximo.core.MxConnFunctions
-
public final class MxConnFunctions extends java.lang.ObjectThis class provides utility functions that can be used inside scripts.- Since:
- 7.1
-
-
Constructor Summary
Constructors Constructor Description MxConnFunctions(MxConnConfiguration cfg, Log log)Constructs aMxConnFunctions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetSynonymKey(java.lang.String domainId, java.lang.String synonymValue)Returns the synonym key for a given value.java.lang.StringgetSynonymValue(java.lang.String domainId, java.lang.String synonymKey)Returns the synonym value for a given key.
-
-
-
Constructor Detail
-
MxConnFunctions
public MxConnFunctions(MxConnConfiguration cfg, Log log)
Constructs aMxConnFunctions.- Parameters:
cfg- connector configuration object
-
-
Method Detail
-
getSynonymKey
public java.lang.String getSynonymKey(java.lang.String domainId, java.lang.String synonymValue) throws MxConnectorExceptionReturns the synonym key for a given value.- Parameters:
domainId- domain IDsynonymValue- value associated with the synonym key- Returns:
- synonym key for a given value or
nullif 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 MxConnectorExceptionReturns the synonym value for a given key.- Parameters:
domainId- domain IDsynonymKey- key associated with the synonym value- Returns:
- synonym value for a given key or
nullif the domain ID does not exist - Throws:
MxConnectorException- if it is not possible obtain the synonym domain from Maximo
-
-