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.
|
java.util.List<PredefinedNewsDefinition> |
getHiddenPredefinedNewsDefinitions(java.lang.Long setId,
java.util.Set<java.lang.String> role)
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 fname) |
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 definition)
Save or update a news definition.
|
void |
storeNewsSet(NewsSet set) |
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)
void storeNewsSet(NewsSet set)
void storeNewsDefinition(NewsDefinition definition)
definition - NewsDefinition to be persistedNewsDefinition getNewsDefinition(java.lang.Long id)
id - ID of the news definition to be retrievedPredefinedNewsDefinition getPredefinedNewsDefinition(java.lang.Long id)
id - ID of the news definition to be retrievedPredefinedNewsDefinition getPredefinedNewsDefinitionByName(java.lang.String fname)
void storeNewsConfiguration(NewsConfiguration configuration)
configuration - NewsConfiguration to be persistedNewsConfiguration getNewsConfiguration(java.lang.Long id)
id - ID of the news configuration to be retrievedjava.util.List<NewsConfiguration> getNewsConfigurations(java.lang.String subscribeId)
subscribeId - unique ID for this portlet subscriptionjava.util.List<UserDefinedNewsConfiguration> getUserDefinedNewsConfigurations(java.lang.Long setId, boolean visibleOnly)
setId - unique ID for this portlet subscriptionvisibleOnly - true to retrieve only non-hidden news
configurations, false otherwisejava.util.List<PredefinedNewsConfiguration> getPredefinedNewsConfigurations(java.lang.Long setId, boolean visibleOnly)
setId - unique ID for this portlet subscriptionvisibleOnly - true to retrieve only non-hidden news
configurations, false otherwisejava.util.List<PredefinedNewsConfiguration> getPredefinedNewsConfigurations()
void deleteNewsConfiguration(NewsConfiguration configuration)
configuration - configuration to be removedvoid deleteNewsDefinition(PredefinedNewsDefinition definition)
definition - definition to be removedvoid initNews(NewsSet set, java.util.Set<java.lang.String> roles)
set - news collection to initializeroles - user roles to use to find default newssjava.util.List<PredefinedNewsDefinition> getHiddenPredefinedNewsDefinitions(java.lang.Long setId, java.util.Set<java.lang.String> role)
setId - unique ID for this portlet subscriptionrole - user role to use to find default newssjava.util.List<java.lang.String> getUserRoles()
Copyright © 2009-2023 Apereo. All Rights Reserved.