public class LoginHookEssentialMethods extends Object
| Constructor and Description |
|---|
LoginHookEssentialMethods() |
| Modifier and Type | Method and Description |
|---|---|
static com.liferay.portal.model.User |
addUser(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,
String redirectUrlCustom,
String redirectUrlDefault)
Redirects User to appropriate portal page.
|
public static com.liferay.portal.model.User addUser(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,
String redirectUrlCustom,
String redirectUrlDefault)
throws 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 redirectUrlCustomIOExceptionCopyright © 2016. All Rights Reserved.