|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pluto.internal.impl.PortletPreferencesImpl
Implementation of the javax.portlet.PortletPreferences
interface.
PortletPreferences
,
PortletPreferenceImpl
Constructor Summary | |
PortletPreferencesImpl(PortletContainer container,
InternalPortletWindow window,
InternalPortletRequest request,
java.lang.Integer methodId)
Constructs an instance. |
Method Summary | |
java.util.Map |
getMap()
|
java.util.Enumeration |
getNames()
|
java.lang.String |
getValue(java.lang.String key,
java.lang.String defaultValue)
|
java.lang.String[] |
getValues(java.lang.String key,
java.lang.String[] defaultValues)
|
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()
Stores the portlet preferences to a persistent storage. |
java.lang.String |
toString()
Returns the string representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PortletPreferencesImpl(PortletContainer container, InternalPortletWindow window, InternalPortletRequest request, java.lang.Integer methodId)
container
- the portlet container.window
- the internal portlet window.request
- the internal portlet request.methodId
- the request method ID: render request or action request.Method Detail |
public boolean isReadOnly(java.lang.String key)
isReadOnly
in interface javax.portlet.PortletPreferences
public java.lang.String getValue(java.lang.String key, java.lang.String defaultValue)
getValue
in interface javax.portlet.PortletPreferences
public java.lang.String[] getValues(java.lang.String key, java.lang.String[] defaultValues)
getValues
in interface javax.portlet.PortletPreferences
public void setValue(java.lang.String key, java.lang.String value) throws javax.portlet.ReadOnlyException
setValue
in interface javax.portlet.PortletPreferences
javax.portlet.ReadOnlyException
public void setValues(java.lang.String key, java.lang.String[] values) throws javax.portlet.ReadOnlyException
setValues
in interface javax.portlet.PortletPreferences
javax.portlet.ReadOnlyException
public java.util.Enumeration getNames()
getNames
in interface javax.portlet.PortletPreferences
public java.util.Map getMap()
getMap
in interface javax.portlet.PortletPreferences
public void reset(java.lang.String key) throws javax.portlet.ReadOnlyException
reset
in interface javax.portlet.PortletPreferences
javax.portlet.ReadOnlyException
public void store() throws java.io.IOException, javax.portlet.ValidatorException
processAction()
method.
store
in interface javax.portlet.PortletPreferences
java.lang.IllegalStateException
- if this method is not invoked within
processAction()
method.
javax.portlet.ValidatorException
- if the portlet preferences are not valid.
java.io.IOException
- if an error occurs with the persistence mechanism.#internalStore()
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |