public class LandingPageManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
GUEST_GROUP_FRIENDLY_URL |
static String |
PORTAL_CONTEXT |
static String |
PRIVATE_GROUP_SERVLET_MAPPING |
| Constructor and Description |
|---|
LandingPageManager() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getGroupFriendlyURL(javax.servlet.http.HttpServletRequest request,
com.liferay.portal.model.Group currentGroup) |
static String |
getLandingPagePath(javax.servlet.http.HttpServletRequest request) |
static String |
getLandingPagePath(javax.servlet.http.HttpServletRequest request,
com.liferay.portal.model.User currentUser) |
static List<com.liferay.portal.model.Group> |
getSites(long userId) |
protected static void |
registerUserToSite(com.liferay.portal.model.User user,
com.liferay.portal.model.Group site,
String siteURL)
this method is used to register the user to the group if does not belong to it yet
IMPORTANT: it does not add the user to the Site's private pages if the Site Membership type is different from Private
|
public static final String GUEST_GROUP_FRIENDLY_URL
public static final String PRIVATE_GROUP_SERVLET_MAPPING
public static final String PORTAL_CONTEXT
public static String getLandingPagePath(javax.servlet.http.HttpServletRequest request) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static String getLandingPagePath(javax.servlet.http.HttpServletRequest request, com.liferay.portal.model.User currentUser) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
request - currentUser - com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected static void registerUserToSite(com.liferay.portal.model.User user,
com.liferay.portal.model.Group site,
String siteURL)
throws com.liferay.portal.kernel.exception.SystemException
user - site - com.liferay.portal.kernel.exception.SystemExceptionpublic static List<com.liferay.portal.model.Group> getSites(long userId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static String getGroupFriendlyURL(javax.servlet.http.HttpServletRequest request, com.liferay.portal.model.Group currentGroup) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
request - currentGroup - isPrivate - isUser - com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionCopyright © 2020. All rights reserved.