Liferay 6.1.2-ce-ga3

com.liferay.portlet
Class PortletPreferencesFactoryUtil

java.lang.Object
  extended by com.liferay.portlet.PortletPreferencesFactoryUtil

public class PortletPreferencesFactoryUtil
extends Object


Constructor Summary
PortletPreferencesFactoryUtil()
           
 
Method Summary
static PortletPreferences fromDefaultXML(String xml)
           
static PortletPreferences fromXML(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml)
           
static PortalPreferences fromXML(long companyId, long ownerId, int ownerType, String xml)
           
static PortletPreferences getLayoutPortletSetup(Layout layout, String portletId)
           
static PortalPreferences getPortalPreferences(javax.servlet.http.HttpServletRequest request)
           
static PortalPreferences getPortalPreferences(javax.servlet.http.HttpSession session, long companyId, long userId, boolean signedIn)
           
static PortalPreferences getPortalPreferences(long companyId, long userId, boolean signedIn)
           
static PortalPreferences getPortalPreferences(PortletRequest portletRequest)
           
static PortletPreferences getPortletPreferences(javax.servlet.http.HttpServletRequest request, String portletId)
           
static PortletPreferencesFactory getPortletPreferencesFactory()
           
static PortletPreferencesIds getPortletPreferencesIds(javax.servlet.http.HttpServletRequest request, Layout selLayout, String portletId)
           
static PortletPreferencesIds getPortletPreferencesIds(javax.servlet.http.HttpServletRequest request, String portletId)
           
static PortletPreferencesIds getPortletPreferencesIds(long scopeGroupId, long userId, Layout layout, String portletId, boolean modeEditGuest)
           
static PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest request, String portletId)
           
static PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest request, String portletId, String defaultPreferences)
           
static PortletPreferences getPortletSetup(Layout layout, String portletId, String defaultPreferences)
           
static PortletPreferences getPortletSetup(long scopeGroupId, Layout layout, String portletId, String defaultPreferences)
           
static PortletPreferences getPortletSetup(PortletRequest portletRequest)
           
static PortletPreferences getPortletSetup(PortletRequest portletRequest, String portletId)
           
static Map<Long,PortletPreferences> getPortletSetupMap(long companyId, long groupId, long ownerId, int ownerType, String portletId, boolean privateLayout)
           
static PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest request)
           
static PreferencesValidator getPreferencesValidator(Portlet portlet)
           
static PortletPreferences getStrictLayoutPortletSetup(Layout layout, String portletId)
           
static PortletPreferences getStrictPortletSetup(Layout layout, String portletId)
           
 void setPortletPreferencesFactory(PortletPreferencesFactory portletPreferencesFactory)
           
static String toXML(PortalPreferences portalPreferences)
           
static String toXML(PortletPreferences portletPreferences)
           
 
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

fromDefaultXML

public static PortletPreferences fromDefaultXML(String xml)
                                         throws SystemException
Throws:
SystemException

fromXML

public static PortletPreferences fromXML(long companyId,
                                         long ownerId,
                                         int ownerType,
                                         long plid,
                                         String portletId,
                                         String xml)
                                  throws SystemException
Throws:
SystemException

fromXML

public static PortalPreferences fromXML(long companyId,
                                        long ownerId,
                                        int ownerType,
                                        String xml)
                                 throws SystemException
Throws:
SystemException

getLayoutPortletSetup

public static PortletPreferences getLayoutPortletSetup(Layout layout,
                                                       String portletId)
                                                throws SystemException
Throws:
SystemException

getPortalPreferences

public static PortalPreferences getPortalPreferences(javax.servlet.http.HttpServletRequest request)
                                              throws SystemException
Throws:
SystemException

getPortalPreferences

public static PortalPreferences getPortalPreferences(javax.servlet.http.HttpSession session,
                                                     long companyId,
                                                     long userId,
                                                     boolean signedIn)
                                              throws SystemException
Throws:
SystemException

getPortalPreferences

public static PortalPreferences getPortalPreferences(long companyId,
                                                     long userId,
                                                     boolean signedIn)
                                              throws SystemException
Throws:
SystemException

getPortalPreferences

public static PortalPreferences getPortalPreferences(PortletRequest portletRequest)
                                              throws SystemException
Throws:
SystemException

getPortletPreferences

public static PortletPreferences getPortletPreferences(javax.servlet.http.HttpServletRequest request,
                                                       String portletId)
                                                throws PortalException,
                                                       SystemException
Throws:
PortalException
SystemException

getPortletPreferencesFactory

public static PortletPreferencesFactory getPortletPreferencesFactory()

getPortletPreferencesIds

public static PortletPreferencesIds getPortletPreferencesIds(javax.servlet.http.HttpServletRequest request,
                                                             Layout selLayout,
                                                             String portletId)
                                                      throws PortalException,
                                                             SystemException
Throws:
PortalException
SystemException

getPortletPreferencesIds

public static PortletPreferencesIds getPortletPreferencesIds(javax.servlet.http.HttpServletRequest request,
                                                             String portletId)
                                                      throws PortalException,
                                                             SystemException
Throws:
PortalException
SystemException

getPortletPreferencesIds

public static PortletPreferencesIds getPortletPreferencesIds(long scopeGroupId,
                                                             long userId,
                                                             Layout layout,
                                                             String portletId,
                                                             boolean modeEditGuest)
                                                      throws PortalException,
                                                             SystemException
Throws:
PortalException
SystemException

getPortletSetup

public static PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest request,
                                                 String portletId)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

getPortletSetup

public static PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest request,
                                                 String portletId,
                                                 String defaultPreferences)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

getPortletSetup

public static PortletPreferences getPortletSetup(Layout layout,
                                                 String portletId,
                                                 String defaultPreferences)
                                          throws SystemException
Throws:
SystemException

getPortletSetup

public static PortletPreferences getPortletSetup(long scopeGroupId,
                                                 Layout layout,
                                                 String portletId,
                                                 String defaultPreferences)
                                          throws SystemException
Throws:
SystemException

getPortletSetup

public static PortletPreferences getPortletSetup(PortletRequest portletRequest)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

getPortletSetup

public static PortletPreferences getPortletSetup(PortletRequest portletRequest,
                                                 String portletId)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

getPortletSetupMap

public static Map<Long,PortletPreferences> getPortletSetupMap(long companyId,
                                                              long groupId,
                                                              long ownerId,
                                                              int ownerType,
                                                              String portletId,
                                                              boolean privateLayout)
                                                       throws SystemException
Throws:
SystemException

getPreferences

public static PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest request)

getPreferencesValidator

public static PreferencesValidator getPreferencesValidator(Portlet portlet)

getStrictLayoutPortletSetup

public static PortletPreferences getStrictLayoutPortletSetup(Layout layout,
                                                             String portletId)
                                                      throws SystemException
Throws:
SystemException

getStrictPortletSetup

public static PortletPreferences getStrictPortletSetup(Layout layout,
                                                       String portletId)
                                                throws SystemException
Throws:
SystemException

toXML

public static String toXML(PortalPreferences portalPreferences)

toXML

public static String toXML(PortletPreferences portletPreferences)

setPortletPreferencesFactory

public void setPortletPreferencesFactory(PortletPreferencesFactory portletPreferencesFactory)

Liferay 6.1.2-ce-ga3