Programmer's Guide > Interfaces > CMSAdapter interface > setUserData method
  
setUserData method
Stores some application data on the adapter. Any existing data for the same key is replaced by the new data. This method enables user interface or application code to associate named data with the adapter, which it can later retrieve by calling the getUserData method. User data is not saved between Arbortext Editor or Arbortext Publishing Engine sessions.
Some adapters may support additional arguments to certain methods by having the application call setUserData with a predefined key just before calling the method. The adapter documentation will describe any such additional arguments.
setUserData(key, data)
Parameters
Stringkey
Specifies the unique key used to identify the data.
Stringdata
Specifies the data to associate with the given key, or null to remove any existing data for the key.
Returns
void
Throws
CMSException
Raised for any error.