org.springframework.mock.web.portlet
Class MockPortletPreferences
java.lang.Object
   org.springframework.mock.web.portlet.MockPortletPreferences
org.springframework.mock.web.portlet.MockPortletPreferences
- All Implemented Interfaces: 
- javax.portlet.PortletPreferences
- public class MockPortletPreferences 
- extends Object- implements javax.portlet.PortletPreferences
Mock implementation of the PortletPreferences interface.
- Since:
- 2.0
- Author:
- John A. Lewis, Juergen Hoeller
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
MockPortletPreferences
public MockPortletPreferences()
setReadOnly
public void setReadOnly(String key,
                        boolean readOnly)
- 
 
- 
 
isReadOnly
public boolean isReadOnly(String key)
- 
- Specified by:
- isReadOnlyin interface- javax.portlet.PortletPreferences
 
- 
 
getValue
public String getValue(String key,
                       String def)
- 
- Specified by:
- getValuein interface- javax.portlet.PortletPreferences
 
- 
 
getValues
public String[] getValues(String key,
                          String[] def)
- 
- Specified by:
- getValuesin interface- javax.portlet.PortletPreferences
 
- 
 
setValue
public void setValue(String key,
                     String value)
              throws javax.portlet.ReadOnlyException
- 
- Specified by:
- setValuein interface- javax.portlet.PortletPreferences
 
- 
- Throws:
- javax.portlet.ReadOnlyException
 
setValues
public void setValues(String key,
                      String[] values)
               throws javax.portlet.ReadOnlyException
- 
- Specified by:
- setValuesin interface- javax.portlet.PortletPreferences
 
- 
- Throws:
- javax.portlet.ReadOnlyException
 
getNames
public Enumeration getNames()
- 
- Specified by:
- getNamesin interface- javax.portlet.PortletPreferences
 
- 
 
getMap
public Map getMap()
- 
- Specified by:
- getMapin interface- javax.portlet.PortletPreferences
 
- 
 
reset
public void reset(String key)
           throws javax.portlet.ReadOnlyException
- 
- Specified by:
- resetin interface- javax.portlet.PortletPreferences
 
- 
- Throws:
- javax.portlet.ReadOnlyException
 
setPreferencesValidator
public void setPreferencesValidator(javax.portlet.PreferencesValidator preferencesValidator)
- 
 
- 
 
store
public void store()
           throws IOException,
                  javax.portlet.ValidatorException
- 
- Specified by:
- storein interface- javax.portlet.PortletPreferences
 
- 
- Throws:
- IOException
- javax.portlet.ValidatorException
 
Copyright © 2002-2008 The Spring Framework.