Liferay 7.0-ce-b4

com.liferay.portal.kernel.upgrade
Class MockPortletPreferences

java.lang.Object
  extended by com.liferay.portal.kernel.upgrade.MockPortletPreferences
All Implemented Interfaces:
PortletPreferences

public class MockPortletPreferences
extends Object
implements PortletPreferences


Constructor Summary
MockPortletPreferences()
           
 
Method Summary
 Map<String,String[]> getMap()
           
 Enumeration<String> getNames()
           
 String getValue(String key, String defaultValue)
           
 String[] getValues(String key, String[] defaultValues)
           
 boolean isReadOnly(String key)
           
 void reset(String key)
           
 void setValue(String key, String value)
           
 void setValues(String key, String[] values)
           
 void store()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockPortletPreferences

public MockPortletPreferences()
Method Detail

getMap

public Map<String,String[]> getMap()
Specified by:
getMap in interface PortletPreferences

getNames

public Enumeration<String> getNames()
Specified by:
getNames in interface PortletPreferences

getValue

public String getValue(String key,
                       String defaultValue)
Specified by:
getValue in interface PortletPreferences

getValues

public String[] getValues(String key,
                          String[] defaultValues)
Specified by:
getValues in interface PortletPreferences

isReadOnly

public boolean isReadOnly(String key)
Specified by:
isReadOnly in interface PortletPreferences

reset

public void reset(String key)
Specified by:
reset in interface PortletPreferences

setValue

public void setValue(String key,
                     String value)
Specified by:
setValue in interface PortletPreferences

setValues

public void setValues(String key,
                      String[] values)
Specified by:
setValues in interface PortletPreferences

store

public void store()
Specified by:
store in interface PortletPreferences

Liferay 7.0-ce-b4