Class AdminSearchlistAction

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.searchlist.AdminSearchlistAction
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>

public class AdminSearchlistAction extends FessAdminAction
Admin action for Search List.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
    Web-specific implementation of SearchRenderData for rendering search results in the admin interface.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Total number of pages for pagination
    Total number of records found
    Ending record number for current page
    Current page number for pagination
    Starting record number for current page
    List of document items returned from search
    Search execution time in milliseconds
    boolean
    Flag indicating if there is a next page
    boolean
    Flag indicating if there is a previous page
    List of page numbers for pagination
    Number of results per page
    protected QueryHelper
    Helper for building and parsing search queries.
    protected jakarta.servlet.http.HttpServletRequest
    HTTP servlet request for accessing request parameters.
    static final String
    Role name for admin search list operations
    Client for interacting with the search engine.
    protected SearchHelper
    Helper for executing search operations.

    Fields inherited from class org.codelibs.fess.app.web.base.FessAdminAction

    crawlingConfigHelper, VIEW

    Fields inherited from class org.lastaflute.web.TypicalAction

    GLOBAL

    Fields 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
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.lastaflute.web.response.HtmlResponse
    Creates a new document in the search index.
    org.lastaflute.web.response.HtmlResponse
    Displays the form for creating a new document.
    org.lastaflute.web.response.HtmlResponse
    Deletes a single document from the search index.
    org.lastaflute.web.response.HtmlResponse
    Deletes all documents matching the current search query.
    protected org.lastaflute.web.response.HtmlResponse
    doMove(ListForm form, int move)
    Handles pagination movement logic.
    protected org.lastaflute.web.response.HtmlResponse
    Performs a search operation with the provided form data.
    org.lastaflute.web.response.HtmlResponse
    edit(EditForm form)
    Displays the form for editing an existing document.
    protected String
    Get the action role.
    static org.dbflute.optional.OptionalEntity<Map<String,Object>>
    Retrieves or creates a document entity based on the form data.
    org.lastaflute.web.response.HtmlResponse
    Displays the search list management index page.
    org.lastaflute.web.response.HtmlResponse
    move(ListForm form)
    Navigates to a specific page of search results.
    org.lastaflute.web.response.HtmlResponse
    next(ListForm form)
    Navigates to the next page of search results.
    org.lastaflute.web.response.HtmlResponse
    prev(ListForm form)
    Navigates to the previous page of search results.
    org.lastaflute.web.response.HtmlResponse
    Executes a search based on the provided search criteria.
    protected void
    setupHtmlData(org.lastaflute.web.ruts.process.ActionRuntime runtime)
    Sets up HTML data for admin pages.
    org.lastaflute.web.response.HtmlResponse
    Updates an existing document in the search index.
    static void
    validateFields(Map<String,Object> doc, Consumer<org.lastaflute.web.validation.VaMessenger<org.codelibs.fess.mylasta.action.FessMessages>> throwError)
    Validates document fields according to index field requirements.

    Methods 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, verifyTokenKeep

    Methods 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, toActionUrl

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.lastaflute.web.docs.LaActionDocs

    document0_Action, document2_OverridableSuperMethod, document3_InjectableLastaComponent, document4_InjectableQuickComponent, document8_WordDictionary

    Methods inherited from interface org.lastaflute.web.validation.LaValidatable

    throwValidationError, throwValidationErrorApi, validate, validateApi
  • Field Details

    • ROLE

      public static final String ROLE
      Role name for admin search list operations
      See Also:
    • searchEngineClient

      protected SearchEngineClient searchEngineClient
      Client for interacting with the search engine.
    • queryHelper

      protected QueryHelper queryHelper
      Helper for building and parsing search queries.
    • searchHelper

      protected SearchHelper searchHelper
      Helper for executing search operations.
    • request

      protected jakarta.servlet.http.HttpServletRequest request
      HTTP servlet request for accessing request parameters.
    • documentItems

      public List<Map<String,Object>> documentItems
      List of document items returned from search
    • pageSize

      public String pageSize
      Number of results per page
    • currentPageNumber

      public String currentPageNumber
      Current page number for pagination
    • allRecordCount

      public String allRecordCount
      Total number of records found
    • allPageCount

      public String allPageCount
      Total number of pages for pagination
    • existNextPage

      public boolean existNextPage
      Flag indicating if there is a next page
    • existPrevPage

      public boolean existPrevPage
      Flag indicating if there is a previous page
    • currentStartRecordNumber

      public String currentStartRecordNumber
      Starting record number for current page
    • currentEndRecordNumber

      public String currentEndRecordNumber
      Ending record number for current page
    • pageNumberList

      public List<String> pageNumberList
      List of page numbers for pagination
    • execTime

      public String execTime
      Search execution time in milliseconds
  • Constructor Details

    • AdminSearchlistAction

      public AdminSearchlistAction()
      Default constructor.
  • Method Details

    • setupHtmlData

      protected void setupHtmlData(org.lastaflute.web.ruts.process.ActionRuntime runtime)
      Description copied from class: FessAdminAction
      Sets up HTML data for admin pages.

      This method configures common data needed for admin pages including editable flags, user roles, and forum links.

      Overrides:
      setupHtmlData in class FessAdminAction
      Parameters:
      runtime - the action runtime context
    • getActionRole

      protected String getActionRole()
      Description copied from class: FessAdminAction
      Get the action role.
      Specified by:
      getActionRole in class FessAdminAction
      Returns:
      The action role.
    • index

      @Execute @Secured({"admin-searchlist","admin-searchlist-view"}) public org.lastaflute.web.response.HtmlResponse index(ListForm form)
      Displays the search list management index page.
      Parameters:
      form - the list form for filtering
      Returns:
      HTML response for the search list page
    • doSearch

      protected org.lastaflute.web.response.HtmlResponse doSearch(ListForm form)
      Performs a search operation with the provided form data.
      Parameters:
      form - the list form containing search criteria
      Returns:
      HTML response with search results
    • search

      @Execute @Secured({"admin-searchlist","admin-searchlist-view"}) public org.lastaflute.web.response.HtmlResponse search(ListForm form)
      Executes a search based on the provided search criteria.
      Parameters:
      form - the list form containing search criteria
      Returns:
      HTML response with search results
    • prev

      @Execute @Secured({"admin-searchlist","admin-searchlist-view"}) public org.lastaflute.web.response.HtmlResponse prev(ListForm form)
      Navigates to the previous page of search results.
      Parameters:
      form - the list form containing current search criteria
      Returns:
      HTML response with previous page results
    • next

      @Execute @Secured({"admin-searchlist","admin-searchlist-view"}) public org.lastaflute.web.response.HtmlResponse next(ListForm form)
      Navigates to the next page of search results.
      Parameters:
      form - the list form containing current search criteria
      Returns:
      HTML response with next page results
    • move

      @Execute @Secured({"admin-searchlist","admin-searchlist-view"}) public org.lastaflute.web.response.HtmlResponse move(ListForm form)
      Navigates to a specific page of search results.
      Parameters:
      form - the list form containing target page information
      Returns:
      HTML response with specified page results
    • doMove

      protected org.lastaflute.web.response.HtmlResponse doMove(ListForm form, int move)
      Handles pagination movement logic.
      Parameters:
      form - the list form containing current state
      move - the direction to move (-1 for previous, 0 for specific page, 1 for next)
      Returns:
      HTML response with moved page results
    • delete

      @Execute @Secured("admin-searchlist") public org.lastaflute.web.response.HtmlResponse delete(DeleteForm form)
      Deletes a single document from the search index.
      Parameters:
      form - the delete form containing document ID
      Returns:
      HTML response redirecting to the list page
    • deleteall

      @Execute @Secured({"admin-searchlist","admin-searchlist-view"}) public org.lastaflute.web.response.HtmlResponse deleteall(ListForm form)
      Deletes all documents matching the current search query.
      Parameters:
      form - the list form containing search criteria
      Returns:
      HTML response redirecting to the list page
    • createnew

      @Execute @Secured("admin-searchlist") public org.lastaflute.web.response.HtmlResponse createnew(CreateForm form)
      Displays the form for creating a new document.
      Parameters:
      form - the create form
      Returns:
      HTML response for the document creation form
    • edit

      @Execute @Secured("admin-searchlist") public org.lastaflute.web.response.HtmlResponse edit(EditForm form)
      Displays the form for editing an existing document.
      Parameters:
      form - the edit form containing document ID
      Returns:
      HTML response for the document edit form
    • create

      @Execute @Secured("admin-searchlist") public org.lastaflute.web.response.HtmlResponse create(CreateForm form)
      Creates a new document in the search index.
      Parameters:
      form - the create form containing document data
      Returns:
      HTML response redirecting to the list page after creation
    • update

      @Execute @Secured("admin-searchlist") public org.lastaflute.web.response.HtmlResponse update(EditForm form)
      Updates an existing document in the search index.
      Parameters:
      form - the edit form containing updated document data
      Returns:
      HTML response redirecting to the search results after update
    • validateFields

      public static void validateFields(Map<String,Object> doc, Consumer<org.lastaflute.web.validation.VaMessenger<org.codelibs.fess.mylasta.action.FessMessages>> throwError)
      Validates document fields according to index field requirements.
      Parameters:
      doc - the document to validate
      throwError - consumer to handle validation errors
    • getDoc

      public static org.dbflute.optional.OptionalEntity<Map<String,Object>> getDoc(CreateForm form)
      Retrieves or creates a document entity based on the form data.
      Parameters:
      form - the form containing document information
      Returns:
      optional entity containing the document data, or empty if not found