Liferay 6.0.5

com.liferay.portlet
Class PortletPreferencesImpl

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

public class PortletPreferencesImpl
extends Object
implements Cloneable, PortletPreferences, Serializable

See Also:
Serialized Form

Constructor Summary
PortletPreferencesImpl()
           
PortletPreferencesImpl(long companyId, long ownerId, int ownerType, long plid, String portletId, Map<String,Preference> preferences)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
protected  long getCompanyId()
           
 Map<String,String[]> getMap()
           
 Enumeration<String> getNames()
           
protected  long getOwnerId()
           
protected  int getOwnerType()
           
protected  long getPlid()
           
protected  String getPortletId()
           
protected  Map<String,Preference> getPreferences()
           
 String getValue(String key, String def)
           
 String[] getValues(String key, String[] def)
           
 int hashCode()
           
 boolean isReadOnly(String key)
           
 void reset()
           
 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
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletPreferencesImpl

public PortletPreferencesImpl()

PortletPreferencesImpl

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

clone

public Object clone()
Overrides:
clone in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

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 def)
Specified by:
getValue in interface PortletPreferences

getValues

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isReadOnly

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

reset

public void reset()

reset

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

setValue

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

setValues

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

store

public void store()
           throws IOException,
                  ValidatorException
Specified by:
store in interface PortletPreferences
Throws:
IOException
ValidatorException

getCompanyId

protected long getCompanyId()

getOwnerId

protected long getOwnerId()

getOwnerType

protected int getOwnerType()

getPlid

protected long getPlid()

getPortletId

protected String getPortletId()

getPreferences

protected Map<String,Preference> getPreferences()

Liferay 6.0.5