|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.portlet.state.AbstractPropertyContext
| Field Summary | |
private AccessMode |
access
The access mode. |
static int |
NO_CHANGE
No change have been done or attempted. |
private PreferencesInfo |
portletPrefs
The runtime preferences info for the system. |
private PropertyMap |
prefs
The user prefs. |
private int |
status
State change status. |
static int |
UPDATE_FAILED
Attempts to update the state that failed has been performed. |
static int |
UPDATE_SUCCESSFUL
The state has been succesfully updated. |
| Constructor Summary | |
AbstractPropertyContext(AccessMode access,
PropertyMap 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. |
PropertyMap |
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_SUCCESSFUL
private PropertyMap prefs
private PreferencesInfo portletPrefs
private AccessMode access
private int status
| Constructor Detail |
public AbstractPropertyContext(AccessMode access, PropertyMap userPrefs, PreferencesInfo portletPrefs) throws java.lang.IllegalArgumentException
userPrefs - the user prefsportletPrefs - the portlet prefs
java.lang.IllegalArgumentException - if the portletPrefs are null| Method Detail |
public void update(PropertyChange[] changes) throws java.lang.IllegalStateException
PropertyContext
update in interface PropertyContextjava.lang.IllegalStateException - if the preferences is not writablepublic java.util.Set getKeys()
PropertyContext
getKeys in interface PropertyContextpublic Value getValue(java.lang.String key) throws java.lang.IllegalArgumentException
PropertyContext
getValue in interface PropertyContextkey - the lookup key
java.lang.IllegalArgumentException - if the key is null
public java.util.Set getPortletKeys()
throws java.lang.IllegalArgumentException
PropertyContext
getPortletKeys in interface PropertyContextjava.lang.IllegalArgumentException - if the array is nullpublic Value getPortletValue(java.lang.String key) throws java.lang.IllegalArgumentException
PropertyContext
getPortletValue in interface PropertyContextkey - the requested key
java.lang.IllegalArgumentException - if the key or the array is null
public boolean isPortletReadOnly(java.lang.String key)
throws java.lang.IllegalArgumentException
PropertyContext
isPortletReadOnly in interface PropertyContextkey - the requested key
java.lang.IllegalArgumentException - if the key or the array is nullpublic boolean isReadOnly()
PropertyContext
isReadOnly in interface PropertyContextpublic PropertyMap getPrefs()
public int getStatus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||