com.liferay.portlet
Class PortalPreferencesWrapper

java.lang.Object
  extended by com.liferay.portlet.PortalPreferencesWrapper
All Implemented Interfaces:
javax.portlet.PortletPreferences

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

Author:
Alexander Chow

Constructor Summary
PortalPreferencesWrapper(PortalPreferencesImpl portalPreferencesImpl)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String[]> getMap()
           
 java.util.Enumeration<java.lang.String> getNames()
           
 PortalPreferencesImpl getPortalPreferencesImpl()
           
 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 key)
           
 void reset(java.lang.String key)
           
 void setValue(java.lang.String key, java.lang.String value)
           
 void setValues(java.lang.String key, java.lang.String[] values)
           
 void store()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalPreferencesWrapper

public PortalPreferencesWrapper(PortalPreferencesImpl portalPreferencesImpl)
Method Detail

getMap

public java.util.Map<java.lang.String,java.lang.String[]> getMap()
Specified by:
getMap in interface javax.portlet.PortletPreferences

getNames

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

getPortalPreferencesImpl

public PortalPreferencesImpl getPortalPreferencesImpl()

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 key)
Specified by:
isReadOnly in interface javax.portlet.PortletPreferences

reset

public void reset(java.lang.String key)
           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[] values)
               throws javax.portlet.ReadOnlyException
Specified by:
setValues in interface javax.portlet.PortletPreferences
Throws:
javax.portlet.ReadOnlyException

store

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