public class HibernateNewsStore extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements NewsStore
| Constructor and Description |
|---|
HibernateNewsStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteNewsConfiguration(NewsConfiguration configuration)
Remove a news configuration from the data store
|
void |
deleteNewsDefinition(PredefinedNewsDefinition definition)
Remove a news definition from the data store.
|
List<PredefinedNewsDefinition> |
getHiddenPredefinedNewsDefinitions(Long setId,
Set<String> roles)
Retrieve a list of hidden predefined newss for this portlet subscription
and role.
|
NewsConfiguration |
getNewsConfiguration(Long id)
Retrieve a news configuration.
|
List<NewsConfiguration> |
getNewsConfigurations(String subscribeId)
Retrieve a list of news configurations for the specified portlet.
|
NewsDefinition |
getNewsDefinition(Long id)
Retrieve a news definition.
|
NewsSet |
getNewsSet(Long id) |
NewsSet |
getNewsSet(String userId,
String setName) |
List<NewsSet> |
getNewsSetsForUser(String userId) |
List<PredefinedNewsConfiguration> |
getPredefinedNewsConfigurations()
Retrieve a list of all pre-defined news configurations.
|
List<PredefinedNewsConfiguration> |
getPredefinedNewsConfigurations(Long setId,
boolean visibleOnly)
Retrieve a list of pre-defined news configurations for
the specified portlet.
|
PredefinedNewsDefinition |
getPredefinedNewsDefinition(Long id)
Retrieve a pre-defined news definition
|
PredefinedNewsDefinition |
getPredefinedNewsDefinitionByName(String name) |
List<UserDefinedNewsConfiguration> |
getUserDefinedNewsConfigurations(Long setId,
boolean visibleOnly)
Retrieve a list of user-defined news configurations for
the specified portlet.
|
List<String> |
getUserRoles()
Get a list of all user roles currently in use.
|
void |
initNews(NewsSet set,
Set<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) |
public void storeNewsDefinition(NewsDefinition listing)
NewsStorestoreNewsDefinition in interface NewsStorelisting - NewsDefinition to be persistedpublic void storeNewsConfiguration(NewsConfiguration configuration)
NewsStorestoreNewsConfiguration in interface NewsStoreconfiguration - NewsConfiguration to be persistedpublic List<NewsConfiguration> getNewsConfigurations(String subscribeId)
NewsStoregetNewsConfigurations in interface NewsStoresubscribeId - unique ID for this portlet subscriptionpublic List<UserDefinedNewsConfiguration> getUserDefinedNewsConfigurations(Long setId, boolean visibleOnly)
NewsStoregetUserDefinedNewsConfigurations in interface NewsStoresetId - unique ID for this portlet subscriptionvisibleOnly - true to retrieve only non-hidden news
configurations, false otherwisepublic List<PredefinedNewsConfiguration> getPredefinedNewsConfigurations(Long setId, boolean visibleOnly)
NewsStoregetPredefinedNewsConfigurations in interface NewsStoresetId - unique ID for this portlet subscriptionvisibleOnly - true to retrieve only non-hidden news
configurations, false otherwisepublic List<PredefinedNewsConfiguration> getPredefinedNewsConfigurations()
NewsStoregetPredefinedNewsConfigurations in interface NewsStorepublic List<PredefinedNewsDefinition> getHiddenPredefinedNewsDefinitions(Long setId, Set<String> roles)
NewsStoregetHiddenPredefinedNewsDefinitions in interface NewsStoresetId - unique ID for this portlet subscriptionroles - user role to use to find default newsspublic void initNews(NewsSet set, Set<String> roles)
NewsStorepublic PredefinedNewsDefinition getPredefinedNewsDefinition(Long id)
NewsStoregetPredefinedNewsDefinition in interface NewsStoreid - ID of the news definition to be retrievedpublic PredefinedNewsDefinition getPredefinedNewsDefinitionByName(String name)
getPredefinedNewsDefinitionByName in interface NewsStorepublic NewsDefinition getNewsDefinition(Long id)
NewsStoregetNewsDefinition in interface NewsStoreid - ID of the news definition to be retrievedpublic NewsConfiguration getNewsConfiguration(Long id)
NewsStoregetNewsConfiguration in interface NewsStoreid - ID of the news configuration to be retrievedpublic void deleteNewsConfiguration(NewsConfiguration configuration)
NewsStoredeleteNewsConfiguration in interface NewsStoreconfiguration - configuration to be removedpublic void deleteNewsDefinition(PredefinedNewsDefinition definition)
NewsStoredeleteNewsDefinition in interface NewsStoredefinition - definition to be removedpublic List<String> getUserRoles()
NewsStoregetUserRoles in interface NewsStorepublic NewsSet getNewsSet(Long id)
getNewsSet in interface NewsStorepublic List<NewsSet> getNewsSetsForUser(String userId)
getNewsSetsForUser in interface NewsStorepublic void storeNewsSet(NewsSet set)
storeNewsSet in interface NewsStorepublic NewsSet getNewsSet(String userId, String setName)
getNewsSet in interface NewsStoreCopyright © 2009-2016 Apereo. All Rights Reserved.