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
FieldsModifier and TypeFieldDescriptionstatic final intNo change have been done or attempted.static final intAttempts to update the state that failed has been performed.static final intThe state has been succesfully updated.Fields inherited from interface org.gatein.pc.api.state.PropertyContext
PREFERENCES_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionAbstractPropertyContext(org.gatein.pc.api.state.AccessMode access, org.gatein.pc.api.state.PropertyMap prefs, boolean render) Create a new object. -
Method Summary
-
Field Details
-
NO_CHANGE
public static final int NO_CHANGENo change have been done or attempted.- See Also:
-
UPDATE_FAILED
public static final int UPDATE_FAILEDAttempts to update the state that failed has been performed.- See Also:
-
UPDATE_SUCCESSFUL
public static final int UPDATE_SUCCESSFULThe state has been succesfully updated.- See Also:
-
-
Constructor Details
-
AbstractPropertyContext
public AbstractPropertyContext(org.gatein.pc.api.state.AccessMode access, org.gatein.pc.api.state.PropertyMap prefs, boolean render) throws IllegalArgumentException Create a new object.- Parameters:
prefs- the user prefs- Throws:
IllegalArgumentException- if the portletPrefs are null
-
-
Method Details
-
update
- Specified by:
updatein interfaceorg.gatein.pc.api.state.PropertyContext- Throws:
IllegalStateException
-
getKeys
- Specified by:
getKeysin interfaceorg.gatein.pc.api.state.PropertyContext
-
getValue
- 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()
-