Package org.jasig.portlet.newsreader.dao
Interface NewsStore
- All Known Implementing Classes:
HibernateNewsStore
public interface NewsStore
NewsStore provides a data store for news listings and configurations.
- Since:
- 5.1.1
- Author:
- Anthony Colebourne, Jen Bourey
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteNewsConfiguration(NewsConfiguration configuration) Remove a news configuration from the data storevoiddeleteNewsDefinition(PredefinedNewsDefinition definition) Remove a news definition from the data store.getHiddenPredefinedNewsDefinitions(Long setId, Set<String> role) Retrieve a list of hidden predefined newss for this portlet subscription and role.Retrieve a news configuration.getNewsConfigurations(String subscribeId) Retrieve a list of news configurations for the specified portlet.Retrieve a news definition.getNewsSet(Long id) getNewsSet.getNewsSet(String userId, String setName) getNewsSet.getNewsSetsForUser(String userId) getNewsSetsForUser.Retrieve a list of all pre-defined news configurations.getPredefinedNewsConfigurations(Long setId, boolean visibleOnly) Retrieve a list of pre-defined news configurations for the specified portlet.Retrieve a pre-defined news definitiongetPredefinedNewsDefinitionByName.getUserDefinedNewsConfigurations(Long setId, boolean visibleOnly) Retrieve a list of user-defined news configurations for the specified portlet.Get a list of all user roles currently in use.voidInitialize news subscriptions for a given portlet subscription and role.voidstoreNewsConfiguration(NewsConfiguration configuration) Save or update a news configuration.voidstoreNewsDefinition(NewsDefinition definition) Save or update a news definition.voidstoreNewsSet(NewsSet set) storeNewsSet.
-
Method Details
-
getNewsSet
getNewsSet.
-
getNewsSet
getNewsSet.
-
getNewsSetsForUser
getNewsSetsForUser.
-
storeNewsSet
storeNewsSet.
- Parameters:
set- aNewsSetobject
-
storeNewsDefinition
Save or update a news definition.- Parameters:
definition- NewsDefinition to be persisted
-
getNewsDefinition
Retrieve a news definition.- Parameters:
id- ID of the news definition to be retrieved- Returns:
- a
NewsDefinitionobject
-
getPredefinedNewsDefinition
Retrieve a pre-defined news definition- Parameters:
id- ID of the news definition to be retrieved- Returns:
- a
PredefinedNewsDefinitionobject
-
getPredefinedNewsDefinitionByName
getPredefinedNewsDefinitionByName.
- Parameters:
fname- aStringobject- Returns:
- a
PredefinedNewsDefinitionobject
-
storeNewsConfiguration
Save or update a news configuration.- Parameters:
configuration- NewsConfiguration to be persisted
-
getNewsConfiguration
Retrieve a news configuration.- Parameters:
id- ID of the news configuration to be retrieved- Returns:
- a
NewsConfigurationobject
-
getNewsConfigurations
Retrieve a list of news configurations for the specified portlet.- Parameters:
subscribeId- unique ID for this portlet subscription- Returns:
- a
Listobject
-
getUserDefinedNewsConfigurations
List<UserDefinedNewsConfiguration> getUserDefinedNewsConfigurations(Long setId, boolean visibleOnly) Retrieve a list of user-defined news configurations for the specified portlet.- Parameters:
setId- unique ID for this portlet subscriptionvisibleOnly-trueto retrieve only non-hidden news configurations,falseotherwise- Returns:
- a
Listobject
-
getPredefinedNewsConfigurations
Retrieve a list of pre-defined news configurations for the specified portlet.- Parameters:
setId- unique ID for this portlet subscriptionvisibleOnly-trueto retrieve only non-hidden news configurations,falseotherwise- Returns:
- a
Listobject
-
getPredefinedNewsConfigurations
List<PredefinedNewsConfiguration> getPredefinedNewsConfigurations()Retrieve a list of all pre-defined news configurations.- Returns:
- a
Listobject
-
deleteNewsConfiguration
Remove a news configuration from the data store- Parameters:
configuration- configuration to be removed
-
deleteNewsDefinition
Remove a news definition from the data store.- Parameters:
definition- definition to be removed
-
initNews
Initialize news subscriptions for a given portlet subscription and role.- Parameters:
set- news collection to initializeroles- user roles to use to find default newss
-
getHiddenPredefinedNewsDefinitions
Retrieve a list of hidden predefined newss for this portlet subscription and role.- Parameters:
setId- unique ID for this portlet subscriptionrole- user role to use to find default newss- Returns:
- a
Listobject
-
getUserRoles
Get a list of all user roles currently in use.- Returns:
- a
Listobject
-