Class SplibGeneral1FormService<F extends SplibGeneralForm>
java.lang.Object
jp.ecuacion.splib.web.service.SplibGeneralService
jp.ecuacion.splib.web.service.SplibGeneral1FormService<F>
- Type Parameters:
F- SplibGeneralForm
- Direct Known Subclasses:
SplibEditService, SplibGeneral1FormDoNothingService
public abstract class SplibGeneral1FormService<F extends SplibGeneralForm>
extends SplibGeneralService
Is the abstract general service with 1 Form.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidPrepares form for showing page.abstract voidprepareForm(F form, org.springframework.security.core.userdetails.UserDetails loginUser) Prepares form.voidprepareForm(List<SplibGeneralForm> allFormList, org.springframework.security.core.userdetails.UserDetails loginUser) Puts data needed to display a page.Methods inherited from class SplibGeneralService
getParams, throwWarning
-
Constructor Details
-
SplibGeneral1FormService
public SplibGeneral1FormService()
-
-
Method Details
-
prepareForm
public void prepareForm(List<SplibGeneralForm> allFormList, org.springframework.security.core.userdetails.UserDetails loginUser) Description copied from class:SplibGeneralServicePuts data needed to display a page.It's called from controllers and
SplibExceptionHandlerright before showing a page.
In SplibGeneralService no procedures are defined in it.
It's not an abstract method because the implementation of this method is not mandatory.- Overrides:
prepareFormin classSplibGeneralService- Parameters:
allFormList- a list of formsloginUser- UserDetails
-
prepareForm
public abstract void prepareForm(F form, org.springframework.security.core.userdetails.UserDetails loginUser) Prepares form.This is called in addition to showing normal pages, after occuring
AppExceptionand right before showing the same page with error messages.
In this case the input values are stored inModel, but the other values like selections of dropdowns are not.
This method prepares those data.- Parameters:
form- formloginUser- loginUser
-
page
-