Package com.liferay.portlet
Class PortletPreferencesFactoryImpl
Object
com.liferay.portlet.PortletPreferencesFactoryImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public class PortletPreferencesFactoryImpl
extends Object
implements com.liferay.portal.kernel.portlet.PortletPreferencesFactory
- Author:
- Brian Wing Shun Chan, Alexander Chow, Minhchau Dang, Raymond Augé
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckControlPanelPortletPreferences(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.portal.kernel.model.Portlet portlet) static Map<String,Preference> fromDefaultXML(String xml) getExistingPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId) getExistingPortletSetup(PortletRequest portletRequest) getLayoutPortletSetup(long companyId, long ownerId, int ownerType, long plid, String portletId, String defaultPreferences) getLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId) getLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId, String defaultPreferences) com.liferay.portal.kernel.portlet.PortalPreferencesgetPortalPreferences(long userId, boolean signedIn) com.liferay.portal.kernel.portlet.PortalPreferencesgetPortalPreferences(PortletRequest portletRequest) com.liferay.portal.kernel.portlet.PortalPreferencesgetPortalPreferences(javax.servlet.http.HttpServletRequest httpServletRequest) com.liferay.portal.kernel.portlet.PortalPreferencesgetPortalPreferences(javax.servlet.http.HttpSession httpSession, long userId, boolean signedIn) getPortletPreferences(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) com.liferay.portal.kernel.model.PortletPreferencesIdsgetPortletPreferencesIds(long companyId, long siteGroupId, long layoutGroupId, long plid, String portletId) com.liferay.portal.kernel.model.PortletPreferencesIdsgetPortletPreferencesIds(long companyId, long siteGroupId, long plid, String portletId, String settingsScope) com.liferay.portal.kernel.model.PortletPreferencesIdsgetPortletPreferencesIds(long siteGroupId, long userId, com.liferay.portal.kernel.model.Layout layout, String portletId, boolean modeEditGuest) com.liferay.portal.kernel.model.PortletPreferencesIdsgetPortletPreferencesIds(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.model.Layout layout, String portletId) com.liferay.portal.kernel.model.PortletPreferencesIdsgetPortletPreferencesIds(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) protected PortletPreferencesgetPortletSetup(long companyId, long siteGroupId, long layoutGroupId, long plid, String portletId, String defaultPreferences, boolean strictMode) getPortletSetup(long siteGroupId, com.liferay.portal.kernel.model.Layout layout, String portletId, String defaultPreferences) getPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId, String defaultPreferences) getPortletSetup(PortletRequest portletRequest) getPortletSetup(PortletRequest portletRequest, String portletId) getPortletSetup(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) getPortletSetup(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId, String defaultPreferences) getPortletSetupMap(long companyId, long groupId, long ownerId, int ownerType, String portletId, boolean privateLayout) getPreferences(javax.servlet.http.HttpServletRequest httpServletRequest) getPreferencesValidator(com.liferay.portal.kernel.model.Portlet portlet) getStrictLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId) getStrictPortletSetup(long companyId, long groupId, String portletId) getStrictPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId) protected static PreferencereadPreference(XMLEventReader xmlEventReader) strictFromXML(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml) protected Map<String,Preference> toPreferencesMap(String xml) toXML(com.liferay.portal.kernel.portlet.PortalPreferences portalPreferences) toXML(PortletPreferences portletPreferences)
-
Constructor Details
-
PortletPreferencesFactoryImpl
public PortletPreferencesFactoryImpl()
-
-
Method Details
-
createPreferencesMap
-
checkControlPanelPortletPreferences
public void checkControlPanelPortletPreferences(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.portal.kernel.model.Portlet portlet) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
checkControlPanelPortletPreferencesin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fromDefaultXML
- Specified by:
fromDefaultXMLin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
fromXML
- Specified by:
fromXMLin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
fromXML
public PortletPreferencesImpl fromXML(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml) - Specified by:
fromXMLin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getExistingPortletSetup
public PortletPreferences getExistingPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getExistingPortletSetupin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getExistingPortletSetup
public PortletPreferences getExistingPortletSetup(PortletRequest portletRequest) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getExistingPortletSetupin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayoutPortletSetup
public PortletPreferences getLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId) - Specified by:
getLayoutPortletSetupin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getLayoutPortletSetup
public PortletPreferences getLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId, String defaultPreferences) - Specified by:
getLayoutPortletSetupin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getLayoutPortletSetup
public PortletPreferences getLayoutPortletSetup(long companyId, long ownerId, int ownerType, long plid, String portletId, String defaultPreferences) - Specified by:
getLayoutPortletSetupin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getPortalPreferences
public com.liferay.portal.kernel.portlet.PortalPreferences getPortalPreferences(javax.servlet.http.HttpServletRequest httpServletRequest) - Specified by:
getPortalPreferencesin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getPortalPreferences
public com.liferay.portal.kernel.portlet.PortalPreferences getPortalPreferences(javax.servlet.http.HttpSession httpSession, long userId, boolean signedIn) - Specified by:
getPortalPreferencesin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getPortalPreferences
public com.liferay.portal.kernel.portlet.PortalPreferences getPortalPreferences(long userId, boolean signedIn) - Specified by:
getPortalPreferencesin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getPortalPreferences
public com.liferay.portal.kernel.portlet.PortalPreferences getPortalPreferences(PortletRequest portletRequest) - Specified by:
getPortalPreferencesin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getPortletPreferences
public PortletPreferences getPortletPreferences(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPortletPreferencesin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPortletPreferencesIds
public com.liferay.portal.kernel.model.PortletPreferencesIds getPortletPreferencesIds(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.model.Layout layout, String portletId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPortletPreferencesIdsin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPortletPreferencesIds
public com.liferay.portal.kernel.model.PortletPreferencesIds getPortletPreferencesIds(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPortletPreferencesIdsin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPortletPreferencesIds
public com.liferay.portal.kernel.model.PortletPreferencesIds getPortletPreferencesIds(long siteGroupId, long userId, com.liferay.portal.kernel.model.Layout layout, String portletId, boolean modeEditGuest) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPortletPreferencesIdsin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getPortletPreferencesIds
public com.liferay.portal.kernel.model.PortletPreferencesIds getPortletPreferencesIds(long companyId, long siteGroupId, long layoutGroupId, long plid, String portletId) throws IllegalArgumentException - Specified by:
getPortletPreferencesIdsin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory- Throws:
IllegalArgumentException
-
getPortletPreferencesIds
public com.liferay.portal.kernel.model.PortletPreferencesIds getPortletPreferencesIds(long companyId, long siteGroupId, long plid, String portletId, String settingsScope) - Specified by:
getPortletPreferencesIdsin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getPortletSetup
public PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) - Specified by:
getPortletSetupin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getPortletSetup
public PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId, String defaultPreferences) - Specified by:
getPortletSetupin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getPortletSetup
public PortletPreferences getPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId, String defaultPreferences) - Specified by:
getPortletSetupin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getPortletSetup
public PortletPreferences getPortletSetup(long siteGroupId, com.liferay.portal.kernel.model.Layout layout, String portletId, String defaultPreferences) - Specified by:
getPortletSetupin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getPortletSetup
- Specified by:
getPortletSetupin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getPortletSetup
- Specified by:
getPortletSetupin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getPortletSetupMap
public Map<Long,PortletPreferences> getPortletSetupMap(long companyId, long groupId, long ownerId, int ownerType, String portletId, boolean privateLayout) - Specified by:
getPortletSetupMapin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getPreferences
- Specified by:
getPreferencesin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getPreferencesValidator
public PreferencesValidator getPreferencesValidator(com.liferay.portal.kernel.model.Portlet portlet) - Specified by:
getPreferencesValidatorin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getStrictLayoutPortletSetup
public PortletPreferences getStrictLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId) - Specified by:
getStrictLayoutPortletSetupin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getStrictPortletSetup
public PortletPreferences getStrictPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId) - Specified by:
getStrictPortletSetupin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
getStrictPortletSetup
- Specified by:
getStrictPortletSetupin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
strictFromXML
public StrictPortletPreferencesImpl strictFromXML(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml) - Specified by:
strictFromXMLin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
toXML
- Specified by:
toXMLin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
toXML
- Specified by:
toXMLin interfacecom.liferay.portal.kernel.portlet.PortletPreferencesFactory
-
readPreference
- Throws:
XMLStreamException
-
getPortletSetup
protected PortletPreferences getPortletSetup(long companyId, long siteGroupId, long layoutGroupId, long plid, String portletId, String defaultPreferences, boolean strictMode) -
toPreferencesMap
-