Liferay 6.2-ce-ga5

com.liferay.portlet
Class PortletPreferencesFactoryUtil

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

@ProviderType
public class PortletPreferencesFactoryUtil
extends Object


Constructor Summary
PortletPreferencesFactoryUtil()
           
 
Method Summary
static void checkControlPanelPortletPreferences(ThemeDisplay themeDisplay, Portlet portlet)
           
static PortletPreferences fromDefaultXML(String xml)
           
static PortalPreferences fromXML(long ownerId, int ownerType, 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)
          Deprecated. As of 6.2.0, replaced by fromXML(long, int, String)
static PortletPreferences getLayoutPortletSetup(Layout layout, String portletId)
           
static PortalPreferences getPortalPreferences(javax.servlet.http.HttpServletRequest request)
           
static PortalPreferences getPortalPreferences(javax.servlet.http.HttpSession session, long userId, boolean signedIn)
           
static PortalPreferences getPortalPreferences(javax.servlet.http.HttpSession session, long companyId, long userId, boolean signedIn)
          Deprecated. As of 6.2.0, replaced by getPortalPreferences(HttpSession, long, boolean)
static PortalPreferences getPortalPreferences(long userId, boolean signedIn)
           
static PortalPreferences getPortalPreferences(long companyId, long userId, boolean signedIn)
          Deprecated. As of 6.2.0, replaced by getPortalPreferences(long, boolean)
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 PortletPreferences strictFromXML(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml)
           
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

checkControlPanelPortletPreferences

public static void checkControlPanelPortletPreferences(ThemeDisplay themeDisplay,
                                                       Portlet portlet)
                                                throws PortalException,
                                                       SystemException
Throws:
PortalException
SystemException

fromDefaultXML

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

fromXML

public static PortalPreferences fromXML(long ownerId,
                                        int ownerType,
                                        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
Deprecated. As of 6.2.0, replaced by fromXML(long, int, String)

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 userId,
                                                     boolean signedIn)
                                              throws SystemException
Throws:
SystemException

getPortalPreferences

public static PortalPreferences getPortalPreferences(javax.servlet.http.HttpSession session,
                                                     long companyId,
                                                     long userId,
                                                     boolean signedIn)
                                              throws SystemException
Deprecated. As of 6.2.0, replaced by getPortalPreferences(HttpSession, long, boolean)

Throws:
SystemException

getPortalPreferences

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

getPortalPreferences

public static PortalPreferences getPortalPreferences(long companyId,
                                                     long userId,
                                                     boolean signedIn)
                                              throws SystemException
Deprecated. As of 6.2.0, replaced by getPortalPreferences(long, boolean)

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

strictFromXML

public static PortletPreferences strictFromXML(long companyId,
                                               long ownerId,
                                               int ownerType,
                                               long plid,
                                               String portletId,
                                               String xml)
                                        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.2-ce-ga5