|
||||||||||
| 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.newsreader.dao.HibernateNewsStore
public class HibernateNewsStore
HibernateNewsStore provides a hibernate implementation of the NewsStore.
| Field Summary |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
HibernateNewsStore()
|
|
| Method Summary | |
|---|---|
void |
deleteNewsConfiguration(NewsConfiguration configuration)
Remove a news configuration from the data store |
void |
deleteNewsDefinition(PredefinedNewsDefinition definition)
Remove a news definition from the data store. |
java.util.List<PredefinedNewsDefinition> |
getHiddenPredefinedNewsDefinitions(java.lang.Long setId,
java.util.Set<java.lang.String> roles)
Retrieve a list of hidden predefined newss for this portlet subscription and role. |
NewsConfiguration |
getNewsConfiguration(java.lang.Long id)
Retrieve a news configuration. |
java.util.List<NewsConfiguration> |
getNewsConfigurations(java.lang.String subscribeId)
Retrieve a list of news configurations for the specified portlet. |
NewsDefinition |
getNewsDefinition(java.lang.Long id)
Retrieve a news definition. |
NewsSet |
getNewsSet(java.lang.Long id)
|
NewsSet |
getNewsSet(java.lang.String userId,
java.lang.String setName)
|
java.util.List<NewsSet> |
getNewsSetsForUser(java.lang.String userId)
|
java.util.List<PredefinedNewsConfiguration> |
getPredefinedNewsConfigurations()
Retrieve a list of all pre-defined news configurations. |
java.util.List<PredefinedNewsConfiguration> |
getPredefinedNewsConfigurations(java.lang.Long setId,
boolean visibleOnly)
Retrieve a list of pre-defined news configurations for the specified portlet. |
PredefinedNewsDefinition |
getPredefinedNewsDefinition(java.lang.Long id)
Retrieve a pre-defined news definition |
java.util.List<UserDefinedNewsConfiguration> |
getUserDefinedNewsConfigurations(java.lang.Long setId,
boolean visibleOnly)
Retrieve a list of user-defined news configurations for the specified portlet. |
java.util.List<java.lang.String> |
getUserRoles()
Get a list of all user roles currently in use. |
void |
initNews(NewsSet set,
java.util.Set<java.lang.String> roles)
Initialize news subscriptions for a given portlet subscription and role. |
void |
storeNewsConfiguration(NewsConfiguration configuration)
Save or update a news configuration. |
void |
storeNewsDefinition(NewsDefinition listing)
Save or update a news definition. |
void |
storeNewsSet(NewsSet set)
|
| 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 HibernateNewsStore()
| Method Detail |
|---|
public void storeNewsDefinition(NewsDefinition listing)
NewsStore
storeNewsDefinition in interface NewsStorelisting - NewsDefinition to be persistedpublic void storeNewsConfiguration(NewsConfiguration configuration)
NewsStore
storeNewsConfiguration in interface NewsStoreconfiguration - NewsConfiguration to be persistedpublic java.util.List<NewsConfiguration> getNewsConfigurations(java.lang.String subscribeId)
NewsStore
getNewsConfigurations in interface NewsStoresubscribeId - unique ID for this portlet subscription
public java.util.List<UserDefinedNewsConfiguration> getUserDefinedNewsConfigurations(java.lang.Long setId,
boolean visibleOnly)
NewsStore
getUserDefinedNewsConfigurations in interface NewsStorevisibleOnly - true to retrieve only non-hidden news
configurations, false otherwise
public java.util.List<PredefinedNewsConfiguration> getPredefinedNewsConfigurations(java.lang.Long setId,
boolean visibleOnly)
NewsStore
getPredefinedNewsConfigurations in interface NewsStorevisibleOnly - true to retrieve only non-hidden news
configurations, false otherwise
public java.util.List<PredefinedNewsConfiguration> getPredefinedNewsConfigurations()
NewsStore
getPredefinedNewsConfigurations in interface NewsStore
public java.util.List<PredefinedNewsDefinition> getHiddenPredefinedNewsDefinitions(java.lang.Long setId,
java.util.Set<java.lang.String> roles)
NewsStore
getHiddenPredefinedNewsDefinitions in interface NewsStoreroles - user role to use to find default newss
public void initNews(NewsSet set,
java.util.Set<java.lang.String> roles)
NewsStore
initNews in interface NewsStoreroles - user roles to use to find default newsspublic PredefinedNewsDefinition getPredefinedNewsDefinition(java.lang.Long id)
NewsStore
getPredefinedNewsDefinition in interface NewsStoreid - ID of the news definition to be retrieved
public NewsDefinition getNewsDefinition(java.lang.Long id)
NewsStore
getNewsDefinition in interface NewsStoreid - ID of the news definition to be retrieved
public NewsConfiguration getNewsConfiguration(java.lang.Long id)
NewsStore
getNewsConfiguration in interface NewsStoreid - ID of the news configuration to be retrieved
public void deleteNewsConfiguration(NewsConfiguration configuration)
NewsStore
deleteNewsConfiguration in interface NewsStoreconfiguration - configuration to be removedpublic void deleteNewsDefinition(PredefinedNewsDefinition definition)
NewsStore
deleteNewsDefinition in interface NewsStoredefinition - definition to be removedpublic java.util.List<java.lang.String> getUserRoles()
NewsStore
getUserRoles in interface NewsStorepublic NewsSet getNewsSet(java.lang.Long id)
getNewsSet in interface NewsStorepublic java.util.List<NewsSet> getNewsSetsForUser(java.lang.String userId)
getNewsSetsForUser in interface NewsStorepublic void storeNewsSet(NewsSet set)
storeNewsSet in interface NewsStore
public NewsSet getNewsSet(java.lang.String userId,
java.lang.String setName)
getNewsSet in interface NewsStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||