Package org.gatein.pc.portlet.state
Class AbstractPropertyContext
- java.lang.Object
-
- org.gatein.pc.portlet.state.AbstractPropertyContext
-
- All Implemented Interfaces:
org.gatein.pc.api.state.PropertyContext
public class AbstractPropertyContext extends Object implements org.gatein.pc.api.state.PropertyContext
- Version:
- $Revision: 6757 $
- Author:
- Julien Viet
-
-
Field Summary
Fields Modifier and Type Field Description static intNO_CHANGENo change have been done or attempted.static intUPDATE_FAILEDAttempts to update the state that failed has been performed.static intUPDATE_SUCCESSFULThe state has been succesfully updated.
-
Constructor Summary
Constructors Constructor Description AbstractPropertyContext(org.gatein.pc.api.state.AccessMode access, org.gatein.pc.api.state.PropertyMap prefs, boolean render)Create a new object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getKeys()org.gatein.pc.api.state.PropertyMapgetPrefs()intgetStatus()List<String>getValue(String key)booleanisReadOnly()voidupdate(org.gatein.pc.api.state.PropertyChange[] changes)
-
-
-
Field Detail
-
NO_CHANGE
public static final int NO_CHANGE
No change have been done or attempted.- See Also:
- Constant Field Values
-
UPDATE_FAILED
public static final int UPDATE_FAILED
Attempts to update the state that failed has been performed.- See Also:
- Constant Field Values
-
UPDATE_SUCCESSFUL
public static final int UPDATE_SUCCESSFUL
The state has been succesfully updated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractPropertyContext
public AbstractPropertyContext(org.gatein.pc.api.state.AccessMode access, org.gatein.pc.api.state.PropertyMap prefs, boolean render) throws IllegalArgumentExceptionCreate a new object.- Parameters:
prefs- the user prefs- Throws:
IllegalArgumentException- if the portletPrefs are null
-
-
Method Detail
-
update
public void update(org.gatein.pc.api.state.PropertyChange[] changes) throws IllegalStateException- Specified by:
updatein interfaceorg.gatein.pc.api.state.PropertyContext- Throws:
IllegalStateException
-
getKeys
public Set<String> getKeys()
- Specified by:
getKeysin interfaceorg.gatein.pc.api.state.PropertyContext
-
getValue
public List<String> getValue(String key) throws IllegalArgumentException
- Specified by:
getValuein interfaceorg.gatein.pc.api.state.PropertyContext- Throws:
IllegalArgumentException
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin interfaceorg.gatein.pc.api.state.PropertyContext
-
getPrefs
public org.gatein.pc.api.state.PropertyMap getPrefs()
-
getStatus
public int getStatus()
-
-