Class ImagesActionHandler
- java.lang.Object
-
- org.openbravo.client.kernel.BaseActionHandler
-
- org.openbravo.client.application.window.ImagesActionHandler
-
- All Implemented Interfaces:
ActionHandler
,PortalAccessible
public class ImagesActionHandler extends BaseActionHandler implements PortalAccessible
This ActionHandler implements the DELETE and GETSIZE actions which are used by the ImageBLOB reference components in the OB3 windows. The DELETE action deletes an image from the database, and its reference from the referencing table The GETSIZE action gets the size of an image. If the image doesn't yet have size properties, it will create them and save them in the image object in the database. Also, it will compute the MIME type if it hasn't yet been computed
-
-
Constructor Summary
Constructors Constructor Description ImagesActionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.codehaus.jettison.json.JSONObject
execute(Map<String,Object> parameters, String content)
Needs to be implemented by a subclass.-
Methods inherited from class org.openbravo.client.kernel.BaseActionHandler
execute, extractParametersFromRequest, extractRequestContent, fixRequestMap, writeResponse
-
-
-
-
Method Detail
-
execute
protected org.codehaus.jettison.json.JSONObject execute(Map<String,Object> parameters, String content)
Description copied from class:BaseActionHandler
Needs to be implemented by a subclass.- Specified by:
execute
in classBaseActionHandler
- Parameters:
parameters
- the parameters obtained from the request. Note that the request object and the session object are also present in this map, resp. as the constantsKernelConstants.HTTP_REQUEST
andKernelConstants.HTTP_SESSION
.content
- the request content (if any)- Returns:
- the return should be a JSONObject, this is passed back to the caller on the client.
-
-