Class DefaultSearchErrorLookup

java.lang.Object
com.atlassian.jira.search.issue.DefaultSearchErrorLookup
All Implemented Interfaces:
InitializingComponent, SearchErrorLookup

public class DefaultSearchErrorLookup extends Object implements SearchErrorLookup, InitializingComponent
  • Constructor Details

    • DefaultSearchErrorLookup

      public DefaultSearchErrorLookup(JiraAuthenticationContext authContext, com.atlassian.cache.CacheManager cacheManager)
  • Method Details

    • afterInstantiation

      public void afterInstantiation() throws Exception
      Description copied from interface: InitializingComponent
      Called after all the beans are constructed and the ApplicationContext is fully populated. Order of execution is order of bean creation, driven by InitializingComponentProcessor.
      Specified by:
      afterInstantiation in interface InitializingComponent
      Throws:
      Exception
    • storeError

      public void storeError(String errorI18n)
      Description copied from interface: SearchErrorLookup
      Write to the error lookup. The HTTP context and the acting user will be recorded. If multiple error were stored at the same time with the same HTTP and user context, only one instance will be stored.
      Specified by:
      storeError in interface SearchErrorLookup
      Parameters:
      errorI18n - the error I18n String.
    • getError

      @Nullable public String getError()
      Description copied from interface: SearchErrorLookup
      Get the error from queue for the user for the current HTTP context. When an error is retrieved, it is removed from the lookup.
      Specified by:
      getError in interface SearchErrorLookup
      Returns:
      the ErrorInfo, null if there are no error for this user and HTTP context or if the user is null.