public class HibernateCalendarStore extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements CalendarStore
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
HibernateCalendarStore() |
| 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> roles)
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 listing)
Save or update a calendar definition.
|
public void storeCalendarDefinition(CalendarDefinition listing)
CalendarStorestoreCalendarDefinition in interface CalendarStorelisting - CalendarDefinition to be persistedpublic void storeCalendarConfiguration(CalendarConfiguration configuration)
CalendarStorestoreCalendarConfiguration in interface CalendarStoreconfiguration - CalendarConfiguration to be persistedpublic List<UserDefinedCalendarConfiguration> getCalendarConfigurations(String subscribeId)
CalendarStoregetCalendarConfigurations in interface CalendarStoresubscribeId - unique ID for this portlet subscriptionpublic UserDefinedCalendarConfiguration getUserDefinedCalendarConfiguration(String subscribeId, String name)
CalendarStoregetUserDefinedCalendarConfiguration in interface CalendarStoresubscribeId - Unique ID for this portlet subscriptionname - Name of the desired calendarpublic List<UserDefinedCalendarConfiguration> getUserDefinedCalendarConfigurations()
CalendarStoregetUserDefinedCalendarConfigurations in interface CalendarStorepublic List<UserDefinedCalendarConfiguration> getUserDefinedCalendarConfigurations(String subscribeId, boolean visibleOnly)
CalendarStoregetUserDefinedCalendarConfigurations in interface CalendarStoresubscribeId - unique ID for this portlet subscriptionvisibleOnly - true to retrieve only non-hidden calendar
configurations, false otherwisepublic PredefinedCalendarConfiguration getPredefinedCalendarConfiguration(String subscribeId, String name)
CalendarStorePredefinedCalendarConfiguration for the specified
subscribeId and name.getPredefinedCalendarConfiguration in interface CalendarStoresubscribeId - unique ID for this portlet subscriptionname - Name of the corresponding PredefinedCalendarDefinitionpublic List<PredefinedCalendarConfiguration> getPredefinedCalendarConfigurations(String subscribeId, boolean visibleOnly)
CalendarStoregetPredefinedCalendarConfigurations in interface CalendarStoresubscribeId - unique ID for this portlet subscriptionvisibleOnly - true to retrieve only non-hidden calendar
configurations, false otherwisepublic List<PredefinedCalendarConfiguration> getPredefinedCalendarConfigurations()
CalendarStoregetPredefinedCalendarConfigurations in interface CalendarStorepublic List<PredefinedCalendarDefinition> getHiddenPredefinedCalendarDefinitions(String subscribeId, Set<String> roles)
CalendarStoregetHiddenPredefinedCalendarDefinitions in interface CalendarStoresubscribeId - unique ID for this portlet subscriptionroles - user role to use to find default calendarspublic void initCalendar(String subscribeId, Set<String> roles)
CalendarStoreinitCalendar in interface CalendarStoresubscribeId - unique ID for this portlet subscriptionroles - user roles to use to find default calendarspublic List<PredefinedCalendarDefinition> getPredefinedCalendarDefinitions()
CalendarStoregetPredefinedCalendarDefinitions in interface CalendarStorepublic PredefinedCalendarDefinition getPredefinedCalendarDefinitionByName(String name)
CalendarStoregetPredefinedCalendarDefinitionByName in interface CalendarStorename - Name of the calendar definition to be retrievedpublic PredefinedCalendarDefinition getPredefinedCalendarDefinition(Long id)
CalendarStoregetPredefinedCalendarDefinition in interface CalendarStoreid - ID of the calendar definition to be retrievedpublic CalendarDefinition getCalendarDefinition(Long id)
CalendarStoregetCalendarDefinition in interface CalendarStoreid - ID of the calendar definition to be retrievedpublic CalendarDefinition getCalendarDefinition(String fname)
getCalendarDefinition in interface CalendarStorepublic CalendarConfiguration getCalendarConfiguration(Long id)
CalendarStoregetCalendarConfiguration in interface CalendarStoreid - ID of the calendar configuration to be retrievedpublic void deleteCalendarConfiguration(CalendarConfiguration configuration)
CalendarStoredeleteCalendarConfiguration in interface CalendarStoreconfiguration - configuration to be removedpublic void deleteCalendarDefinition(CalendarDefinition definition)
CalendarStoredeleteCalendarDefinition in interface CalendarStoredefinition - definition to be removedpublic List<String> getUserRoles()
CalendarStoregetUserRoles in interface CalendarStoreCopyright © 2016 Apereo. All Rights Reserved.