|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portlet.newsreader.NewsDefinition
org.jasig.portlet.newsreader.PredefinedNewsDefinition
public class PredefinedNewsDefinition
PredefinedNewsDefinition represents a built-in news definition. These definitions are defined in the database by an administrator, and can be automatically added to user's news registration lists based on user role.
| Constructor Summary | |
|---|---|
PredefinedNewsDefinition()
Default constructor |
|
PredefinedNewsDefinition(java.lang.Long id,
java.lang.String className,
java.lang.String name)
Construct a new predefined news definition |
|
| Method Summary | |
|---|---|
void |
addDefaultRole(java.lang.String role)
Add a user role to the set of roles that should get this news by default. |
void |
addUserConfiguration(PredefinedNewsConfiguration config)
Add a user configuration for this news definition |
java.util.Set<java.lang.String> |
getDefaultRoles()
Get the set of user roles who should get this news by default. |
java.util.Set<PredefinedNewsConfiguration> |
getUserConfigurations()
Get all the user configurations for this news definition |
void |
setDefaultRoles(java.util.Set<java.lang.String> defaultRoles)
Set the user roles should should get this news by default. |
void |
setUserConfigurations(java.util.Set<PredefinedNewsConfiguration> configurations)
Set the user configurations for this news definition |
| Methods inherited from class org.jasig.portlet.newsreader.NewsDefinition |
|---|
addParameter, compareTo, getClassName, getId, getName, getParameters, setClassName, setId, setName, setParameters, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PredefinedNewsDefinition()
public PredefinedNewsDefinition(java.lang.Long id,
java.lang.String className,
java.lang.String name)
id - className - name - | Method Detail |
|---|
public java.util.Set<PredefinedNewsConfiguration> getUserConfigurations()
public void setUserConfigurations(java.util.Set<PredefinedNewsConfiguration> configurations)
configurations - public java.util.Set<java.lang.String> getDefaultRoles()
public void setDefaultRoles(java.util.Set<java.lang.String> defaultRoles)
defaultRoles - set of default user rolespublic void addUserConfiguration(PredefinedNewsConfiguration config)
config - public void addDefaultRole(java.lang.String role)
role - user role to be added
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||