Class AdminDictStemmeroverrideAction
java.lang.Object
org.lastaflute.web.LastaAction
org.lastaflute.web.TypicalAction
org.codelibs.fess.app.web.base.FessBaseAction
org.codelibs.fess.app.web.base.FessAdminAction
org.codelibs.fess.app.web.admin.dict.stemmeroverride.AdminDictStemmeroverrideAction
- All Implemented Interfaces:
org.codelibs.fess.mylasta.action.FessHtmlPath,org.lastaflute.web.docs.LaActionDocs,org.lastaflute.web.hook.ActionHook,org.lastaflute.web.validation.LaValidatable<org.codelibs.fess.mylasta.action.FessMessages>
Admin action for Stemmer Override management.
-
Field Summary
FieldsFields inherited from class org.codelibs.fess.app.web.base.FessAdminAction
crawlingConfigHelper, VIEWFields inherited from class org.codelibs.fess.app.web.base.FessBaseAction
accessTokenHelper, activityHelper, APP_TYPE, fessConfig, fessLoginAssist, requestManager, responseManager, sessionManager, systemHelper, timeManager, USER_TYPE, viewHelperFields inherited from class org.lastaflute.web.TypicalAction
GLOBALFields inherited from interface org.codelibs.fess.mylasta.action.FessHtmlPath
path_AdminAccesstoken_AdminAccesstokenDetailsJsp, path_AdminAccesstoken_AdminAccesstokenEditJsp, path_AdminAccesstoken_AdminAccesstokenJsp, path_AdminBackup_AdminBackupJsp, path_AdminBadword_AdminBadwordDetailsJsp, path_AdminBadword_AdminBadwordDownloadJsp, path_AdminBadword_AdminBadwordEditJsp, path_AdminBadword_AdminBadwordJsp, path_AdminBadword_AdminBadwordUploadJsp, path_AdminBoostdoc_AdminBoostdocDetailsJsp, path_AdminBoostdoc_AdminBoostdocEditJsp, path_AdminBoostdoc_AdminBoostdocJsp, path_AdminCrawlinginfo_AdminCrawlinginfoDetailsJsp, path_AdminCrawlinginfo_AdminCrawlinginfoJsp, path_AdminDashboard_AdminDashboardJsp, path_AdminDataconfig_AdminDataconfigDetailsJsp, path_AdminDataconfig_AdminDataconfigEditJsp, path_AdminDataconfig_AdminDataconfigJsp, path_AdminDesign_AdminDesignEditJsp, path_AdminDesign_AdminDesignJsp, path_AdminDict_AdminDictJsp, path_AdminDictKuromoji_AdminDictKuromojiDetailsJsp, path_AdminDictKuromoji_AdminDictKuromojiDownloadJsp, path_AdminDictKuromoji_AdminDictKuromojiEditJsp, path_AdminDictKuromoji_AdminDictKuromojiJsp, path_AdminDictKuromoji_AdminDictKuromojiUploadJsp, path_AdminDictMapping_AdminDictMappingDetailsJsp, path_AdminDictMapping_AdminDictMappingDownloadJsp, path_AdminDictMapping_AdminDictMappingEditJsp, path_AdminDictMapping_AdminDictMappingJsp, path_AdminDictMapping_AdminDictMappingUploadJsp, path_AdminDictProtwords_AdminDictProtwordsDetailsJsp, path_AdminDictProtwords_AdminDictProtwordsDownloadJsp, path_AdminDictProtwords_AdminDictProtwordsEditJsp, path_AdminDictProtwords_AdminDictProtwordsJsp, path_AdminDictProtwords_AdminDictProtwordsUploadJsp, path_AdminDictStemmeroverride_AdminDictStemmeroverrideDetailsJsp, path_AdminDictStemmeroverride_AdminDictStemmeroverrideDownloadJsp, path_AdminDictStemmeroverride_AdminDictStemmeroverrideEditJsp, path_AdminDictStemmeroverride_AdminDictStemmeroverrideJsp, path_AdminDictStemmeroverride_AdminDictStemmeroverrideUploadJsp, path_AdminDictStopwords_AdminDictStopwordsDetailsJsp, path_AdminDictStopwords_AdminDictStopwordsDownloadJsp, path_AdminDictStopwords_AdminDictStopwordsEditJsp, path_AdminDictStopwords_AdminDictStopwordsJsp, path_AdminDictStopwords_AdminDictStopwordsUploadJsp, path_AdminDictSynonym_AdminDictSynonymDetailsJsp, path_AdminDictSynonym_AdminDictSynonymDownloadJsp, path_AdminDictSynonym_AdminDictSynonymEditJsp, path_AdminDictSynonym_AdminDictSynonymJsp, path_AdminDictSynonym_AdminDictSynonymUploadJsp, path_AdminDuplicatehost_AdminDuplicatehostDetailsJsp, path_AdminDuplicatehost_AdminDuplicatehostEditJsp, path_AdminDuplicatehost_AdminDuplicatehostJsp, path_AdminElevateword_AdminElevatewordDetailsJsp, path_AdminElevateword_AdminElevatewordDownloadJsp, path_AdminElevateword_AdminElevatewordEditJsp, path_AdminElevateword_AdminElevatewordJsp, path_AdminElevateword_AdminElevatewordUploadJsp, path_AdminError_AdminErrorJsp, path_AdminFailureurl_AdminFailureurlDetailsJsp, path_AdminFailureurl_AdminFailureurlJsp, path_AdminFileauth_AdminFileauthDetailsJsp, path_AdminFileauth_AdminFileauthEditJsp, path_AdminFileauth_AdminFileauthJsp, path_AdminFileconfig_AdminFileconfigDetailsJsp, path_AdminFileconfig_AdminFileconfigEditJsp, path_AdminFileconfig_AdminFileconfigJsp, path_AdminGeneral_AdminGeneralJsp, path_AdminGroup_AdminGroupDetailsJsp, path_AdminGroup_AdminGroupEditJsp, path_AdminGroup_AdminGroupJsp, path_AdminJoblog_AdminJoblogDetailsJsp, path_AdminJoblog_AdminJoblogJsp, path_AdminKeymatch_AdminKeymatchDetailsJsp, path_AdminKeymatch_AdminKeymatchEditJsp, path_AdminKeymatch_AdminKeymatchJsp, path_AdminLabeltype_AdminLabeltypeDetailsJsp, path_AdminLabeltype_AdminLabeltypeEditJsp, path_AdminLabeltype_AdminLabeltypeJsp, path_AdminLog_AdminLogJsp, path_AdminMaintenance_AdminMaintenanceJsp, path_AdminPathmap_AdminPathmapDetailsJsp, path_AdminPathmap_AdminPathmapEditJsp, path_AdminPathmap_AdminPathmapJsp, path_AdminPlugin_AdminPluginInstallpluginJsp, path_AdminPlugin_AdminPluginJsp, path_AdminRelatedcontent_AdminRelatedcontentDetailsJsp, path_AdminRelatedcontent_AdminRelatedcontentEditJsp, path_AdminRelatedcontent_AdminRelatedcontentJsp, path_AdminRelatedquery_AdminRelatedqueryDetailsJsp, path_AdminRelatedquery_AdminRelatedqueryEditJsp, path_AdminRelatedquery_AdminRelatedqueryJsp, path_AdminReqheader_AdminReqheaderDetailsJsp, path_AdminReqheader_AdminReqheaderEditJsp, path_AdminReqheader_AdminReqheaderJsp, path_AdminRole_AdminRoleDetailsJsp, path_AdminRole_AdminRoleEditJsp, path_AdminRole_AdminRoleJsp, path_AdminScheduler_AdminSchedulerDetailsJsp, path_AdminScheduler_AdminSchedulerEditJsp, path_AdminScheduler_AdminSchedulerJsp, path_AdminSearchlist_AdminSearchlistEditJsp, path_AdminSearchlist_AdminSearchlistJsp, path_AdminSearchlog_AdminSearchlogDetailsJsp, path_AdminSearchlog_AdminSearchlogJsp, path_AdminSereq_AdminSereqJsp, path_AdminStorage_AdminStorageJsp, path_AdminStorage_AdminStorageTagEditJsp, path_AdminSuggest_AdminSuggestJsp, path_AdminSysteminfo_AdminSysteminfoJsp, path_AdminTheme_AdminThemeDetailsJsp, path_AdminTheme_AdminThemeJsp, path_AdminTheme_AdminThemeUploadJsp, path_AdminUser_AdminUserDetailsJsp, path_AdminUser_AdminUserEditJsp, path_AdminUser_AdminUserJsp, path_AdminWebauth_AdminWebauthDetailsJsp, path_AdminWebauth_AdminWebauthEditJsp, path_AdminWebauth_AdminWebauthJsp, path_AdminWebconfig_AdminWebconfigDetailsJsp, path_AdminWebconfig_AdminWebconfigEditJsp, path_AdminWebconfig_AdminWebconfigJsp, path_AdminWizard_AdminWizardConfigJsp, path_AdminWizard_AdminWizardJsp, path_AdminWizard_AdminWizardStartJsp, path_AdvanceJsp, path_Chat_ChatJsp, path_Error_BadRequestJsp, path_Error_BusyJsp, path_Error_ErrorJsp, path_Error_NotFoundJsp, path_Error_RedirectJsp, path_Error_SystemJsp, path_FooterJsp, path_HeaderJsp, path_HelpJsp, path_IndexJsp, path_Login_IndexJsp, path_Login_NewpasswordJsp, path_Profile_IndexJsp, path_SearchJsp, path_SearchNoResultJsp, path_SearchOptionsJsp, path_SearchResultsJsp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.lastaflute.web.response.HtmlResponseGet the HTML response for the dictionary index page.org.lastaflute.web.response.HtmlResponsecreate(CreateForm form) Create a stemmer override item.org.lastaflute.web.response.HtmlResponseShow the create new page.protected org.dbflute.optional.OptionalEntity<StemmerOverrideItem> createStemmerOverrideItem(CreateForm form, org.lastaflute.web.validation.VaErrorHook hook) Create a stemmer override item.static org.dbflute.optional.OptionalEntity<StemmerOverrideItem> createStemmerOverrideItem(FessBaseAction action, CreateForm form, org.lastaflute.web.validation.VaErrorHook hook) Get the stemmer override item.org.lastaflute.web.response.HtmlResponseDelete a stemmer override item from the dictionary.org.lastaflute.web.response.HtmlResponseDisplay detailed view of a specific stemmer override item.org.lastaflute.web.response.ActionResponsedownload(DownloadForm form) Download the stemmer override dictionary file.org.lastaflute.web.response.HtmlResponsedownloadpage(String dictId) Display the download page for stemmer override dictionary file.org.lastaflute.web.response.HtmlResponseDisplay the edit form for an existing stemmer override item.protected StringGet the action role.org.lastaflute.web.response.HtmlResponseindex(SearchForm form) Display the main index page for stemmer override dictionary management.org.lastaflute.web.response.HtmlResponselist(org.dbflute.optional.OptionalThing<Integer> pageNumber, SearchForm form) Display a paginated list of stemmer override items.org.lastaflute.web.response.HtmlResponsereset(SearchForm form) Reset the search criteria and pager to default state.org.lastaflute.web.response.HtmlResponsesearch(SearchForm form) Perform a search operation for stemmer override items.protected voidsearchPaging(org.lastaflute.web.response.render.RenderData data, SearchForm form) Populate render data with stemmer override items for pagination display.protected voidsetupHtmlData(org.lastaflute.web.ruts.process.ActionRuntime runtime) Sets up HTML data for admin pages.org.lastaflute.web.response.HtmlResponseUpdate an existing stemmer override item.org.lastaflute.web.response.HtmlResponseupload(UploadForm form) Upload a new stemmer override dictionary file.org.lastaflute.web.response.HtmlResponseuploadpage(String dictId) Display the upload page for stemmer override dictionary file.protected voidverifyCrudMode(int crudMode, int expectedMode, String dictId) Verify that the CRUD mode matches the expected mode.Methods inherited from class org.codelibs.fess.app.web.base.FessAdminAction
document1_CallableSuperMethod, encodePermissions, getServletContext, godHandPrologue, hookBefore, hookFinally, myLoginManager, superGodHandPrologue, validateFilePath, verifyCrudMode, writeMethods inherited from class org.codelibs.fess.app.web.base.FessBaseAction
buildThrowableMessage, copyBeanToBean, copyBeanToNewBean, copyMapToBean, createMessages, createValidator, getUserBean, godHandEpilogue, godHandMonologue, isCheckboxEnabled, myAppType, myUserType, newAccessContextArranger, saveError, saveInfoMethods inherited from class org.lastaflute.web.TypicalAction
calculateSqlExecutionCountLimit, createGodHandEpilogue, createGodHandMonologue, createGodHandPrologue, createGodHandResource, createTooManySqlOption, defineSqlExecutionCountDefaultLimit, filterApplicationExceptionMessageValues, handleApplicationException, myTokenGroupType, newEmbeddedMessageKeySupplier, newGodHandEpilogue, newGodHandMonologue, newGodHandPrologue, saveToken, throwVerifiedClientError, throwVerifiedIllegalTransition, verifyOrClientError, verifyOrIllegalTransition, verifyToken, verifyTokenKeepMethods inherited from class org.lastaflute.web.LastaAction
asHtml, asJson, assertArgumentNotNull, asStream, asXml, doCreateValidator, doForward, doRedirect, forward, forwardById, forwardByParam, forwardWith, hash, moreUrl, movedPermanently, myValidationGroups, newActionValidator, newHtmlResponseAsForward, newHtmlResponseAsForward, newHtmlResponseAsRedirect, newJsonResponse, newStreamResponse, newUrlChain, newXmlResponse, params, redirect, redirectById, redirectByParam, redirectWith, toActionUrl, toActionUrlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.lastaflute.web.docs.LaActionDocs
document0_Action, document2_OverridableSuperMethod, document3_InjectableLastaComponent, document4_InjectableQuickComponent, document8_WordDictionaryMethods inherited from interface org.lastaflute.web.validation.LaValidatable
throwValidationError, throwValidationErrorApi, validate, validateApi
-
Field Details
-
ROLE
The role for this action.- See Also:
-
-
Constructor Details
-
AdminDictStemmeroverrideAction
public AdminDictStemmeroverrideAction()Default constructor.
-
-
Method Details
-
setupHtmlData
protected void setupHtmlData(org.lastaflute.web.ruts.process.ActionRuntime runtime) Description copied from class:FessAdminActionSets up HTML data for admin pages.This method configures common data needed for admin pages including editable flags, user roles, and forum links.
- Overrides:
setupHtmlDatain classFessAdminAction- Parameters:
runtime- the action runtime context
-
getActionRole
Description copied from class:FessAdminActionGet the action role.- Specified by:
getActionRolein classFessAdminAction- Returns:
- The action role.
-
index
@Execute @Secured({"admin-dict","admin-dict-view"}) public org.lastaflute.web.response.HtmlResponse index(SearchForm form) Display the main index page for stemmer override dictionary management. Clears the pager and shows the initial search form.- Parameters:
form- The search form containing filter criteria- Returns:
- HTML response for the stemmer override index page
-
list
@Execute @Secured({"admin-dict","admin-dict-view"}) public org.lastaflute.web.response.HtmlResponse list(org.dbflute.optional.OptionalThing<Integer> pageNumber, SearchForm form) Display a paginated list of stemmer override items. Sets the current page number and shows the list with pagination.- Parameters:
pageNumber- Optional page number to display (0-based)form- The search form containing filter criteria- Returns:
- HTML response showing the stemmer override list
-
search
@Execute @Secured({"admin-dict","admin-dict-view"}) public org.lastaflute.web.response.HtmlResponse search(SearchForm form) Perform a search operation for stemmer override items. Updates the pager with search criteria and displays filtered results.- Parameters:
form- The search form containing search criteria- Returns:
- HTML response showing search results
-
reset
@Execute @Secured({"admin-dict","admin-dict-view"}) public org.lastaflute.web.response.HtmlResponse reset(SearchForm form) Reset the search criteria and pager to default state. Clears all filters and returns to the initial page view.- Parameters:
form- The search form to reset- Returns:
- HTML response showing the reset stemmer override list
-
searchPaging
Populate render data with stemmer override items for pagination display. Retrieves items based on search criteria and restores form data from pager.- Parameters:
data- The render data to populateform- The search form containing criteria
-
createnew
@Execute @Secured("admin-dict") public org.lastaflute.web.response.HtmlResponse createnew(String dictId) Show the create new page.- Parameters:
dictId- The dictionary ID.- Returns:
- The HTML response.
-
edit
Display the edit form for an existing stemmer override item. Loads the item data and switches to edit mode or details view based on current state.- Parameters:
form- The edit form containing item ID and CRUD mode- Returns:
- HTML response for the edit page or details page
-
details
@Execute @Secured({"admin-dict","admin-dict-view"}) public org.lastaflute.web.response.HtmlResponse details(String dictId, int crudMode, long id) Display detailed view of a specific stemmer override item. Shows read-only details of the selected item.- Parameters:
dictId- The dictionary IDcrudMode- The CRUD mode (should be DETAILS)id- The ID of the stemmer override item to display- Returns:
- HTML response showing item details
-
downloadpage
@Execute @Secured({"admin-dict","admin-dict-view"}) public org.lastaflute.web.response.HtmlResponse downloadpage(String dictId) Display the download page for stemmer override dictionary file. Shows the file path and provides download interface.- Parameters:
dictId- The dictionary ID to download- Returns:
- HTML response for the download page
-
download
@Execute @Secured({"admin-dict","admin-dict-view"}) public org.lastaflute.web.response.ActionResponse download(DownloadForm form) Download the stemmer override dictionary file. Streams the dictionary file as an octet-stream download.- Parameters:
form- The download form containing dictionary ID- Returns:
- Action response with file stream for download
-
uploadpage
@Execute @Secured("admin-dict") public org.lastaflute.web.response.HtmlResponse uploadpage(String dictId) Display the upload page for stemmer override dictionary file. Shows the current file path and provides upload interface.- Parameters:
dictId- The dictionary ID to upload to- Returns:
- HTML response for the upload page
-
upload
@Execute @Secured("admin-dict") public org.lastaflute.web.response.HtmlResponse upload(UploadForm form) Upload a new stemmer override dictionary file. Processes the uploaded file and updates the dictionary.- Parameters:
form- The upload form containing the file and dictionary ID- Returns:
- HTML response redirecting to the list page on success
-
create
@Execute @Secured("admin-dict") public org.lastaflute.web.response.HtmlResponse create(CreateForm form) Create a stemmer override item.- Parameters:
form- The create form.- Returns:
- The HTML response.
-
update
@Execute @Secured("admin-dict") public org.lastaflute.web.response.HtmlResponse update(EditForm form) Update an existing stemmer override item. Validates the form data and updates the item in the dictionary.- Parameters:
form- The edit form containing updated item data- Returns:
- HTML response redirecting to the list page on success
-
delete
@Execute @Secured("admin-dict") public org.lastaflute.web.response.HtmlResponse delete(EditForm form) Delete a stemmer override item from the dictionary. Removes the specified item and redirects to the list page.- Parameters:
form- The edit form containing the item ID to delete- Returns:
- HTML response redirecting to the list page on success
-
createStemmerOverrideItem
protected org.dbflute.optional.OptionalEntity<StemmerOverrideItem> createStemmerOverrideItem(CreateForm form, org.lastaflute.web.validation.VaErrorHook hook) Create a stemmer override item.- Parameters:
form- The create form.hook- The error hook.- Returns:
- An optional entity of a stemmer override item.
-
createStemmerOverrideItem
public static org.dbflute.optional.OptionalEntity<StemmerOverrideItem> createStemmerOverrideItem(FessBaseAction action, CreateForm form, org.lastaflute.web.validation.VaErrorHook hook) Get the stemmer override item.- Parameters:
action- The action.form- The create form.hook- The error hook.- Returns:
- The stemmer override item.
-
verifyCrudMode
Verify that the CRUD mode matches the expected mode. Throws validation error if modes don't match.- Parameters:
crudMode- The current CRUD modeexpectedMode- The expected CRUD modedictId- The dictionary ID for error context
-
asDictIndexHtml
protected org.lastaflute.web.response.HtmlResponse asDictIndexHtml()Get the HTML response for the dictionary index page.- Returns:
- The HTML response.
-