Class OfferPickProductCategoryActionHandler
- java.lang.Object
-
- org.openbravo.client.kernel.BaseActionHandler
-
- org.openbravo.client.application.process.BaseProcessActionHandler
-
- org.openbravo.common.actionhandler.OfferPickAndExecBaseActionHandler
-
- org.openbravo.common.actionhandler.OfferPickProductCategoryActionHandler
-
- All Implemented Interfaces:
ActionHandler
public class OfferPickProductCategoryActionHandler extends OfferPickAndExecBaseActionHandler
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.application.process.BaseProcessActionHandler
PARAM_FILE_CONTENT, PARAM_FILE_NAME, PARAM_FILE_SIZE, PARAM_MULTIPART_VALUES
-
-
Constructor Summary
Constructors Constructor Description OfferPickProductCategoryActionHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doPickAndExecute(String offerId, PriceAdjustment priceAdjustment, Client client, Organization org, org.codehaus.jettison.json.JSONArray selectedLines)
static Set<String>
getAllChildProductCategories(org.codehaus.jettison.json.JSONArray selectedLines)
Return all child tree of selected product categoriesprotected String
getJSONName()
-
Methods inherited from class org.openbravo.common.actionhandler.OfferPickAndExecBaseActionHandler
doExecute
-
Methods inherited from class org.openbravo.client.application.process.BaseProcessActionHandler
execute, extractParametersFromRequest, extractRequestContent, fixRequestMap, getResponseBuilder, hasAccess
-
Methods inherited from class org.openbravo.client.kernel.BaseActionHandler
execute, fixRequestMap, writeResponse
-
-
-
-
Method Detail
-
doPickAndExecute
protected void doPickAndExecute(String offerId, PriceAdjustment priceAdjustment, Client client, Organization org, org.codehaus.jettison.json.JSONArray selectedLines) throws org.codehaus.jettison.json.JSONException
- Specified by:
doPickAndExecute
in classOfferPickAndExecBaseActionHandler
- Throws:
org.codehaus.jettison.json.JSONException
-
getAllChildProductCategories
public static Set<String> getAllChildProductCategories(org.codehaus.jettison.json.JSONArray selectedLines) throws org.codehaus.jettison.json.JSONException
Return all child tree of selected product categories- Parameters:
selectedLines
- The product categories objects in JSON format. Each JSON object must have at least the property "id"- Returns:
- List of the product category IDs
- Throws:
org.codehaus.jettison.json.JSONException
-
getJSONName
protected String getJSONName()
- Specified by:
getJSONName
in classOfferPickAndExecBaseActionHandler
-
-