com.liferay.portlet
Class PortletPreferencesFactoryUtil

java.lang.Object
  extended bycom.liferay.portlet.PortletPreferencesFactoryUtil

public class PortletPreferencesFactoryUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
PortletPreferencesFactoryUtil()
           
 
Method Summary
static PortalPreferences getPortalPreferences(javax.portlet.ActionRequest req)
           
static PortalPreferences getPortalPreferences(javax.servlet.http.HttpServletRequest req)
           
static PortalPreferences getPortalPreferences(javax.portlet.RenderRequest req)
           
static javax.portlet.PortletPreferences getPortletPreferences(javax.servlet.http.HttpServletRequest req, java.lang.String portletId)
           
static PortletPreferencesFactory getPortletPreferencesFactory()
           
static PortletPreferencesIds getPortletPreferencesIds(javax.servlet.http.HttpServletRequest req, Layout selLayout, java.lang.String portletId)
           
static PortletPreferencesIds getPortletPreferencesIds(javax.servlet.http.HttpServletRequest req, java.lang.String portletId)
           
static javax.portlet.PortletPreferences getPortletSetup(javax.portlet.ActionRequest req, java.lang.String portletId, boolean uniquePerLayout, boolean uniquePerGroup)
           
static javax.portlet.PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest req, java.lang.String portletId, boolean uniquePerLayout, boolean uniquePerGroup)
           
static javax.portlet.PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest req, java.lang.String portletId, boolean uniquePerLayout, boolean uniquePerGroup, java.lang.String defaultPreferences)
           
static javax.portlet.PortletPreferences getPortletSetup(Layout layout, java.lang.String portletId)
           
static javax.portlet.PortletPreferences getPortletSetup(Layout layout, java.lang.String portletId, boolean uniquePerLayout, boolean uniquePerGroup, java.lang.String defaultPreferences)
           
static javax.portlet.PortletPreferences getPortletSetup(javax.portlet.RenderRequest req, java.lang.String portletId, boolean uniquePerLayout, boolean uniquePerGroup)
           
static javax.portlet.PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest req)
           
static javax.portlet.PreferencesValidator getPreferencesValidator(Portlet portlet)
           
 void setPortletPreferencesFactory(PortletPreferencesFactory portletPreferencesFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletPreferencesFactoryUtil

public PortletPreferencesFactoryUtil()
Method Detail

getPortalPreferences

public static PortalPreferences getPortalPreferences(javax.servlet.http.HttpServletRequest req)
                                              throws com.liferay.portal.PortalException,
                                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPortalPreferences

public static PortalPreferences getPortalPreferences(javax.portlet.ActionRequest req)
                                              throws com.liferay.portal.PortalException,
                                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPortalPreferences

public static PortalPreferences getPortalPreferences(javax.portlet.RenderRequest req)
                                              throws com.liferay.portal.PortalException,
                                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPortletPreferences

public static javax.portlet.PortletPreferences getPortletPreferences(javax.servlet.http.HttpServletRequest req,
                                                                     java.lang.String portletId)
                                                              throws com.liferay.portal.PortalException,
                                                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPortletPreferencesFactory

public static PortletPreferencesFactory getPortletPreferencesFactory()

getPortletPreferencesIds

public static PortletPreferencesIds getPortletPreferencesIds(javax.servlet.http.HttpServletRequest req,
                                                             java.lang.String portletId)
                                                      throws com.liferay.portal.PortalException,
                                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPortletPreferencesIds

public static PortletPreferencesIds getPortletPreferencesIds(javax.servlet.http.HttpServletRequest req,
                                                             Layout selLayout,
                                                             java.lang.String portletId)
                                                      throws com.liferay.portal.PortalException,
                                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPortletSetup

public static javax.portlet.PortletPreferences getPortletSetup(Layout layout,
                                                               java.lang.String portletId)
                                                        throws com.liferay.portal.PortalException,
                                                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPortletSetup

public static javax.portlet.PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest req,
                                                               java.lang.String portletId,
                                                               boolean uniquePerLayout,
                                                               boolean uniquePerGroup)
                                                        throws com.liferay.portal.PortalException,
                                                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPortletSetup

public static javax.portlet.PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest req,
                                                               java.lang.String portletId,
                                                               boolean uniquePerLayout,
                                                               boolean uniquePerGroup,
                                                               java.lang.String defaultPreferences)
                                                        throws com.liferay.portal.PortalException,
                                                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPortletSetup

public static javax.portlet.PortletPreferences getPortletSetup(Layout layout,
                                                               java.lang.String portletId,
                                                               boolean uniquePerLayout,
                                                               boolean uniquePerGroup,
                                                               java.lang.String defaultPreferences)
                                                        throws com.liferay.portal.PortalException,
                                                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPortletSetup

public static javax.portlet.PortletPreferences getPortletSetup(javax.portlet.ActionRequest req,
                                                               java.lang.String portletId,
                                                               boolean uniquePerLayout,
                                                               boolean uniquePerGroup)
                                                        throws com.liferay.portal.PortalException,
                                                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPortletSetup

public static javax.portlet.PortletPreferences getPortletSetup(javax.portlet.RenderRequest req,
                                                               java.lang.String portletId,
                                                               boolean uniquePerLayout,
                                                               boolean uniquePerGroup)
                                                        throws com.liferay.portal.PortalException,
                                                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getPreferences

public static javax.portlet.PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest req)

getPreferencesValidator

public static javax.portlet.PreferencesValidator getPreferencesValidator(Portlet portlet)

setPortletPreferencesFactory

public void setPortletPreferencesFactory(PortletPreferencesFactory portletPreferencesFactory)