public class PortletPreferencesFactoryImpl
extends Object
implements com.liferay.portal.kernel.portlet.PortletPreferencesFactory
Constructor and Description |
---|
PortletPreferencesFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
void |
checkControlPanelPortletPreferences(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.model.Portlet portlet) |
static Map<String,Preference> |
createPreferencesMap(String xml) |
javax.portlet.PortletPreferences |
fromDefaultXML(String xml) |
PortalPreferencesImpl |
fromXML(long ownerId,
int ownerType,
String xml) |
PortletPreferencesImpl |
fromXML(long companyId,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml) |
javax.portlet.PortletPreferences |
getExistingPortletSetup(com.liferay.portal.kernel.model.Layout layout,
String portletId) |
javax.portlet.PortletPreferences |
getExistingPortletSetup(javax.portlet.PortletRequest portletRequest) |
javax.portlet.PortletPreferences |
getLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout,
String portletId) |
javax.portlet.PortletPreferences |
getLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout,
String portletId,
String defaultPreferences) |
javax.portlet.PortletPreferences |
getLayoutPortletSetup(long companyId,
long ownerId,
int ownerType,
long plid,
String portletId,
String defaultPreferences) |
com.liferay.portal.kernel.portlet.PortalPreferences |
getPortalPreferences(javax.servlet.http.HttpServletRequest httpServletRequest) |
com.liferay.portal.kernel.portlet.PortalPreferences |
getPortalPreferences(javax.servlet.http.HttpSession httpSession,
long userId,
boolean signedIn) |
com.liferay.portal.kernel.portlet.PortalPreferences |
getPortalPreferences(long userId,
boolean signedIn) |
com.liferay.portal.kernel.portlet.PortalPreferences |
getPortalPreferences(javax.portlet.PortletRequest portletRequest) |
javax.portlet.PortletPreferences |
getPortletPreferences(javax.servlet.http.HttpServletRequest httpServletRequest,
String portletId) |
com.liferay.portal.kernel.model.PortletPreferencesIds |
getPortletPreferencesIds(javax.servlet.http.HttpServletRequest httpServletRequest,
com.liferay.portal.kernel.model.Layout layout,
String portletId) |
com.liferay.portal.kernel.model.PortletPreferencesIds |
getPortletPreferencesIds(javax.servlet.http.HttpServletRequest httpServletRequest,
String portletId) |
com.liferay.portal.kernel.model.PortletPreferencesIds |
getPortletPreferencesIds(long siteGroupId,
long userId,
com.liferay.portal.kernel.model.Layout layout,
String portletId,
boolean modeEditGuest) |
com.liferay.portal.kernel.model.PortletPreferencesIds |
getPortletPreferencesIds(long companyId,
long siteGroupId,
long layoutGroupId,
long plid,
String portletId) |
com.liferay.portal.kernel.model.PortletPreferencesIds |
getPortletPreferencesIds(long companyId,
long siteGroupId,
long plid,
String portletId,
String settingsScope) |
javax.portlet.PortletPreferences |
getPortletSetup(javax.servlet.http.HttpServletRequest httpServletRequest,
String portletId) |
javax.portlet.PortletPreferences |
getPortletSetup(javax.servlet.http.HttpServletRequest httpServletRequest,
String portletId,
String defaultPreferences) |
javax.portlet.PortletPreferences |
getPortletSetup(com.liferay.portal.kernel.model.Layout layout,
String portletId,
String defaultPreferences) |
javax.portlet.PortletPreferences |
getPortletSetup(long siteGroupId,
com.liferay.portal.kernel.model.Layout layout,
String portletId,
String defaultPreferences) |
protected javax.portlet.PortletPreferences |
getPortletSetup(long companyId,
long siteGroupId,
long layoutGroupId,
long plid,
String portletId,
String defaultPreferences,
boolean strictMode) |
javax.portlet.PortletPreferences |
getPortletSetup(javax.portlet.PortletRequest portletRequest) |
javax.portlet.PortletPreferences |
getPortletSetup(javax.portlet.PortletRequest portletRequest,
String portletId) |
Map<Long,javax.portlet.PortletPreferences> |
getPortletSetupMap(long companyId,
long groupId,
long ownerId,
int ownerType,
String portletId,
boolean privateLayout) |
javax.portlet.PortletPreferences |
getPreferences(javax.servlet.http.HttpServletRequest httpServletRequest) |
javax.portlet.PreferencesValidator |
getPreferencesValidator(com.liferay.portal.kernel.model.Portlet portlet) |
javax.portlet.PortletPreferences |
getStrictLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout,
String portletId) |
javax.portlet.PortletPreferences |
getStrictPortletSetup(com.liferay.portal.kernel.model.Layout layout,
String portletId) |
javax.portlet.PortletPreferences |
getStrictPortletSetup(long companyId,
long groupId,
String portletId) |
protected static Preference |
readPreference(javax.xml.stream.XMLEventReader xmlEventReader) |
StrictPortletPreferencesImpl |
strictFromXML(long companyId,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml) |
protected Map<String,Preference> |
toPreferencesMap(String xml) |
String |
toXML(com.liferay.portal.kernel.portlet.PortalPreferences portalPreferences) |
String |
toXML(javax.portlet.PortletPreferences portletPreferences) |
public static Map<String,Preference> createPreferencesMap(String xml)
public void checkControlPanelPortletPreferences(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.portal.kernel.model.Portlet portlet) throws com.liferay.portal.kernel.exception.PortalException
checkControlPanelPortletPreferences
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
com.liferay.portal.kernel.exception.PortalException
public javax.portlet.PortletPreferences fromDefaultXML(String xml)
fromDefaultXML
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public PortalPreferencesImpl fromXML(long ownerId, int ownerType, String xml)
fromXML
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public PortletPreferencesImpl fromXML(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml)
fromXML
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public javax.portlet.PortletPreferences getExistingPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId) throws com.liferay.portal.kernel.exception.PortalException
getExistingPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
com.liferay.portal.kernel.exception.PortalException
public javax.portlet.PortletPreferences getExistingPortletSetup(javax.portlet.PortletRequest portletRequest) throws com.liferay.portal.kernel.exception.PortalException
getExistingPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
com.liferay.portal.kernel.exception.PortalException
public javax.portlet.PortletPreferences getLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId)
getLayoutPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public javax.portlet.PortletPreferences getLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId, String defaultPreferences)
getLayoutPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public javax.portlet.PortletPreferences getLayoutPortletSetup(long companyId, long ownerId, int ownerType, long plid, String portletId, String defaultPreferences)
getLayoutPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public com.liferay.portal.kernel.portlet.PortalPreferences getPortalPreferences(javax.servlet.http.HttpServletRequest httpServletRequest)
getPortalPreferences
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public com.liferay.portal.kernel.portlet.PortalPreferences getPortalPreferences(javax.servlet.http.HttpSession httpSession, long userId, boolean signedIn)
getPortalPreferences
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public com.liferay.portal.kernel.portlet.PortalPreferences getPortalPreferences(long userId, boolean signedIn)
getPortalPreferences
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public com.liferay.portal.kernel.portlet.PortalPreferences getPortalPreferences(javax.portlet.PortletRequest portletRequest)
getPortalPreferences
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public javax.portlet.PortletPreferences getPortletPreferences(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) throws com.liferay.portal.kernel.exception.PortalException
getPortletPreferences
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
com.liferay.portal.kernel.exception.PortalException
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
getPortletPreferencesIds
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.PortletPreferencesIds getPortletPreferencesIds(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) throws com.liferay.portal.kernel.exception.PortalException
getPortletPreferencesIds
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
com.liferay.portal.kernel.exception.PortalException
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
getPortletPreferencesIds
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.PortletPreferencesIds getPortletPreferencesIds(long companyId, long siteGroupId, long layoutGroupId, long plid, String portletId) throws IllegalArgumentException
getPortletPreferencesIds
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
IllegalArgumentException
public com.liferay.portal.kernel.model.PortletPreferencesIds getPortletPreferencesIds(long companyId, long siteGroupId, long plid, String portletId, String settingsScope)
getPortletPreferencesIds
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public javax.portlet.PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId)
getPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public javax.portlet.PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId, String defaultPreferences)
getPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public javax.portlet.PortletPreferences getPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId, String defaultPreferences)
getPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public javax.portlet.PortletPreferences getPortletSetup(long siteGroupId, com.liferay.portal.kernel.model.Layout layout, String portletId, String defaultPreferences)
getPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public javax.portlet.PortletPreferences getPortletSetup(javax.portlet.PortletRequest portletRequest)
getPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public javax.portlet.PortletPreferences getPortletSetup(javax.portlet.PortletRequest portletRequest, String portletId)
getPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public Map<Long,javax.portlet.PortletPreferences> getPortletSetupMap(long companyId, long groupId, long ownerId, int ownerType, String portletId, boolean privateLayout)
getPortletSetupMap
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public javax.portlet.PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest httpServletRequest)
getPreferences
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public javax.portlet.PreferencesValidator getPreferencesValidator(com.liferay.portal.kernel.model.Portlet portlet)
getPreferencesValidator
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public javax.portlet.PortletPreferences getStrictLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId)
getStrictLayoutPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public javax.portlet.PortletPreferences getStrictPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId)
getStrictPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public javax.portlet.PortletPreferences getStrictPortletSetup(long companyId, long groupId, String portletId)
getStrictPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public StrictPortletPreferencesImpl strictFromXML(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml)
strictFromXML
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public String toXML(com.liferay.portal.kernel.portlet.PortalPreferences portalPreferences)
toXML
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public String toXML(javax.portlet.PortletPreferences portletPreferences)
toXML
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
protected static Preference readPreference(javax.xml.stream.XMLEventReader xmlEventReader) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected javax.portlet.PortletPreferences getPortletSetup(long companyId, long siteGroupId, long layoutGroupId, long plid, String portletId, String defaultPreferences, boolean strictMode)
protected Map<String,Preference> toPreferencesMap(String xml)