public class SaveUserPrefsSearchComponent extends Object implements SearchComponent, Serviceable
SearchComponent to save the selected user filters in the user preferences if the user is authenticated.| Modifier and Type | Field and Description |
|---|---|
private static String |
__ENABLE_SAVE_USER_PREFS_PARAMETER_NAME |
protected CurrentUserProvider |
_currentUserProvider
The current user provider
|
protected JSONUtils |
_jsonUtils
The JSON utils
|
protected UserPreferencesManager |
_userPrefsManager
The user preferences manager
|
DISABLE_DEFAULT_SAX_PARAMETER_NAME, MAX_PRIORITY, MIN_PRIORITY, SEARCH_PRIORITY| Constructor and Description |
|---|
SaveUserPrefsSearchComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(SearchComponentArguments args)
Executes the component.
|
int |
priority()
Get the priority of the component.
|
void |
service(ServiceManager manager) |
boolean |
supports(SearchComponentArguments args)
Returns
true if the component must be executed. |
private static final String __ENABLE_SAVE_USER_PREFS_PARAMETER_NAME
protected JSONUtils _jsonUtils
protected UserPreferencesManager _userPrefsManager
protected CurrentUserProvider _currentUserProvider
public SaveUserPrefsSearchComponent()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic int priority()
SearchComponentpriority in interface SearchComponentpublic boolean supports(SearchComponentArguments args)
SearchComponenttrue if the component must be executed.supports in interface SearchComponentargs - the argumentstrue if the component must be executed.public void execute(SearchComponentArguments args) throws Exception
SearchComponentexecute in interface SearchComponentargs - the argumentsException - if an exception occurs. Other search components will be attempted to be executed