Class FilteredEventsUserPreferencesManager
java.lang.Object
org.ametys.plugins.workspaces.calendars.userprefs.FilteredEventsUserPreferencesManager
- All Implemented Interfaces:
Component
,Serviceable
Class handling the front-office user preferences for the filtered events service
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetUserPreferences
(String siteName, String zoneItemId) Get the preferences of the current uservoid
service
(ServiceManager serviceManager) void
setUserPreferences
(String siteName, String zoneItemId, String view, List<String> calendarIds, List<String> tagIds) Set the preferences of the current user for the filtered events service
-
Field Details
-
ROLE
The Avalon role
-
-
Constructor Details
-
FilteredEventsUserPreferencesManager
public FilteredEventsUserPreferencesManager()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
setUserPreferences
public void setUserPreferences(String siteName, String zoneItemId, String view, List<String> calendarIds, List<String> tagIds) 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 involved zone itemview
- the view used to display the filtered eventscalendarIds
- the ids of the calendars to use as a filtertagIds
- the ids of the tags to use as a filter- 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 invovlved zone item- Returns:
- the current user's preferences
- Throws:
UserPreferencesException
- if an error occurs while retrieving the preferences of the current user
-