|
||||||||||
| 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
org.jasig.portlet.calendar.dao.HibernateCalendarStore
public class HibernateCalendarStore
HibernateCalendarStore provides a hibernate implementation of the CalendarStore.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
log
|
| 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(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. |
| 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 |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log log
| 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 List<UserDefinedCalendarConfiguration> getCalendarConfigurations(String subscribeId)
CalendarStore
getCalendarConfigurations in interface CalendarStoresubscribeId - unique ID for this portlet subscription
public UserDefinedCalendarConfiguration getUserDefinedCalendarConfiguration(String subscribeId,
String name)
CalendarStore
getUserDefinedCalendarConfiguration in interface CalendarStoresubscribeId - Unique ID for this portlet subscriptionname - Name of the desired calendar
public List<UserDefinedCalendarConfiguration> getUserDefinedCalendarConfigurations()
CalendarStore
getUserDefinedCalendarConfigurations in interface CalendarStore
public List<UserDefinedCalendarConfiguration> getUserDefinedCalendarConfigurations(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 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 PredefinedCalendarDefinition
public List<PredefinedCalendarConfiguration> getPredefinedCalendarConfigurations(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 List<PredefinedCalendarConfiguration> getPredefinedCalendarConfigurations()
CalendarStore
getPredefinedCalendarConfigurations in interface CalendarStore
public List<PredefinedCalendarDefinition> getHiddenPredefinedCalendarDefinitions(String subscribeId,
Set<String> roles)
CalendarStore
getHiddenPredefinedCalendarDefinitions in interface CalendarStoresubscribeId - unique ID for this portlet subscriptionroles - user role to use to find default calendars
public void initCalendar(String subscribeId,
Set<String> roles)
CalendarStore
initCalendar in interface CalendarStoresubscribeId - unique ID for this portlet subscriptionroles - user roles to use to find default calendarspublic List<PredefinedCalendarDefinition> getPredefinedCalendarDefinitions()
CalendarStore
getPredefinedCalendarDefinitions in interface CalendarStorepublic PredefinedCalendarDefinition getPredefinedCalendarDefinitionByName(String name)
CalendarStore
getPredefinedCalendarDefinitionByName in interface CalendarStorename - Name of the calendar definition to be retrieved
public PredefinedCalendarDefinition getPredefinedCalendarDefinition(Long id)
CalendarStore
getPredefinedCalendarDefinition in interface CalendarStoreid - ID of the calendar definition to be retrieved
public CalendarDefinition getCalendarDefinition(Long id)
CalendarStore
getCalendarDefinition in interface CalendarStoreid - ID of the calendar definition to be retrieved
public CalendarDefinition getCalendarDefinition(String fname)
getCalendarDefinition in interface CalendarStorepublic CalendarConfiguration getCalendarConfiguration(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 List<String> getUserRoles()
CalendarStore
getUserRoles in interface CalendarStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||