Class RelevantCharacteristicConfigurationChecker
- java.lang.Object
-
- org.openbravo.client.kernel.reference.materialmgmt.RelevantCharacteristicConfigurationChecker
-
- All Implemented Interfaces:
ExtraWindowSettingsInjector
public class RelevantCharacteristicConfigurationChecker extends Object implements ExtraWindowSettingsInjector
Checks if there are relevant characteristic property fields on a window which make reference to relevant characteristics that are not linked to a product characteristic. If detected, it shows a warning message when the window is opened in order to inform the user about the missing configuration.
-
-
Constructor Summary
Constructors Constructor Description RelevantCharacteristicConfigurationChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
doAddSetting(Map<String,Object> parameters, org.codehaus.jettison.json.JSONObject json)
This method is executed in theexecute
method.
-
-
-
Method Detail
-
doAddSetting
public Map<String,Object> doAddSetting(Map<String,Object> parameters, org.codehaus.jettison.json.JSONObject json) throws OBException
Description copied from interface:ExtraWindowSettingsInjector
This method is executed in theexecute
method. Using the WindowSettingsActionHandler.EXTRA_CALLBACK key it is possible to return a List<String> with JavaScript functions that are executed on the callback of the WindowSettingsActionHandler execution. These functions only receive the "data" object as argument. All other keys are included in a "extraSettings" JavaScript object in the response "data" object.- Specified by:
doAddSetting
in interfaceExtraWindowSettingsInjector
- Parameters:
parameters
- the parameters Map of the current WindowSettingsActionHandler execution.json
- the JSONObject instance of the response of the WindowSettingsActionHandler.- Returns:
- A Map<String, Object> with all the extra settings desired to be included in the WindowSettingsActionHandler response.
- Throws:
OBException
-
-