C.2 Migration from Old Versions (version 11-50 or earlier)
- Organization of this subsection
(1) Procedure for migrating plugins developed in old versions
With Navigation Platform version 12-00 or later, new specifications are adopted for the cache values for radio buttons and check boxes. For this reason, the modification of the implementation is necessary for the I/O Plugins and Suspend/Resume Plugins which have been developed with version 11-50 or earlier and which acquire a cache value from either a radio button or check box.
You can use these plugins in Navigation Platform by migrating them as follows:
-
Review processing that uses the inputFromNode method of IIoPluginController (server processing implementation interface) for plugins developed with version 11-50 or earlier and make the following modification:
Modify the processing that acquires a cache value from the ucnp.current.params.map key stored in the param parameter of the inputFromNode method so that the getParamValue method of ParamConvertUtil (I/O parameter conversion utility class) is used. The value after the linefeed code is the value acquired with version 11-50 or earlier.
- Before change
Map<String, String> input = (Map<String, String>) param.get("ucnp.current.params.map"); String value = input.get("checkbox1");- After change
String value = ParamConvertUtil.getParamValue(param, "checkbox1");