org.jboss.portal.portlet.impl
Class PortletPreferencesImpl
java.lang.Object
org.jboss.portal.portlet.impl.PortletPreferencesImpl
- All Implemented Interfaces:
- PortletPreferences
- Direct Known Subclasses:
- JBossPortletPreferences
public class PortletPreferencesImpl
- extends java.lang.Object
- implements PortletPreferences
Method Summary |
java.util.Map |
getMap()
|
java.util.Enumeration |
getNames()
|
java.lang.String |
getValue(java.lang.String key,
java.lang.String def)
|
java.lang.String[] |
getValues(java.lang.String key,
java.lang.String[] def)
|
boolean |
isReadOnly(java.lang.String key)
|
void |
reset(java.lang.String key)
|
void |
setValue(java.lang.String key,
java.lang.String value)
|
void |
setValues(java.lang.String key,
java.lang.String[] values)
|
void |
store()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.log4j.Logger log
- The logger.
ACTION
public static final int ACTION
- Indicates the object is used during a action phase.
- See Also:
- Constant Field Values
RENDER
public static final int RENDER
- Indicates the object is used during a render phase.
- See Also:
- Constant Field Values
sets1
protected final PreferenceSet[] sets1
sets2
protected final PreferenceSet[] sets2
system
protected final PreferenceSet system
user
protected final PreferenceSet user
validator
protected final PreferencesValidator validator
mode
protected final int mode
strategy
protected final MergeStrategy strategy
updates
protected final java.util.Map updates
- Keep track of updates
PortletPreferencesImpl
public PortletPreferencesImpl(PreferenceSet system,
PreferenceSet user,
PreferencesValidator validator,
int mode)
getMap
public java.util.Map getMap()
- Specified by:
getMap
in interface PortletPreferences
getNames
public java.util.Enumeration getNames()
- Specified by:
getNames
in interface PortletPreferences
getValue
public java.lang.String getValue(java.lang.String key,
java.lang.String def)
throws java.lang.IllegalArgumentException
- Specified by:
getValue
in interface PortletPreferences
- Throws:
java.lang.IllegalArgumentException
getValues
public java.lang.String[] getValues(java.lang.String key,
java.lang.String[] def)
throws java.lang.IllegalArgumentException
- Specified by:
getValues
in interface PortletPreferences
- Throws:
java.lang.IllegalArgumentException
isReadOnly
public boolean isReadOnly(java.lang.String key)
throws java.lang.IllegalArgumentException,
java.lang.IllegalArgumentException
- Specified by:
isReadOnly
in interface PortletPreferences
- Throws:
java.lang.IllegalArgumentException
reset
public void reset(java.lang.String key)
throws java.lang.IllegalArgumentException,
ReadOnlyException
- Specified by:
reset
in interface PortletPreferences
- Throws:
java.lang.IllegalArgumentException
ReadOnlyException
setValue
public void setValue(java.lang.String key,
java.lang.String value)
throws java.lang.IllegalArgumentException,
ReadOnlyException
- Specified by:
setValue
in interface PortletPreferences
- Throws:
java.lang.IllegalArgumentException
ReadOnlyException
setValues
public void setValues(java.lang.String key,
java.lang.String[] values)
throws java.lang.IllegalArgumentException,
ReadOnlyException
- Specified by:
setValues
in interface PortletPreferences
- Throws:
java.lang.IllegalArgumentException
ReadOnlyException
store
public void store()
throws java.io.IOException,
ValidatorException
- Specified by:
store
in interface PortletPreferences
- Throws:
java.io.IOException
ValidatorException