|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.portlet.state.AbstractPropertyContext
Field Summary | |
static int |
NO_CHANGE
No change have been done or attempted. |
static int |
UPDATE_FAILED
Attempts to update the state that failed has been performed. |
static int |
UPDATE_SUCCEDED
The state has been succesfully updated. |
Constructor Summary | |
AbstractPropertyContext(AccessMode access,
ValueMap userPrefs,
PreferencesInfo portletPrefs)
Create a new object. |
Method Summary | |
java.util.Set |
getKeys()
Return the key set. |
java.util.Set |
getPortletKeys()
Return the key set. |
Value |
getPortletValue(java.lang.String key)
Return for a key a value or null if no suitable value is found. |
ValueMap |
getPrefs()
|
int |
getStatus()
|
Value |
getValue(java.lang.String key)
Return for a specified key its value or null if the value does not exist. |
boolean |
isPortletReadOnly(java.lang.String key)
Say if the key is marked as read only or not. |
boolean |
isReadOnly()
Return true if the preferences are read only. |
void |
update(PropertyChange[] changes)
Update the preferences. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NO_CHANGE
public static final int UPDATE_FAILED
public static final int UPDATE_SUCCEDED
Constructor Detail |
public AbstractPropertyContext(AccessMode access, ValueMap userPrefs, PreferencesInfo portletPrefs) throws java.lang.IllegalArgumentException
userPrefs
- the user prefsportletPrefs
- the portlet prefs
java.lang.IllegalArgumentException
- if the portletPrefs are nullMethod Detail |
public void update(PropertyChange[] changes) throws java.lang.IllegalStateException
PropertyContext
update
in interface PropertyContext
java.lang.IllegalStateException
- if the preferences is not writablepublic java.util.Set getKeys()
PropertyContext
getKeys
in interface PropertyContext
public Value getValue(java.lang.String key) throws java.lang.IllegalArgumentException
PropertyContext
getValue
in interface PropertyContext
key
- the lookup key
java.lang.IllegalArgumentException
- if the key is nullpublic java.util.Set getPortletKeys() throws java.lang.IllegalArgumentException
PropertyContext
getPortletKeys
in interface PropertyContext
java.lang.IllegalArgumentException
- if the array is nullpublic Value getPortletValue(java.lang.String key) throws java.lang.IllegalArgumentException
PropertyContext
getPortletValue
in interface PropertyContext
key
- the requested key
java.lang.IllegalArgumentException
- if the key or the array is nullpublic boolean isPortletReadOnly(java.lang.String key) throws java.lang.IllegalArgumentException
PropertyContext
isPortletReadOnly
in interface PropertyContext
key
- the requested key
java.lang.IllegalArgumentException
- if the key or the array is nullpublic boolean isReadOnly()
PropertyContext
isReadOnly
in interface PropertyContext
public ValueMap getPrefs()
public int getStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |