public interface NewsStore
| 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> role)
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 fname) |
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 definition)
Save or update a news definition.
|
void |
storeNewsSet(NewsSet set) |
void storeNewsSet(NewsSet set)
void storeNewsDefinition(NewsDefinition definition)
definition - NewsDefinition to be persistedNewsDefinition getNewsDefinition(Long id)
id - ID of the news definition to be retrievedPredefinedNewsDefinition getPredefinedNewsDefinition(Long id)
id - ID of the news definition to be retrievedPredefinedNewsDefinition getPredefinedNewsDefinitionByName(String fname)
void storeNewsConfiguration(NewsConfiguration configuration)
configuration - NewsConfiguration to be persistedNewsConfiguration getNewsConfiguration(Long id)
id - ID of the news configuration to be retrievedList<NewsConfiguration> getNewsConfigurations(String subscribeId)
subscribeId - unique ID for this portlet subscriptionList<UserDefinedNewsConfiguration> getUserDefinedNewsConfigurations(Long setId, boolean visibleOnly)
subscribeId - unique ID for this portlet subscriptionvisibleOnly - true to retrieve only non-hidden news
configurations, false otherwiseList<PredefinedNewsConfiguration> getPredefinedNewsConfigurations(Long setId, boolean visibleOnly)
subscribeId - unique ID for this portlet subscriptionvisibleOnly - true to retrieve only non-hidden news
configurations, false otherwiseList<PredefinedNewsConfiguration> getPredefinedNewsConfigurations()
void deleteNewsConfiguration(NewsConfiguration configuration)
configuration - configuration to be removedvoid deleteNewsDefinition(PredefinedNewsDefinition definition)
definition - definition to be removedvoid initNews(NewsSet set, Set<String> roles)
subscribeId - unique ID for this portlet subscriptionroles - user roles to use to find default newssList<PredefinedNewsDefinition> getHiddenPredefinedNewsDefinitions(Long setId, Set<String> role)
subscribeId - unique ID for this portlet subscriptionrole - user role to use to find default newssCopyright © 2009-2015 Jasig. All Rights Reserved.