Description
It is sometimes necessary for the suspended attribute in DYN connectors to be mapped to values other than 0 or 1. That is, the DYN connectors may use True or False, Yes/No or Active/Inactive etc. A JCS converter can be used to convert the suspended attribute from values the connector can accept to values IM Provisioning Server can understand and vice versa. The conversion takes place in the JCS when the suspended attribute is modified.
*This solution assumes the reader has read the JCS Programming Guide and has a good understanding of DYN connectors. If this is not the case, it is recommended to read the JCS documentation such as the Programming and Implementation guides in order to understand the provided solution.
As an example, there is a DYN JDBC connector with a UserEnabled Field that is mapped to the eTSuspended Attribute.
The connector can only accept the values 'yes' or 'no' for the UserEnabled field. A JCS converter is implemented to convert the yes or no values to 1 and 0 and vice versa.
The first step is to add the boolValues and isStoreSymbolic metadata onto eTSuspended attribute in the metadata for the endpoint.
<bean class="com.ca.jcs.cfg.MetaPluginConfig">
<property name="pluginClass">
<value>com.ca.jcs.converter.meta.BoolPropertyConverter</value>
</property> ... add the following property values here ...
<property name="metadataPropNames">
<list>
<value>isStoreNumeric</value>
<value>isStoreSymbolic</value>
<value>boolValues</value>
</list>
</property>
These entries tell the JCS to load the Bool converter for attributes that have a metadata entry named "isStoreSymbolic" or "boolValues". i.e. the two metadata entries added to the eTSuspended attribute above.