Class 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 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 IllegalArgumentException
        Create 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:
        update in interface org.gatein.pc.api.state.PropertyContext
        Throws:
        IllegalStateException
      • getKeys

        public Set<String> getKeys()
        Specified by:
        getKeys in interface org.gatein.pc.api.state.PropertyContext
      • isReadOnly

        public boolean isReadOnly()
        Specified by:
        isReadOnly in interface org.gatein.pc.api.state.PropertyContext
      • getPrefs

        public org.gatein.pc.api.state.PropertyMap getPrefs()
      • getStatus

        public int getStatus()