|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.portlet.PortletPreferences
public interface PortletPreferences
The PortletPreferences
interface represents preferences
associated with a portlet instance.
Portlet preferences are name-value pairs of data. A named preference may have multiple values.
Portlet preferences may be specified at development time, be updated by portal administrators, and also be updated by portlets during actions.
A preference may be marked as read-only at deployment time. In such cases portlets can not modify such a preference. But administrators may still change the value of such a preference.
Method Summary | |
---|---|
boolean |
isModifiable(String key)
Deprecated Use #isReadOnly |
void |
setValue(String key,
String value)
Deprecated Replaced by javax.portlet.PortletPreferences#setValue(String, String) |
void |
setValues(String key,
String[] values)
Deprecated Replaced by javax.portlet.PortletPreferences#setValues(String, String[]) |
void |
store()
Deprecated Replaced by javax.portlet.PortletPreferences#store() |
Method Detail |
---|
boolean isModifiable(String key)
Returns true
if the given preference is modifiable. Modifiable preferences
can be modified by a portlet in any mode during its action-processing phase.
key
- name of the preference
void setValue(String key, String value) throws UnmodifiableException
javax.portlet.PortletPreferences#setValue(String, String)
Sets the value of the given preference.
key
- name of the preferencevalue
- value to be set
UnmodifiableException
- thrown if the preference is marked
read-onlyvoid setValues(String key, String[] values) throws UnmodifiableException
javax.portlet.PortletPreferences#setValues(String, String[])
Sets the value of the given preference.
key
- name of the preferencevalues
- value to be set
UnmodifiableException
- thrown if the preference is marked
read-onlyvoid store() throws IOException
javax.portlet.PortletPreferences#store()
Stores the current set of preferences.
IOException
- thrown if there is an error while storing the
preferences
UnsupportedOperationException
- if this method is called inside a render call,
or if customization is not enabled.
SecurityException
- if the current user has insufficient privileges to
modify preferences.
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |