public class LoginHookEssentialMethods extends Object
| Constructor and Description |
|---|
LoginHookEssentialMethods() |
| Modifier and Type | Method and Description |
|---|---|
static com.liferay.portal.model.User |
addUser(long groupId,
String portalURL,
javax.servlet.http.HttpSession session,
long companyId,
GoogleJson googleJson)
Try to add new user to portal, then set user's email address in session.
|
static void |
reditectUserToHisPage(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request,
String redirectUrlCustom,
String redirectUrlDefault)
Redirects User to appropriate portal page.
|
public static com.liferay.portal.model.User addUser(long groupId,
String portalURL,
javax.servlet.http.HttpSession session,
long companyId,
GoogleJson googleJson)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
session - companyId - googleJson - SystemException, - PortalException, EmailAddressExceptioncom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void reditectUserToHisPage(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request,
String redirectUrlCustom,
String redirectUrlDefault)
throws javax.portlet.PortletModeException,
javax.portlet.WindowStateException,
IOException
response - redirectUrlCustom - is the portal page user would visit if user was already logged inredirectUrlDefault - is the default landing page of the portal, which is a fall-back in case of empty redirectUrlCustomIOExceptioncom.liferay.portal.kernel.exception.SystemExceptioncom.liferay.portal.kernel.exception.PortalExceptionjavax.portlet.WindowStateExceptionjavax.portlet.PortletModeExceptionCopyright © 2018. All Rights Reserved.