public class PortletPreferencesImpl extends Object implements javax.portlet.PortletPreferences
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTION
Indicates the object is used during a action phase.
|
protected ContainerPreferencesInfo |
containerPrefs
.
|
protected static org.gatein.common.logging.Logger |
log
The logger.
|
protected int |
mode
.
|
protected PropertyContext |
prefs
.
|
static int |
RENDER
Indicates the object is used during a render phase.
|
protected Map<String,PropertyChange> |
updates
Keep track of updates
|
protected javax.portlet.PreferencesValidator |
validator
.
|
| Constructor and Description |
|---|
PortletPreferencesImpl(PropertyContext prefs,
ContainerPreferencesInfo containerPrefs,
javax.portlet.PreferencesValidator validator,
int mode) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String[]> |
getMap() |
Enumeration<String> |
getNames() |
String |
getValue(String key,
String def) |
String[] |
getValues(String key,
String[] def) |
boolean |
isReadOnly(String key) |
void |
reset(String key) |
void |
setValue(String key,
String value) |
void |
setValues(String key,
String[] values) |
void |
store() |
protected static final org.gatein.common.logging.Logger log
public static final int ACTION
public static final int RENDER
protected final PropertyContext prefs
protected final javax.portlet.PreferencesValidator validator
protected final ContainerPreferencesInfo containerPrefs
protected final int mode
protected final Map<String,PropertyChange> updates
public PortletPreferencesImpl(PropertyContext prefs, ContainerPreferencesInfo containerPrefs, javax.portlet.PreferencesValidator validator, int mode)
public Map<String,String[]> getMap()
getMap in interface javax.portlet.PortletPreferencespublic Enumeration<String> getNames()
getNames in interface javax.portlet.PortletPreferencespublic String getValue(String key, String def) throws IllegalArgumentException
getValue in interface javax.portlet.PortletPreferencesIllegalArgumentExceptionpublic String[] getValues(String key, String[] def) throws IllegalArgumentException
getValues in interface javax.portlet.PortletPreferencesIllegalArgumentExceptionpublic boolean isReadOnly(String key) throws IllegalArgumentException
isReadOnly in interface javax.portlet.PortletPreferencesIllegalArgumentExceptionpublic void reset(String key) throws IllegalArgumentException, javax.portlet.ReadOnlyException
reset in interface javax.portlet.PortletPreferencesIllegalArgumentExceptionjavax.portlet.ReadOnlyExceptionpublic void setValue(String key, String value) throws IllegalArgumentException, javax.portlet.ReadOnlyException
setValue in interface javax.portlet.PortletPreferencesIllegalArgumentExceptionjavax.portlet.ReadOnlyExceptionpublic void setValues(String key, String[] values) throws IllegalArgumentException, javax.portlet.ReadOnlyException
setValues in interface javax.portlet.PortletPreferencesIllegalArgumentExceptionjavax.portlet.ReadOnlyExceptionpublic void store()
throws IOException,
javax.portlet.ValidatorException
store in interface javax.portlet.PortletPreferencesIOExceptionjavax.portlet.ValidatorExceptionCopyright © 2003-2020 GateIn. All Rights Reserved.