I need to iterate and list all the adapters installed in the IS.
I have used the following code to get list of adapters
IData input = Service.doInvoke(“pub.art”,“listRegisteredAdapters”,pipeline);
However I don’t know how to iterate these list and what kind object will be in list.
The pub.art:listRegisteredAdapters java service returns an Array of IData objects with parameters adapterTypeName and adapterDisplayName.
if I remember correctly, below are the steps to retrieve the desired values.
listRegisteredAdapters returns an IData object.
Create a cursor out of it.
retrieve the IData array using IDataUtil.getIDataArray(IDataCursor idc, java.lang.String key). key will be “registeredAdapterList”.
iterate through the IDataArray
4.1 get cursor for the IData
4.2 use IDataUtil.getString(IDataCursor idc, java.lang.String key) to retrieve the values for the keys adapterTypeName and adapterDisplayName
Note: I have the working code in my personal laptop. I will share that with you shortly.