Class ContentNameSearchAction

java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
Beanable, WebInterface, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.Validateable

@Deprecated public class ContentNameSearchAction extends ConfluenceActionSupport implements Beanable
Deprecated.
since 5.2. Instead please use the REST endpoint that is provided by the 'Confluence QuickNav' Bundled Plugin. Please use /rest/quicknav/1/search instead. It accepts the exact same arguments and is thus API compatible with this class. You should be able to swap them out directly.

An action that will take a query String from the front end and apply it as a search across the 'universal title' field within the Confluence search index.

See Also:
  • Constructor Details

    • ContentNameSearchAction

      public ContentNameSearchAction()
      Deprecated.
  • Method Details

    • execute

      public String execute() throws Exception
      Deprecated.

      Perform the search and create the ContentNameSearchResult. The individual ContentNameMatch objects within the result will be ordered and grouped, so you can count on getting results ordered like -

      • all page matches
      • all blog matches
      • all attachment matches
      • all user matches
      • all space matches

      If a particular category has no matches then it will not be included in the result.

      Specified by:
      execute in interface org.apache.struts2.action.Action
      Overrides:
      execute in class org.apache.struts2.ActionSupport
      Throws:
      Exception
    • setQuery

      public void setQuery(String query)
      Deprecated.
    • setType

      public void setType(String[] types)
      Deprecated.
    • setSpaceKey

      public void setSpaceKey(String spaceKey)
      Deprecated.
    • setMaxPerCategory

      public void setMaxPerCategory(int maxPerCategory)
      Deprecated.
    • setLimit

      public void setLimit(int limit)
      Deprecated.
    • getResult

      public ContentNameSearchResult getResult()
      Deprecated.
    • getBean

      public Object getBean()
      Deprecated.
      Specified by:
      getBean in interface Beanable
      Returns:
      the result bean (ContentNameSearchResult) on successful execution of this action. If the action has not executed then the return value will be null.
    • withServletRequest

      @Deprecated(forRemoval=true) public void withServletRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 9.1, no replacement.
    • setContentNameSearchService

      public void setContentNameSearchService(ContentNameSearchService contentNameSearchService)
      Deprecated.