Class PortletPreferencesImpl

Object
com.liferay.portlet.PortletPreferencesImpl
All Implemented Interfaces:
jakarta.portlet.PortletPreferences, Serializable, Cloneable
Direct Known Subclasses:
StrictPortletPreferencesImpl

public class PortletPreferencesImpl extends Object implements Cloneable, jakarta.portlet.PortletPreferences, Serializable
Author:
Brian Wing Shun Chan, Alexander Chow
See Also:
  • Constructor Details

    • PortletPreferencesImpl

      public PortletPreferencesImpl()
    • PortletPreferencesImpl

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

      public PortletPreferencesImpl(String xml, Map<String,Preference> preferences)
  • Method Details

    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • getMap

      public Map<String,String[]> getMap()
      Specified by:
      getMap in interface jakarta.portlet.PortletPreferences
    • getNames

      public Enumeration<String> getNames()
      Specified by:
      getNames in interface jakarta.portlet.PortletPreferences
    • getOwnerId

      public long getOwnerId()
    • getOwnerType

      public int getOwnerType()
    • getPlid

      public long getPlid()
    • getPreferences

      public Map<String,Preference> getPreferences()
    • getValue

      public String getValue(String key, String def)
      Specified by:
      getValue in interface jakarta.portlet.PortletPreferences
    • getValues

      public String[] getValues(String key, String[] def)
      Specified by:
      getValues in interface jakarta.portlet.PortletPreferences
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isReadOnly

      public boolean isReadOnly(String key)
      Specified by:
      isReadOnly in interface jakarta.portlet.PortletPreferences
    • reset

      public void reset(String key) throws jakarta.portlet.ReadOnlyException
      Specified by:
      reset in interface jakarta.portlet.PortletPreferences
      Throws:
      jakarta.portlet.ReadOnlyException
    • setPlid

      public void setPlid(long plid)
    • setValue

      public void setValue(String key, String value) throws jakarta.portlet.ReadOnlyException
      Specified by:
      setValue in interface jakarta.portlet.PortletPreferences
      Throws:
      jakarta.portlet.ReadOnlyException
    • setValues

      public void setValues(String key, String... values) throws jakarta.portlet.ReadOnlyException
      Specified by:
      setValues in interface jakarta.portlet.PortletPreferences
      Throws:
      jakarta.portlet.ReadOnlyException
    • size

      public int size()
    • store

      public void store() throws IOException, jakarta.portlet.ValidatorException
      Specified by:
      store in interface jakarta.portlet.PortletPreferences
      Throws:
      IOException
      jakarta.portlet.ValidatorException
    • getCompanyId

      protected long getCompanyId()
    • getModifiedPreferences

      protected Map<String,Preference> getModifiedPreferences()
    • getOriginalPreferences

      protected Map<String,Preference> getOriginalPreferences()
    • getOriginalXML

      protected String getOriginalXML()
    • getPortletId

      protected String getPortletId()
    • toXML

      protected String toXML()