The MainSubEditService is the main Edit of the multi edition. The other edit service must be SubEditService
The MainSubEditService implementation is the same that the implementation of the SubEditService or the SimpleEditService. It's transparency for the programmer.
author : Manuel Gomez
Definition at line 52 of file MultiEditService.java.
Public Member Functions | |
String | runTemplate (HttpServletRequest req, HttpServletResponse res, TemplateModelRoot templateData) throws ServletException, IOException |
Extends this method to develop specific process. | |
Protected Member Functions | |
boolean | isStoreMode (HttpServletRequest req) |
return true if this request is use to store object in db (default mode). | |
boolean | isRemoveSession (HttpServletRequest req) |
Call after the storesessionObject. |
String org.openmobileis.services.MultiEditService.runTemplate | ( | HttpServletRequest | req, | |
HttpServletResponse | res, | |||
TemplateModelRoot | templateData | |||
) | throws ServletException, IOException [virtual] |
Extends this method to develop specific process.
Return the template relatif path to be use to process TemplateModel.
Reimplemented from org.openmobileis.services.SimpleEditService.
Definition at line 58 of file MultiEditService.java.
boolean org.openmobileis.services.MultiEditService.isStoreMode | ( | HttpServletRequest | req | ) | [protected] |
return true if this request is use to store object in db (default mode).
To force form edition return false. The storeSessionObjectInDB is not call.
Reimplemented from org.openmobileis.services.SimpleEditService.
Definition at line 96 of file MultiEditService.java.
References org.openmobileis.services.EditService.hasSessionData(), and org.openmobileis.services.EditService.removeSessionData().
boolean org.openmobileis.services.MultiEditService.isRemoveSession | ( | HttpServletRequest | req | ) | [protected] |
Call after the storesessionObject.
Return true if the session must be remove, false otherwise.
req |
Reimplemented from org.openmobileis.services.SimpleEditService.
Definition at line 113 of file MultiEditService.java.