|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NewsStore
NewsStore provides a data store for news listings and configurations.
| Method Summary | |
|---|---|
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 |
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)
|
| Method Detail |
|---|
NewsSet getNewsSet(Long id)
NewsSet getNewsSet(String userId,
String setName)
List<NewsSet> getNewsSetsForUser(String userId)
void storeNewsSet(NewsSet set)
void storeNewsDefinition(NewsDefinition definition)
definition - NewsDefinition to be persistedNewsDefinition getNewsDefinition(Long id)
id - ID of the news definition to be retrieved
PredefinedNewsDefinition getPredefinedNewsDefinition(Long id)
id - ID of the news definition to be retrieved
void storeNewsConfiguration(NewsConfiguration configuration)
configuration - NewsConfiguration to be persistedNewsConfiguration getNewsConfiguration(Long id)
id - ID of the news configuration to be retrieved
List<NewsConfiguration> getNewsConfigurations(String subscribeId)
subscribeId - unique ID for this portlet subscription
List<UserDefinedNewsConfiguration> getUserDefinedNewsConfigurations(Long setId,
boolean visibleOnly)
subscribeId - unique ID for this portlet subscriptionvisibleOnly - true to retrieve only non-hidden news
configurations, false otherwise
List<PredefinedNewsConfiguration> getPredefinedNewsConfigurations(Long setId,
boolean visibleOnly)
subscribeId - unique ID for this portlet subscriptionvisibleOnly - true to retrieve only non-hidden news
configurations, false otherwise
List<PredefinedNewsConfiguration> getPredefinedNewsConfigurations()
void deleteNewsConfiguration(NewsConfiguration configuration)
configuration - configuration to be removedvoid deleteNewsDefinition(PredefinedNewsDefinition definition)
definition - definition to be removed
void initNews(NewsSet set,
Set<String> roles)
subscribeId - unique ID for this portlet subscriptionroles - user roles to use to find default newss
List<PredefinedNewsDefinition> getHiddenPredefinedNewsDefinitions(Long setId,
Set<String> role)
subscribeId - unique ID for this portlet subscriptionrole - user role to use to find default newss
List<String> getUserRoles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||