|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
edu.yale.its.tp.portlets.calendar.dao.HibernateCalendarStore
public class HibernateCalendarStore
HibernateCalendarStore provides a hibernate implementation of the CalendarStore.
| Field Summary |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
HibernateCalendarStore()
|
|
| Method Summary | |
|---|---|
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(java.lang.Long id)
Retrieve a calendar configuration. |
java.util.List<CalendarConfiguration> |
getCalendarConfigurations(java.lang.String subscribeId)
Retrieve a list of calendar configurations for the specified portlet. |
CalendarDefinition |
getCalendarDefinition(java.lang.Long id)
Retrieve a calendar definition. |
java.util.List<PredefinedCalendarDefinition> |
getHiddenPredefinedCalendarDefinitions(java.lang.String subscribeId,
java.util.Set<java.lang.String> roles)
Retrieve a list of hidden predefined calendars for this portlet subscription and role. |
java.util.List<PredefinedCalendarConfiguration> |
getPredefinedCalendarConfigurations()
Retrieve a list of all pre-defined calendar configurations. |
java.util.List<PredefinedCalendarConfiguration> |
getPredefinedCalendarConfigurations(java.lang.String subscribeId,
boolean visibleOnly)
Retrieve a list of pre-defined calendar configurations for the specified portlet. |
PredefinedCalendarDefinition |
getPredefinedCalendarDefinition(java.lang.Long id)
Retrieve a pre-defined calendar definition |
java.util.List<UserDefinedCalendarConfiguration> |
getUserDefinedCalendarConfigurations(java.lang.String subscribeId,
boolean visibleOnly)
Retrieve a list of user-defined calendar configurations for the specified portlet. |
java.util.List<java.lang.String> |
getUserRoles()
Get a list of all user roles currently in use. |
void |
initCalendar(java.lang.String subscribeId,
java.util.Set<java.lang.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. |
| Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
|---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HibernateCalendarStore()
| Method Detail |
|---|
public void storeCalendarDefinition(CalendarDefinition listing)
CalendarStore
storeCalendarDefinition in interface CalendarStorelisting - CalendarDefinition to be persistedpublic void storeCalendarConfiguration(CalendarConfiguration configuration)
CalendarStore
storeCalendarConfiguration in interface CalendarStoreconfiguration - CalendarConfiguration to be persistedpublic java.util.List<CalendarConfiguration> getCalendarConfigurations(java.lang.String subscribeId)
CalendarStore
getCalendarConfigurations in interface CalendarStoresubscribeId - unique ID for this portlet subscription
public java.util.List<UserDefinedCalendarConfiguration> getUserDefinedCalendarConfigurations(java.lang.String subscribeId,
boolean visibleOnly)
CalendarStore
getUserDefinedCalendarConfigurations in interface CalendarStoresubscribeId - unique ID for this portlet subscriptionvisibleOnly - true to retrieve only non-hidden calendar
configurations, false otherwise
public java.util.List<PredefinedCalendarConfiguration> getPredefinedCalendarConfigurations(java.lang.String subscribeId,
boolean visibleOnly)
CalendarStore
getPredefinedCalendarConfigurations in interface CalendarStoresubscribeId - unique ID for this portlet subscriptionvisibleOnly - true to retrieve only non-hidden calendar
configurations, false otherwise
public java.util.List<PredefinedCalendarConfiguration> getPredefinedCalendarConfigurations()
CalendarStore
getPredefinedCalendarConfigurations in interface CalendarStore
public java.util.List<PredefinedCalendarDefinition> getHiddenPredefinedCalendarDefinitions(java.lang.String subscribeId,
java.util.Set<java.lang.String> roles)
CalendarStore
getHiddenPredefinedCalendarDefinitions in interface CalendarStoresubscribeId - unique ID for this portlet subscriptionroles - user role to use to find default calendars
public void initCalendar(java.lang.String subscribeId,
java.util.Set<java.lang.String> roles)
CalendarStore
initCalendar in interface CalendarStoresubscribeId - unique ID for this portlet subscriptionroles - user roles to use to find default calendarspublic PredefinedCalendarDefinition getPredefinedCalendarDefinition(java.lang.Long id)
CalendarStore
getPredefinedCalendarDefinition in interface CalendarStoreid - ID of the calendar definition to be retrieved
public CalendarDefinition getCalendarDefinition(java.lang.Long id)
CalendarStore
getCalendarDefinition in interface CalendarStoreid - ID of the calendar definition to be retrieved
public CalendarConfiguration getCalendarConfiguration(java.lang.Long id)
CalendarStore
getCalendarConfiguration in interface CalendarStoreid - ID of the calendar configuration to be retrieved
public void deleteCalendarConfiguration(CalendarConfiguration configuration)
CalendarStore
deleteCalendarConfiguration in interface CalendarStoreconfiguration - configuration to be removedpublic void deleteCalendarDefinition(CalendarDefinition definition)
CalendarStore
deleteCalendarDefinition in interface CalendarStoredefinition - definition to be removedpublic java.util.List<java.lang.String> getUserRoles()
CalendarStore
getUserRoles in interface CalendarStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||