Class SplibGeneral2FormsService<F1 extends SplibGeneralForm, F2 extends SplibGeneralForm>

java.lang.Object
jp.ecuacion.splib.web.service.SplibGeneralService
jp.ecuacion.splib.web.service.SplibGeneral2FormsService<F1,F2>
Type Parameters:
F1 - SplibGeneralForm
F2 - SplibGeneralForm
Direct Known Subclasses:
SplibGeneral2FormsDoNothingService, SplibSearchListService

public abstract class SplibGeneral2FormsService<F1 extends SplibGeneralForm, F2 extends SplibGeneralForm> extends SplibGeneralService
Is the abstract general service with 2 Forms.
  • Constructor Details

    • SplibGeneral2FormsService

      public SplibGeneral2FormsService()
  • Method Details

    • prepareForm

      public void prepareForm(List<SplibGeneralForm> allFormList, org.springframework.security.core.userdetails.UserDetails loginUser)
      Description copied from class: SplibGeneralService
      Puts data needed to display a page.

      It's called from controllers and SplibExceptionHandler right 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:
      prepareForm in class SplibGeneralService
      Parameters:
      allFormList - a list of forms
      loginUser - UserDetails
    • prepareForm

      public abstract void prepareForm(F1 form1, F2 form2, org.springframework.security.core.userdetails.UserDetails loginUser)
      Prepares form.

      This is called in addition to showing normal pages, after occuring AppException and right before showing the same page with error messages.
      In this case the input values are stored in Model, but the other values like selections of dropdowns are not.
      This method prepares those data.

      Parameters:
      form1 - form
      form2 - form
      loginUser - loginUser
    • page

      public abstract void page(F1 form1, F2 form2, org.springframework.security.core.userdetails.UserDetails loginUser) throws Exception
      Prepares form for showing page.
      Parameters:
      form1 - form
      form2 - form
      loginUser - loginUser
      Throws:
      Exception