Class PortalPreferencesImpl

Object
com.liferay.portlet.PortalPreferencesImpl
All Implemented Interfaces:
com.liferay.portal.kernel.portlet.PortalPreferences, Serializable, Cloneable

public class PortalPreferencesImpl extends Object implements Cloneable, com.liferay.portal.kernel.portlet.PortalPreferences, Serializable
Author:
Brian Wing Shun Chan, Alexander Chow
See Also:
  • Field Details

    • SUPPORTS_TRANSACTION_CONFIG

      public static final com.liferay.portal.kernel.transaction.TransactionConfig SUPPORTS_TRANSACTION_CONFIG
  • Constructor Details

    • PortalPreferencesImpl

      public PortalPreferencesImpl()
    • PortalPreferencesImpl

      public PortalPreferencesImpl(long ownerId, int ownerType, Map<PortalPreferenceKey,String[]> preferences, boolean signedIn)
  • Method Details

    • clone

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

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

      public Map<String,String[]> getMap(String namespace)
    • getNames

      public Enumeration<String> getNames(String namespace)
    • getOwnerId

      public long getOwnerId()
    • getOwnerType

      public int getOwnerType()
    • getPreferences

      public Map<PortalPreferenceKey,String[]> getPreferences()
    • getUserId

      public long getUserId()
      Specified by:
      getUserId in interface com.liferay.portal.kernel.portlet.PortalPreferences
    • getValue

      public String getValue(String namespace, String key)
      Specified by:
      getValue in interface com.liferay.portal.kernel.portlet.PortalPreferences
    • getValue

      public String getValue(String namespace, String key, String defaultValue)
      Specified by:
      getValue in interface com.liferay.portal.kernel.portlet.PortalPreferences
    • getValues

      public String[] getValues(String namespace, String key)
      Specified by:
      getValues in interface com.liferay.portal.kernel.portlet.PortalPreferences
    • getValues

      public String[] getValues(String namespace, String key, String[] defaultValue)
      Specified by:
      getValues in interface com.liferay.portal.kernel.portlet.PortalPreferences
    • hashCode

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

      public boolean isSignedIn()
      Specified by:
      isSignedIn in interface com.liferay.portal.kernel.portlet.PortalPreferences
    • reset

      public void reset(String namespace, String key)
    • resetValues

      public void resetValues(String namespace)
      Specified by:
      resetValues in interface com.liferay.portal.kernel.portlet.PortalPreferences
    • setSignedIn

      public void setSignedIn(boolean signedIn)
      Specified by:
      setSignedIn in interface com.liferay.portal.kernel.portlet.PortalPreferences
    • setUserId

      public void setUserId(long userId)
      Specified by:
      setUserId in interface com.liferay.portal.kernel.portlet.PortalPreferences
    • setValue

      public void setValue(String namespace, String key, String value)
      Specified by:
      setValue in interface com.liferay.portal.kernel.portlet.PortalPreferences
    • setValues

      public void setValues(String namespace, String key, String[] values)
      Specified by:
      setValues in interface com.liferay.portal.kernel.portlet.PortalPreferences
    • size

      public int size()
      Specified by:
      size in interface com.liferay.portal.kernel.portlet.PortalPreferences
    • store

      public void store() throws IOException
      Throws:
      IOException
    • toXML

      public String toXML()