Class QuickSearch

java.lang.Object
webwork.action.ActionSupport
All Implemented Interfaces:
ErrorCollection, I18nHelper, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class QuickSearch extends ProjectActionSupport
See Also:
  • Field Details

    • searchString

      public String searchString
  • Constructor Details

    • QuickSearch

      public QuickSearch(ProjectManager projectManager, QueryCreator queryCreator, PermissionManager permissionManager, com.atlassian.event.api.EventPublisher eventPublisher)
    • QuickSearch

      public QuickSearch(QueryCreator queryCreator, com.atlassian.event.api.EventPublisher eventPublisher)
  • Method Details

    • doExecute

      protected String doExecute() throws Exception
      Overrides:
      doExecute in class webwork.action.ActionSupport
      Throws:
      Exception
    • sendInternalRedirect

      protected void sendInternalRedirect(String redirectLocation) throws jakarta.servlet.ServletException, IOException
      Throws:
      jakarta.servlet.ServletException
      IOException
    • createQuery

      protected String createQuery(String searchString)
    • getKey

      public String getKey() throws Exception
      Get the key using various lookup mechanisms.
      • If the key is a valid project (irrespective of the number), then return it
      • If the key is a number - return the current project key + number, or if no project is found - return the normal number
      • Else return null.
      Throws:
      Exception
    • setSearchString

      public void setSearchString(String searchString)