This event occurs when the runtime settings of a module have changed. You can retrieve the names, old and new values of the changed settings, and act accordingly. For example, if member permissions for a document list have changed, you can update permissions in the KM backend.
To register for these events, you need to create a property com.sap.workspaces.module.metadata.extension~settings in the portalapp.xml , for example:
<property name="com.sap.workspaces.module.metadata.extension~settings" value="prt_service:com.yourname.portal.workspaces.modules.MyExtensionService"/>
The following example illustrates how to retrieve the old and new values of a changed setting, and perform an appropriate action:
public void onChangeSettings(IModuleContext moduleContext, ChangedSetting[] changedSettings) throws ModuleLifecycleException { ChangedSetting changedSetting = changedSettings[0]; // Retrieve the key of the changed setting String key = changedSetting.getKey(); // Retrieve the old value of the changed setting String oldValue = changedSetting.getOldValue(); // Retrieve the new value of the changed setting String newValue = changedSetting.getNewValue(); // Perform an action }