Class SimpleCalloutInformationProvider
- java.lang.Object
-
- org.openbravo.erpCommon.ad_callouts.SimpleCalloutInformationProvider
-
- All Implemented Interfaces:
CalloutInformationProvider
public class SimpleCalloutInformationProvider extends Object implements CalloutInformationProvider
SimpleCalloutInformationProvider provides the information that is used to populate the messages, comboEntries,etc in the FIC. This information is updated by a SimpleCallout.- Author:
- inigo.sanchez
-
-
Constructor Summary
Constructors Constructor Description SimpleCalloutInformationProvider(org.codehaus.jettison.json.JSONObject calloutResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCurrentElementName()
Retrieves the name of the current element to take into account into the FIC response.Object
getCurrentElementValue(Object element)
Retrieves the value of the current parameter allocated inside element to take into account into the FIC response.Object
getNextElement()
Retrieves the next element of the collection to manage all values updated by callouts.Boolean
isComboData(Object element)
This method checks if an object represents a combo data to apply a particular parser operations.void
manageComboData(Map<String,org.codehaus.jettison.json.JSONObject> columnValues, List<String> dynamicCols, List<String> changedCols, RequestContext request, Object element, Column col, String colIdent)
This method allows to implement a particular mechanism for managing combo data generated by callouts.
-
-
-
Method Detail
-
getCurrentElementName
public String getCurrentElementName()
Description copied from interface:CalloutInformationProvider
Retrieves the name of the current element to take into account into the FIC response.- Specified by:
getCurrentElementName
in interfaceCalloutInformationProvider
-
getCurrentElementValue
public Object getCurrentElementValue(Object element)
Description copied from interface:CalloutInformationProvider
Retrieves the value of the current parameter allocated inside element to take into account into the FIC response.- Specified by:
getCurrentElementValue
in interfaceCalloutInformationProvider
-
getNextElement
public Object getNextElement()
Description copied from interface:CalloutInformationProvider
Retrieves the next element of the collection to manage all values updated by callouts.- Specified by:
getNextElement
in interfaceCalloutInformationProvider
-
isComboData
public Boolean isComboData(Object element)
Description copied from interface:CalloutInformationProvider
This method checks if an object represents a combo data to apply a particular parser operations.- Specified by:
isComboData
in interfaceCalloutInformationProvider
- Returns:
- true if values represents a combo data.
-
manageComboData
public void manageComboData(Map<String,org.codehaus.jettison.json.JSONObject> columnValues, List<String> dynamicCols, List<String> changedCols, RequestContext request, Object element, Column col, String colIdent) throws org.codehaus.jettison.json.JSONException
Description copied from interface:CalloutInformationProvider
This method allows to implement a particular mechanism for managing combo data generated by callouts.- Specified by:
manageComboData
in interfaceCalloutInformationProvider
- Throws:
org.codehaus.jettison.json.JSONException
-
-