public class SearchUserInputsRetriever extends AbstractLogEnabled implements Component, Serviceable
SearchUserInputs
retriever.Modifier and Type | Field and Description |
---|---|
protected CurrentUserProvider |
_currentUserProvider
The current user provider
|
protected JSONUtils |
_jsonUtils
The JSON utils
|
protected UserPreferencesManager |
_userPrefsManager
The user preferences manager
|
static String |
ROLE
The avalon role
|
Constructor and Description |
---|
SearchUserInputsRetriever() |
Modifier and Type | Method and Description |
---|---|
protected SearchUserInputs |
_getCurrentSearchUserInputs(String serviceId)
Get the current search user inputs for the given service.
|
SearchUserInputs |
getUserInputs(Request request,
boolean isFormSubmitted,
SearchServiceInstance serviceInstance)
Get the user inputs.
|
void |
service(ServiceManager manager) |
getLogger, setLogger
protected CurrentUserProvider _currentUserProvider
protected UserPreferencesManager _userPrefsManager
protected JSONUtils _jsonUtils
public SearchUserInputsRetriever()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public SearchUserInputs getUserInputs(Request request, boolean isFormSubmitted, SearchServiceInstance serviceInstance)
request
- The requestisFormSubmitted
- true
if the form has been submittedserviceInstance
- The search service instanceprotected SearchUserInputs _getCurrentSearchUserInputs(String serviceId)
serviceId
- The service IDSearchUserInputs
object if the user is authenticated and have saved filters for this service. Otherwise, it returns null
.