Module jp.ecuacion.splib.web
Package jp.ecuacion.splib.web.controller
Class SplibSearchListController<FST extends SplibSearchForm,FLT extends SplibListForm<?>,S extends SplibSearchListService<FST,FLT>>
java.lang.Object
jp.ecuacion.splib.web.controller.SplibBaseController
jp.ecuacion.splib.web.controller.SplibGeneralController<S>
jp.ecuacion.splib.web.controller.SplibGeneral2FormsController<FST,FLT,S>
jp.ecuacion.splib.web.controller.SplibSearchListController<FST,FLT,S>
public abstract class SplibSearchListController<FST extends SplibSearchForm,FLT extends SplibListForm<?>,S extends SplibSearchListService<FST,FLT>>
extends SplibGeneral2FormsController<FST,FLT,S>
-
Nested Class Summary
Nested classes/interfaces inherited from class jp.ecuacion.splib.web.controller.SplibGeneralController
SplibGeneralController.ControllerContext, SplibGeneralController.PrepareSettings -
Field Summary
Fields inherited from class jp.ecuacion.splib.web.controller.SplibGeneralController
context, prepareSettings, redirectUrlOnAppExceptionBean, rolesAndAuthoritiesBean, serviceListFields inherited from class jp.ecuacion.splib.web.controller.SplibBaseController
request -
Constructor Summary
ConstructorsConstructorDescriptionSplibSearchListController(String function) SplibSearchListController(String function, SplibGeneralController.ControllerContext settings) -
Method Summary
Modifier and TypeMethodDescriptiondelete(org.springframework.ui.Model model, FST searchForm, FLT listForm, org.springframework.security.core.userdetails.UserDetails loginUser) 処理成功時redirectをする場合のredirect先subFunctionのdefault。protected FSTgetProperSearchForm(org.springframework.ui.Model model, FST searchForm) page(org.springframework.ui.Model model, FST searchForm, FLT listForm, org.springframework.security.core.userdetails.UserDetails loginUser) listFormはparameterを受け取るわけではないが、instance生成のため引数に付加。search(org.springframework.ui.Model model, FST searchForm, FLT listForm, org.springframework.security.core.userdetails.UserDetails loginUser) 本来はpage()で直接受けたいが、1 methodに複数のGetMappingを設定できないため別メソッドとした。searchAgain(org.springframework.ui.Model model, FST searchForm, org.springframework.security.core.userdetails.UserDetails loginUser, FLT listForm) 本来はpage()で直接受けたいが、1 methodに複数のGetMappingを設定できないため別メソッドとした。searchConditionClear(org.springframework.ui.Model model, FST searchForm, FLT listForm, org.springframework.security.core.userdetails.UserDetails loginUser) showInsertForm(org.springframework.ui.Model model, org.springframework.security.core.userdetails.UserDetails loginUser) showUpdateForm(org.springframework.ui.Model model, org.springframework.security.core.userdetails.UserDetails loginUser) submitOnChangeToRefresh(org.springframework.ui.Model model, FST searchForm, FLT listForm, org.springframework.security.core.userdetails.UserDetails loginUser) 基本的にはSearch側の項目で使用すると想定されるため、overrideの引数としてはSearchForm側を渡しておく。Methods inherited from class jp.ecuacion.splib.web.controller.SplibGeneralController
getDefaultHtmlFileName, getDefaultPageOnAppException, getDefaultPageOnSuccess, getDefaultSubFunctionOnAppException, getFunction, getPrepareSettings, getRedirectUrlOnAppExceptionBean, getReturnStringOnSuccess, getReturnStringOnSuccess, getReturnStringToShowPage, getReturnStringToShowPage, getRootRecordName, getService, getSubFunction, newContext, prepare, prepare, prepare, prepare, prepareForForwardAndGetPath, prepareForForwardAndGetPath, prepareForRedirectOrForwardAndGetPath, prepareForSuccessRedirectAndGetPath, prepareForSuccessRedirectAndGetPath, throw404, transactionTokenCheckMethods inherited from class jp.ecuacion.splib.web.controller.SplibBaseController
initBinder
-
Constructor Details
-
SplibSearchListController
-
SplibSearchListController
public SplibSearchListController(@Nonnull String function, SplibGeneralController.ControllerContext settings)
-
-
Method Details
-
getDefaultSubFunctionOnSuccess
Description copied from class:SplibGeneralController処理成功時redirectをする場合のredirect先subFunctionのdefault。- Overrides:
getDefaultSubFunctionOnSuccessin classSplibGeneralController<S extends SplibSearchListService<FST,FLT>>
-
submitOnChangeToRefresh
public String submitOnChangeToRefresh(org.springframework.ui.Model model, FST searchForm, FLT listForm, @AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails loginUser) throws Exception 基本的にはSearch側の項目で使用すると想定されるため、overrideの引数としてはSearchForm側を渡しておく。- Overrides:
submitOnChangeToRefreshin classSplibGeneral2FormsController<FST extends SplibSearchForm,FLT extends SplibListForm<?>, S extends SplibSearchListService<FST, FLT>> - Throws:
Exception
-
page
public String page(org.springframework.ui.Model model, FST searchForm, FLT listForm, @AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails loginUser) throws Exception listFormはparameterを受け取るわけではないが、instance生成のため引数に付加。- Overrides:
pagein classSplibGeneral2FormsController<FST extends SplibSearchForm,FLT extends SplibListForm<?>, S extends SplibSearchListService<FST, FLT>> - Throws:
Exception
-
search
@GetMapping(value="action", params="search") public String search(org.springframework.ui.Model model, FST searchForm, FLT listForm, @AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails loginUser) throws Exception 本来はpage()で直接受けたいが、1 methodに複数のGetMappingを設定できないため別メソッドとした。- Throws:
Exception
-
searchAgain
@GetMapping(value="action", params="action=searchAgain") public String searchAgain(org.springframework.ui.Model model, FST searchForm, @AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails loginUser, FLT listForm) throws Exception 本来はpage()で直接受けたいが、1 methodに複数のGetMappingを設定できないため別メソッドとした。- Throws:
Exception
-
getProperSearchForm
-
searchConditionClear
@GetMapping(value="action", params="conditionClear") public String searchConditionClear(org.springframework.ui.Model model, FST searchForm, FLT listForm, @AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails loginUser) throws Exception - Throws:
Exception
-
delete
@PostMapping(value="action", params="delete") public String delete(org.springframework.ui.Model model, FST searchForm, FLT listForm, @AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails loginUser) throws Exception - Throws:
Exception
-
showInsertForm
@PostMapping(value="action", params="showInsertForm") public String showInsertForm(org.springframework.ui.Model model, @AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails loginUser) throws InputValidationException, jp.ecuacion.lib.core.exception.checked.AppException - Throws:
InputValidationExceptionjp.ecuacion.lib.core.exception.checked.AppException
-
showUpdateForm
@PostMapping(value="action", params="showUpdateForm") public String showUpdateForm(org.springframework.ui.Model model, @AuthenticationPrincipal org.springframework.security.core.userdetails.UserDetails loginUser) throws InputValidationException, jp.ecuacion.lib.core.exception.checked.AppException - Throws:
InputValidationExceptionjp.ecuacion.lib.core.exception.checked.AppException
-