Class TasksUserPreferencesManager
- java.lang.Object
-
- org.ametys.plugins.workspaces.tasks.userprefs.TasksUserPreferencesManager
-
- All Implemented Interfaces:
Component
,Serviceable
public class TasksUserPreferencesManager extends Object implements Component, Serviceable
Class handling the front-office user preferences for the tasks list service
-
-
Constructor Summary
Constructors Constructor Description TasksUserPreferencesManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getUserPreferences(String siteName, String zoneItemId)
Get the preferences of the current uservoid
service(ServiceManager serviceManager)
void
setUserPreferences(String siteName, String zoneItemId, List<String> projects)
Set the preferences of the current user for the filtered events service
-
-
-
Constructor Detail
-
TasksUserPreferencesManager
public TasksUserPreferencesManager()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
setUserPreferences
public void setUserPreferences(String siteName, String zoneItemId, List<String> projects) throws UserPreferencesException
Set the preferences of the current user for the filtered events service- Parameters:
siteName
- the name of the sitezoneItemId
- the id of the zone itemprojects
- the projects from which gather the tasks- Throws:
UserPreferencesException
- if an error occurs while setting the user preferences
-
getUserPreferences
public Map<String,Object> getUserPreferences(String siteName, String zoneItemId) throws UserPreferencesException
Get the preferences of the current user- Parameters:
siteName
- the name of the sitezoneItemId
- the id of the zone item- Returns:
- the current user's preferences
- Throws:
UserPreferencesException
- if an error occurs while retrieving the preferences of the current user
-
-