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) |
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) |
PortletPreferences |
getExistingPortletSetup(com.liferay.portal.kernel.model.Layout layout,
String portletId) |
PortletPreferences |
getExistingPortletSetup(PortletRequest portletRequest) |
PortletPreferences |
getLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout,
String portletId) |
PortletPreferences |
getLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout,
String portletId,
String defaultPreferences) |
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 request) |
com.liferay.portal.kernel.portlet.PortalPreferences |
getPortalPreferences(javax.servlet.http.HttpSession session,
long userId,
boolean signedIn) |
com.liferay.portal.kernel.portlet.PortalPreferences |
getPortalPreferences(long userId,
boolean signedIn) |
com.liferay.portal.kernel.portlet.PortalPreferences |
getPortalPreferences(PortletRequest portletRequest) |
PortletPreferences |
getPortletPreferences(javax.servlet.http.HttpServletRequest request,
String portletId) |
com.liferay.portal.kernel.model.PortletPreferencesIds |
getPortletPreferencesIds(javax.servlet.http.HttpServletRequest request,
com.liferay.portal.kernel.model.Layout layout,
String portletId) |
com.liferay.portal.kernel.model.PortletPreferencesIds |
getPortletPreferencesIds(javax.servlet.http.HttpServletRequest request,
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 plid,
String portletId,
String settingsScope) |
PortletPreferences |
getPortletSetup(javax.servlet.http.HttpServletRequest request,
String portletId) |
PortletPreferences |
getPortletSetup(javax.servlet.http.HttpServletRequest request,
String portletId,
String defaultPreferences) |
PortletPreferences |
getPortletSetup(com.liferay.portal.kernel.model.Layout layout,
String portletId,
String defaultPreferences) |
PortletPreferences |
getPortletSetup(long siteGroupId,
com.liferay.portal.kernel.model.Layout layout,
String portletId,
String defaultPreferences) |
protected PortletPreferences |
getPortletSetup(long companyId,
long siteGroupId,
long layoutGroupId,
long plid,
String portletId,
String defaultPreferences,
boolean strictMode) |
PortletPreferences |
getPortletSetup(PortletRequest portletRequest) |
PortletPreferences |
getPortletSetup(PortletRequest portletRequest,
String portletId) |
Map<Long,PortletPreferences> |
getPortletSetupMap(long companyId,
long groupId,
long ownerId,
int ownerType,
String portletId,
boolean privateLayout) |
PortletPreferences |
getPreferences(javax.servlet.http.HttpServletRequest request) |
PreferencesValidator |
getPreferencesValidator(com.liferay.portal.kernel.model.Portlet portlet) |
PortletPreferences |
getStrictLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout,
String portletId) |
PortletPreferences |
getStrictPortletSetup(com.liferay.portal.kernel.model.Layout layout,
String portletId) |
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(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 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 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 PortletPreferences getExistingPortletSetup(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 PortletPreferences getLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId)
getLayoutPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public PortletPreferences getLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId, String defaultPreferences)
getLayoutPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public 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 request)
getPortalPreferences
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public com.liferay.portal.kernel.portlet.PortalPreferences getPortalPreferences(javax.servlet.http.HttpSession session, 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(PortletRequest portletRequest)
getPortalPreferences
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public PortletPreferences getPortletPreferences(javax.servlet.http.HttpServletRequest request, 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 request, 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 request, 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 plid, String portletId, String settingsScope)
getPortletPreferencesIds
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest request, String portletId)
getPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest request, String portletId, String defaultPreferences)
getPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public PortletPreferences getPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId, String defaultPreferences)
getPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public 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 PortletPreferences getPortletSetup(PortletRequest portletRequest)
getPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public PortletPreferences getPortletSetup(PortletRequest portletRequest, String portletId)
getPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public Map<Long,PortletPreferences> getPortletSetupMap(long companyId, long groupId, long ownerId, int ownerType, String portletId, boolean privateLayout)
getPortletSetupMap
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest request)
getPreferences
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public PreferencesValidator getPreferencesValidator(com.liferay.portal.kernel.model.Portlet portlet)
getPreferencesValidator
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public PortletPreferences getStrictLayoutPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId)
getStrictLayoutPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public PortletPreferences getStrictPortletSetup(com.liferay.portal.kernel.model.Layout layout, String portletId)
getStrictPortletSetup
in interface com.liferay.portal.kernel.portlet.PortletPreferencesFactory
public 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(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 PortletPreferences getPortletSetup(long companyId, long siteGroupId, long layoutGroupId, long plid, String portletId, String defaultPreferences, boolean strictMode)
protected Map<String,Preference> toPreferencesMap(String xml)