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.
|
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
|
PredefinedNewsDefinition |
getPredefinedNewsDefinitionByName(java.lang.String name) |
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) |
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 java.util.List<NewsConfiguration> getNewsConfigurations(java.lang.String subscribeId)
NewsStoregetNewsConfigurations in interface NewsStoresubscribeId - unique ID for this portlet subscriptionpublic java.util.List<UserDefinedNewsConfiguration> getUserDefinedNewsConfigurations(java.lang.Long setId, boolean visibleOnly)
NewsStoregetUserDefinedNewsConfigurations in interface NewsStoresetId - unique ID for this portlet subscriptionvisibleOnly - true to retrieve only non-hidden news
configurations, false otherwisepublic java.util.List<PredefinedNewsConfiguration> getPredefinedNewsConfigurations(java.lang.Long setId, boolean visibleOnly)
NewsStoregetPredefinedNewsConfigurations in interface NewsStoresetId - unique ID for this portlet subscriptionvisibleOnly - true to retrieve only non-hidden news
configurations, false otherwisepublic java.util.List<PredefinedNewsConfiguration> getPredefinedNewsConfigurations()
NewsStoregetPredefinedNewsConfigurations in interface NewsStorepublic java.util.List<PredefinedNewsDefinition> getHiddenPredefinedNewsDefinitions(java.lang.Long setId, java.util.Set<java.lang.String> roles)
NewsStoregetHiddenPredefinedNewsDefinitions in interface NewsStoresetId - unique ID for this portlet subscriptionroles - user role to use to find default newsspublic void initNews(NewsSet set, java.util.Set<java.lang.String> roles)
NewsStorepublic PredefinedNewsDefinition getPredefinedNewsDefinition(java.lang.Long id)
NewsStoregetPredefinedNewsDefinition in interface NewsStoreid - ID of the news definition to be retrievedpublic PredefinedNewsDefinition getPredefinedNewsDefinitionByName(java.lang.String name)
getPredefinedNewsDefinitionByName in interface NewsStorepublic NewsDefinition getNewsDefinition(java.lang.Long id)
NewsStoregetNewsDefinition in interface NewsStoreid - ID of the news definition to be retrievedpublic NewsConfiguration getNewsConfiguration(java.lang.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 java.util.List<java.lang.String> getUserRoles()
NewsStoregetUserRoles 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 NewsStorepublic NewsSet getNewsSet(java.lang.String userId, java.lang.String setName)
getNewsSet in interface NewsStoreCopyright © 2009-2023 Apereo. All Rights Reserved.