public interface CalendarStore
| Modifier and Type | Method and Description |
|---|---|
void |
deleteCalendarConfiguration(CalendarConfiguration configuration)
Remove a calendar configuration from the data store
|
void |
deleteCalendarDefinition(CalendarDefinition definition)
Remove a calendar definition from the data store.
|
CalendarConfiguration |
getCalendarConfiguration(Long id)
Retrieve a calendar configuration.
|
List<UserDefinedCalendarConfiguration> |
getCalendarConfigurations(String subscribeId)
Retrieve a list of calendar configurations for the specified portlet.
|
CalendarDefinition |
getCalendarDefinition(Long id)
Retrieve a calendar definition.
|
CalendarDefinition |
getCalendarDefinition(String fname) |
List<PredefinedCalendarDefinition> |
getHiddenPredefinedCalendarDefinitions(String subscribeId,
Set<String> role)
Retrieve a list of hidden predefined calendars for this portlet subscription and role.
|
PredefinedCalendarConfiguration |
getPredefinedCalendarConfiguration(String subscribeId,
String name)
Retrieve a
PredefinedCalendarConfiguration for the specified subscribeId and name. |
List<PredefinedCalendarConfiguration> |
getPredefinedCalendarConfigurations()
Retrieve a list of all pre-defined calendar configurations.
|
List<PredefinedCalendarConfiguration> |
getPredefinedCalendarConfigurations(String subscribeId,
boolean visibleOnly)
Retrieve a list of pre-defined calendar configurations for the specified portlet.
|
PredefinedCalendarDefinition |
getPredefinedCalendarDefinition(Long id)
Retrieve a pre-defined calendar definition
|
PredefinedCalendarDefinition |
getPredefinedCalendarDefinitionByName(String name)
Retrieve a pre-defined calendar definition based on the name field.
|
List<PredefinedCalendarDefinition> |
getPredefinedCalendarDefinitions()
Retrieves all pre-defined calendar definition
|
UserDefinedCalendarConfiguration |
getUserDefinedCalendarConfiguration(String subscribeId,
String name)
Retrieve a list of all user-defined calendar configurations.
|
List<UserDefinedCalendarConfiguration> |
getUserDefinedCalendarConfigurations()
Retrieve a list of all user-defined calendar configurations.
|
List<UserDefinedCalendarConfiguration> |
getUserDefinedCalendarConfigurations(String subscribeId,
boolean visibleOnly)
Retrieve a list of user-defined calendar configurations for the specified portlet.
|
List<String> |
getUserRoles()
Get a list of all user roles currently in use.
|
void |
initCalendar(String subscribeId,
Set<String> roles)
Initialize calendar subscriptions for a given portlet subscription and role.
|
void |
storeCalendarConfiguration(CalendarConfiguration configuration)
Save or update a calendar configuration.
|
void |
storeCalendarDefinition(CalendarDefinition definition)
Save or update a calendar definition.
|
void storeCalendarDefinition(CalendarDefinition definition)
definition - CalendarDefinition to be persistedCalendarDefinition getCalendarDefinition(Long id)
id - ID of the calendar definition to be retrievedCalendarDefinition getCalendarDefinition(String fname)
List<PredefinedCalendarDefinition> getPredefinedCalendarDefinitions()
PredefinedCalendarDefinition getPredefinedCalendarDefinitionByName(String name)
name - Name of the calendar definition to be retrievedPredefinedCalendarDefinition getPredefinedCalendarDefinition(Long id)
id - ID of the calendar definition to be retrievedvoid storeCalendarConfiguration(CalendarConfiguration configuration)
configuration - CalendarConfiguration to be persistedCalendarConfiguration getCalendarConfiguration(Long id)
id - ID of the calendar configuration to be retrievedList<UserDefinedCalendarConfiguration> getCalendarConfigurations(String subscribeId)
subscribeId - unique ID for this portlet subscriptionUserDefinedCalendarConfiguration getUserDefinedCalendarConfiguration(String subscribeId, String name)
subscribeId - Unique ID for this portlet subscriptionname - Name of the desired calendarList<UserDefinedCalendarConfiguration> getUserDefinedCalendarConfigurations()
List<UserDefinedCalendarConfiguration> getUserDefinedCalendarConfigurations(String subscribeId, boolean visibleOnly)
subscribeId - unique ID for this portlet subscriptionvisibleOnly - true to retrieve only non-hidden calendar configurations,
false otherwiseList<PredefinedCalendarConfiguration> getPredefinedCalendarConfigurations(String subscribeId, boolean visibleOnly)
subscribeId - unique ID for this portlet subscriptionvisibleOnly - true to retrieve only non-hidden calendar configurations,
false otherwisePredefinedCalendarConfiguration getPredefinedCalendarConfiguration(String subscribeId, String name)
PredefinedCalendarConfiguration for the specified subscribeId and name.subscribeId - unique ID for this portlet subscriptionname - Name of the corresponding PredefinedCalendarDefinitionList<PredefinedCalendarConfiguration> getPredefinedCalendarConfigurations()
void deleteCalendarConfiguration(CalendarConfiguration configuration)
configuration - configuration to be removedvoid deleteCalendarDefinition(CalendarDefinition definition)
definition - definition to be removedvoid initCalendar(String subscribeId, Set<String> roles)
subscribeId - unique ID for this portlet subscriptionroles - user roles to use to find default calendarsList<PredefinedCalendarDefinition> getHiddenPredefinedCalendarDefinitions(String subscribeId, Set<String> role)
subscribeId - unique ID for this portlet subscriptionrole - user role to use to find default calendarsCopyright © 2018 Apereo. All Rights Reserved.