Class PortletPreferencesFactoryUtil
Object
com.liferay.portal.kernel.portlet.PortletPreferencesFactoryUtil
- Author:
- Brian Wing Shun Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkControlPanelPortletPreferences
(ThemeDisplay themeDisplay, Portlet portlet) static PortletPreferences
fromDefaultXML
(String xml) static PortalPreferences
static PortletPreferences
static PortletPreferences
getExistingPortletSetup
(Layout layout, String portletId) static PortletPreferences
getExistingPortletSetup
(PortletRequest portletRequest) static PortletPreferences
getLayoutPortletSetup
(long companyId, long ownerId, int ownerType, long plid, String portletId, String defaultPreferences) static PortletPreferences
getLayoutPortletSetup
(Layout layout, String portletId) static PortletPreferences
getLayoutPortletSetup
(Layout layout, String portletId, String defaultPreferences) static PortalPreferences
getPortalPreferences
(long userId, boolean signedIn) static PortalPreferences
getPortalPreferences
(PortletRequest portletRequest) static PortalPreferences
getPortalPreferences
(javax.servlet.http.HttpServletRequest httpServletRequest) static PortalPreferences
getPortalPreferences
(javax.servlet.http.HttpSession httpSession, long userId, boolean signedIn) static PortletPreferences
getPortletPreferences
(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) static PortletPreferencesFactory
static PortletPreferencesIds
getPortletPreferencesIds
(long companyId, long siteGroupId, long plid, String portletId, String settingsScope) static PortletPreferencesIds
getPortletPreferencesIds
(long siteGroupId, long userId, Layout layout, String portletId, boolean modeEditGuest) static PortletPreferencesIds
getPortletPreferencesIds
(javax.servlet.http.HttpServletRequest httpServletRequest, Layout selLayout, String portletId) static PortletPreferencesIds
getPortletPreferencesIds
(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) static PortletPreferences
getPortletSetup
(long siteGroupId, Layout layout, String portletId, String defaultPreferences) static PortletPreferences
getPortletSetup
(Layout layout, String portletId, String defaultPreferences) static PortletPreferences
getPortletSetup
(PortletRequest portletRequest) static PortletPreferences
getPortletSetup
(PortletRequest portletRequest, String portletId) static PortletPreferences
getPortletSetup
(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) static PortletPreferences
getPortletSetup
(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId, String defaultPreferences) static Map<Long,
PortletPreferences> getPortletSetupMap
(long companyId, long groupId, long ownerId, int ownerType, String portletId, boolean privateLayout) static PortletPreferences
getPreferences
(javax.servlet.http.HttpServletRequest httpServletRequest) static PreferencesValidator
getPreferencesValidator
(Portlet portlet) static PortletPreferences
getStrictLayoutPortletSetup
(Layout layout, String portletId) static PortletPreferences
getStrictPortletSetup
(long companyId, long groupId, 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)
-
Constructor Details
-
PortletPreferencesFactoryUtil
public PortletPreferencesFactoryUtil()
-
-
Method Details
-
checkControlPanelPortletPreferences
public static void checkControlPanelPortletPreferences(ThemeDisplay themeDisplay, Portlet portlet) throws PortalException - Throws:
PortalException
-
fromDefaultXML
-
fromXML
-
fromXML
public static PortletPreferences fromXML(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml) -
getExistingPortletSetup
public static PortletPreferences getExistingPortletSetup(Layout layout, String portletId) throws PortalException - Throws:
PortalException
-
getExistingPortletSetup
public static PortletPreferences getExistingPortletSetup(PortletRequest portletRequest) throws PortalException - Throws:
PortalException
-
getLayoutPortletSetup
-
getLayoutPortletSetup
public static PortletPreferences getLayoutPortletSetup(Layout layout, String portletId, String defaultPreferences) -
getLayoutPortletSetup
public static PortletPreferences getLayoutPortletSetup(long companyId, long ownerId, int ownerType, long plid, String portletId, String defaultPreferences) -
getPortalPreferences
public static PortalPreferences getPortalPreferences(javax.servlet.http.HttpServletRequest httpServletRequest) -
getPortalPreferences
public static PortalPreferences getPortalPreferences(javax.servlet.http.HttpSession httpSession, long userId, boolean signedIn) -
getPortalPreferences
-
getPortalPreferences
-
getPortletPreferences
public static PortletPreferences getPortletPreferences(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) throws PortalException - Throws:
PortalException
-
getPortletPreferencesFactory
-
getPortletPreferencesIds
public static PortletPreferencesIds getPortletPreferencesIds(javax.servlet.http.HttpServletRequest httpServletRequest, Layout selLayout, String portletId) throws PortalException - Throws:
PortalException
-
getPortletPreferencesIds
public static PortletPreferencesIds getPortletPreferencesIds(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) throws PortalException - Throws:
PortalException
-
getPortletPreferencesIds
public static PortletPreferencesIds getPortletPreferencesIds(long siteGroupId, long userId, Layout layout, String portletId, boolean modeEditGuest) throws PortalException - Throws:
PortalException
-
getPortletPreferencesIds
public static PortletPreferencesIds getPortletPreferencesIds(long companyId, long siteGroupId, long plid, String portletId, String settingsScope) -
getPortletSetup
public static PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) throws PortalException - Throws:
PortalException
-
getPortletSetup
public static PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId, String defaultPreferences) throws PortalException - Throws:
PortalException
-
getPortletSetup
public static PortletPreferences getPortletSetup(Layout layout, String portletId, String defaultPreferences) -
getPortletSetup
public static PortletPreferences getPortletSetup(long siteGroupId, Layout layout, String portletId, String defaultPreferences) -
getPortletSetup
public static PortletPreferences getPortletSetup(PortletRequest portletRequest) throws PortalException - Throws:
PortalException
-
getPortletSetup
public static PortletPreferences getPortletSetup(PortletRequest portletRequest, String portletId) throws PortalException - Throws:
PortalException
-
getPortletSetupMap
public static Map<Long,PortletPreferences> getPortletSetupMap(long companyId, long groupId, long ownerId, int ownerType, String portletId, boolean privateLayout) -
getPreferences
public static PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest httpServletRequest) -
getPreferencesValidator
-
getStrictLayoutPortletSetup
-
getStrictPortletSetup
-
getStrictPortletSetup
public static PortletPreferences getStrictPortletSetup(long companyId, long groupId, String portletId) -
strictFromXML
public static PortletPreferences strictFromXML(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml) -
toXML
-
toXML
-
setPortletPreferencesFactory
-