org.apache.struts2.portlet.interceptor
Class ServletPortletPreferences

java.lang.Object
  extended by org.apache.struts2.portlet.interceptor.ServletPortletPreferences
All Implemented Interfaces:
javax.portlet.PortletPreferences

public class ServletPortletPreferences
extends java.lang.Object
implements javax.portlet.PortletPreferences

Simple portlet preferences implementation that uses a map in the Session as storage.


Constructor Summary
ServletPortletPreferences(java.util.Map session)
           
 
Method Summary
 java.util.Map getMap()
           
 java.util.Enumeration getNames()
           
 java.lang.String getValue(java.lang.String key, java.lang.String def)
           
 java.lang.String[] getValues(java.lang.String key, java.lang.String[] def)
           
 boolean isReadOnly(java.lang.String arg0)
           
 void reset(java.lang.String arg0)
           
 void setValue(java.lang.String key, java.lang.String value)
           
 void setValues(java.lang.String key, java.lang.String[] value)
           
 void store()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletPortletPreferences

public ServletPortletPreferences(java.util.Map session)
Method Detail

getMap

public java.util.Map getMap()
Specified by:
getMap in interface javax.portlet.PortletPreferences

getNames

public java.util.Enumeration getNames()
Specified by:
getNames in interface javax.portlet.PortletPreferences

getValue

public java.lang.String getValue(java.lang.String key,
                                 java.lang.String def)
Specified by:
getValue in interface javax.portlet.PortletPreferences

getValues

public java.lang.String[] getValues(java.lang.String key,
                                    java.lang.String[] def)
Specified by:
getValues in interface javax.portlet.PortletPreferences

isReadOnly

public boolean isReadOnly(java.lang.String arg0)
Specified by:
isReadOnly in interface javax.portlet.PortletPreferences

reset

public void reset(java.lang.String arg0)
           throws javax.portlet.ReadOnlyException
Specified by:
reset in interface javax.portlet.PortletPreferences
Throws:
javax.portlet.ReadOnlyException

setValue

public void setValue(java.lang.String key,
                     java.lang.String value)
              throws javax.portlet.ReadOnlyException
Specified by:
setValue in interface javax.portlet.PortletPreferences
Throws:
javax.portlet.ReadOnlyException

setValues

public void setValues(java.lang.String key,
                      java.lang.String[] value)
               throws javax.portlet.ReadOnlyException
Specified by:
setValues in interface javax.portlet.PortletPreferences
Throws:
javax.portlet.ReadOnlyException

store

public void store()
           throws java.io.IOException,
                  javax.portlet.ValidatorException
Specified by:
store in interface javax.portlet.PortletPreferences
Throws:
java.io.IOException
javax.portlet.ValidatorException


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.