com.liferay.portlet
Class PortletPreferencesImpl

java.lang.Object
  extended by com.liferay.portlet.BasePreferencesImpl
      extended by com.liferay.portlet.PortletPreferencesImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.portlet.PortletPreferences

public class PortletPreferencesImpl
extends BasePreferencesImpl
implements java.lang.Cloneable, javax.portlet.PortletPreferences, java.io.Serializable

Author:
Brian Wing Shun Chan, Alexander Chow
See Also:
Serialized Form

Constructor Summary
PortletPreferencesImpl()
           
PortletPreferencesImpl(long companyId, long ownerId, int ownerType, long plid, java.lang.String portletId, java.util.Map<java.lang.String,Preference> preferences)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 long getPlid()
           
protected  java.lang.String getPortletId()
           
 int hashCode()
           
 void reset(java.lang.String key)
           
 void store()
           
 
Methods inherited from class com.liferay.portlet.BasePreferencesImpl
getActualValue, getActualValues, getCompanyId, getMap, getModifiedPreferences, getNames, getOriginalPreferences, getOwnerId, getOwnerType, getPreferences, getValue, getValues, getXmlSafeValue, getXmlSafeValues, isReadOnly, reset, setValue, setValues
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.portlet.PortletPreferences
getMap, getNames, getValue, getValues, isReadOnly, setValue, setValues
 

Constructor Detail

PortletPreferencesImpl

public PortletPreferencesImpl()

PortletPreferencesImpl

public PortletPreferencesImpl(long companyId,
                              long ownerId,
                              int ownerType,
                              long plid,
                              java.lang.String portletId,
                              java.util.Map<java.lang.String,Preference> preferences)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getPlid

public long getPlid()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

reset

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

store

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

getPortletId

protected java.lang.String getPortletId()