Package com.atlassian.jira.search.issue
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 Summary
ConstructorsConstructorDescriptionDefaultSearchErrorLookup(JiraAuthenticationContext authContext, com.atlassian.cache.CacheManager cacheManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled after all the beans are constructed and the ApplicationContext is fully populated.getError()Get the error from queue for the user for the current HTTP context.voidstoreError(String errorI18n) Write to the error lookup.
-
Constructor Details
-
DefaultSearchErrorLookup
public DefaultSearchErrorLookup(JiraAuthenticationContext authContext, com.atlassian.cache.CacheManager cacheManager)
-
-
Method Details
-
afterInstantiation
Description copied from interface:InitializingComponentCalled 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:
afterInstantiationin interfaceInitializingComponent- Throws:
Exception
-
storeError
Description copied from interface:SearchErrorLookupWrite 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:
storeErrorin interfaceSearchErrorLookup- Parameters:
errorI18n- the error I18n String.
-
getError
Description copied from interface:SearchErrorLookupGet 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:
getErrorin interfaceSearchErrorLookup- Returns:
- the ErrorInfo, null if there are no error for this user and HTTP context or if the user is null.
-