public class PortletPreferencesFactoryUtil
extends Object
Constructor and Description |
---|
PortletPreferencesFactoryUtil() |
Modifier and Type | Method and Description |
---|---|
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 PortletPreferences |
getExistingPortletSetup(Layout layout,
String portletId) |
static PortletPreferences |
getExistingPortletSetup(PortletRequest portletRequest) |
static PortletPreferences |
getLayoutPortletSetup(Layout layout,
String portletId) |
static PortletPreferences |
getLayoutPortletSetup(Layout layout,
String portletId,
String defaultPreferences) |
static PortletPreferences |
getLayoutPortletSetup(long companyId,
long ownerId,
int ownerType,
long plid,
String portletId,
String defaultPreferences) |
static PortalPreferences |
getPortalPreferences(javax.servlet.http.HttpServletRequest httpServletRequest) |
static PortalPreferences |
getPortalPreferences(javax.servlet.http.HttpSession session,
long userId,
boolean signedIn) |
static PortalPreferences |
getPortalPreferences(long userId,
boolean signedIn) |
static PortalPreferences |
getPortalPreferences(PortletRequest portletRequest) |
static PortletPreferences |
getPortletPreferences(javax.servlet.http.HttpServletRequest httpServletRequest,
String portletId) |
static PortletPreferencesFactory |
getPortletPreferencesFactory() |
static PortletPreferencesIds |
getPortletPreferencesIds(javax.servlet.http.HttpServletRequest httpServletRequest,
Layout selLayout,
String portletId) |
static PortletPreferencesIds |
getPortletPreferencesIds(javax.servlet.http.HttpServletRequest httpServletRequest,
String portletId) |
static PortletPreferencesIds |
getPortletPreferencesIds(long siteGroupId,
long userId,
Layout layout,
String portletId,
boolean modeEditGuest) |
static PortletPreferencesIds |
getPortletPreferencesIds(long companyId,
long siteGroupId,
long plid,
String portletId,
String settingsScope) |
static PortletPreferences |
getPortletSetup(javax.servlet.http.HttpServletRequest httpServletRequest,
String portletId) |
static PortletPreferences |
getPortletSetup(javax.servlet.http.HttpServletRequest httpServletRequest,
String portletId,
String defaultPreferences) |
static PortletPreferences |
getPortletSetup(Layout layout,
String portletId,
String defaultPreferences) |
static PortletPreferences |
getPortletSetup(long siteGroupId,
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 httpServletRequest) |
static PreferencesValidator |
getPreferencesValidator(Portlet portlet) |
static PortletPreferences |
getStrictLayoutPortletSetup(Layout layout,
String portletId) |
static PortletPreferences |
getStrictPortletSetup(Layout layout,
String portletId) |
static PortletPreferences |
getStrictPortletSetup(long companyId,
long groupId,
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) |
public static void checkControlPanelPortletPreferences(ThemeDisplay themeDisplay, Portlet portlet) throws PortalException
PortalException
public static PortletPreferences fromDefaultXML(String xml)
public static PortalPreferences fromXML(long ownerId, int ownerType, String xml)
public static PortletPreferences fromXML(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml)
public static PortletPreferences getExistingPortletSetup(Layout layout, String portletId) throws PortalException
PortalException
public static PortletPreferences getExistingPortletSetup(PortletRequest portletRequest) throws PortalException
PortalException
public static PortletPreferences getLayoutPortletSetup(Layout layout, String portletId)
public static PortletPreferences getLayoutPortletSetup(Layout layout, String portletId, String defaultPreferences)
public static PortletPreferences getLayoutPortletSetup(long companyId, long ownerId, int ownerType, long plid, String portletId, String defaultPreferences)
public static PortalPreferences getPortalPreferences(javax.servlet.http.HttpServletRequest httpServletRequest)
public static PortalPreferences getPortalPreferences(javax.servlet.http.HttpSession session, long userId, boolean signedIn)
public static PortalPreferences getPortalPreferences(long userId, boolean signedIn)
public static PortalPreferences getPortalPreferences(PortletRequest portletRequest)
public static PortletPreferences getPortletPreferences(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) throws PortalException
PortalException
public static PortletPreferencesFactory getPortletPreferencesFactory()
public static PortletPreferencesIds getPortletPreferencesIds(javax.servlet.http.HttpServletRequest httpServletRequest, Layout selLayout, String portletId) throws PortalException
PortalException
public static PortletPreferencesIds getPortletPreferencesIds(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) throws PortalException
PortalException
public static PortletPreferencesIds getPortletPreferencesIds(long siteGroupId, long userId, Layout layout, String portletId, boolean modeEditGuest) throws PortalException
PortalException
public static PortletPreferencesIds getPortletPreferencesIds(long companyId, long siteGroupId, long plid, String portletId, String settingsScope)
public static PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId) throws PortalException
PortalException
public static PortletPreferences getPortletSetup(javax.servlet.http.HttpServletRequest httpServletRequest, String portletId, String defaultPreferences) throws PortalException
PortalException
public static PortletPreferences getPortletSetup(Layout layout, String portletId, String defaultPreferences)
public static PortletPreferences getPortletSetup(long siteGroupId, Layout layout, String portletId, String defaultPreferences)
public static PortletPreferences getPortletSetup(PortletRequest portletRequest) throws PortalException
PortalException
public static PortletPreferences getPortletSetup(PortletRequest portletRequest, String portletId) throws PortalException
PortalException
public static Map<Long,PortletPreferences> getPortletSetupMap(long companyId, long groupId, long ownerId, int ownerType, String portletId, boolean privateLayout)
public static PortletPreferences getPreferences(javax.servlet.http.HttpServletRequest httpServletRequest)
public static PreferencesValidator getPreferencesValidator(Portlet portlet)
public static PortletPreferences getStrictLayoutPortletSetup(Layout layout, String portletId)
public static PortletPreferences getStrictPortletSetup(Layout layout, String portletId)
public static PortletPreferences getStrictPortletSetup(long companyId, long groupId, String portletId)
public static PortletPreferences strictFromXML(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml)
public static String toXML(PortalPreferences portalPreferences)
public static String toXML(PortletPreferences portletPreferences)
public void setPortletPreferencesFactory(PortletPreferencesFactory portletPreferencesFactory)