org.openmobileis.services.MainSubEditService Class Reference

Inheritance diagram for org.openmobileis.services.MainSubEditService:

org.openmobileis.services.SimpleEditService org.openmobileis.services.TemplateService org.openmobileis.services.EditService org.openmobileis.services.Service List of all members.

Detailed Description

Use for a MultiEdition.

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 MainSubEditService.java.

Public Member Functions

 MainSubEditService ()
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).


Member Function Documentation

String org.openmobileis.services.MainSubEditService.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 MainSubEditService.java.

References org.openmobileis.services.SimpleEditService.getErrorSessionAttributName().

boolean org.openmobileis.services.MainSubEditService.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.

Returns:
true to store object false to force edit from edition.

Reimplemented from org.openmobileis.services.SimpleEditService.

Definition at line 96 of file MainSubEditService.java.

References org.openmobileis.services.EditService.hasSessionData(), and org.openmobileis.services.EditService.removeSessionData().


The documentation for this class was generated from the following file:
Generated on Mon Dec 4 11:03:40 2006 for OpenMobileIS by  doxygen 1.5.1-p1