public class PredefinedNewsDefinition extends NewsDefinition
| Constructor and Description |
|---|
PredefinedNewsDefinition()
Default constructor
|
PredefinedNewsDefinition(Long id,
String className,
String name)
Construct a new predefined news definition
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaultRole(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
|
Set<String> |
getDefaultRoles()
Get the set of user roles who should get this news by default.
|
String |
getFname() |
Set<PredefinedNewsConfiguration> |
getUserConfigurations()
Get all the user configurations for this news definition
|
void |
setDefaultRoles(Set<String> defaultRoles)
Set the user roles should should get this news by default.
|
void |
setFname(String fname) |
void |
setUserConfigurations(Set<PredefinedNewsConfiguration> configurations)
Set the user configurations for this news definition
|
addParameter, compareTo, getClassName, getId, getName, getParameters, isPredefined, setClassName, setId, setName, setParameters, toStringpublic Set<PredefinedNewsConfiguration> getUserConfigurations()
public void setUserConfigurations(Set<PredefinedNewsConfiguration> configurations)
configurations - public Set<String> getDefaultRoles()
public void setDefaultRoles(Set<String> defaultRoles)
defaultRoles - set of default user rolespublic void addUserConfiguration(PredefinedNewsConfiguration config)
config - public void addDefaultRole(String role)
role - user role to be addedpublic String getFname()
public void setFname(String fname)
Copyright © 2009-2015 Jasig. All Rights Reserved.