public class LinkDirectorySetUserPreferencesAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
private CurrentUserProvider |
_currentUserProvider
The current user provider
|
private DirectoryHelper |
_directoryHelper |
private UserPreferencesManager |
_userPrefManager
The user preferences manager.
|
manager
EMPTY_MAP
Constructor and Description |
---|
LinkDirectorySetUserPreferencesAction() |
Modifier and Type | Method and Description |
---|---|
private String |
_getCheckedLinks(Request request)
Get the checked link ids from the request
|
private Map<String,String> |
_getContextVars(String siteName,
String language) |
private String |
_getStorageContext(String siteName,
String language,
String zoneItemId)
Get the appropriate storage context
|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager serviceManager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private UserPreferencesManager _userPrefManager
private DirectoryHelper _directoryHelper
private CurrentUserProvider _currentUserProvider
public LinkDirectorySetUserPreferencesAction()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
private String _getStorageContext(String siteName, String language, String zoneItemId)
siteName
- the name of the sitelanguage
- the languagezoneItemId
- the id of the zone item if we deal with a service, null for an input dataprivate String _getCheckedLinks(Request request)
request
- the request