public class LoginUtil
extends java.lang.Object
| Constructor and Description |
|---|
LoginUtil() |
| Modifier and Type | Method and Description |
|---|---|
static long |
getAuthenticatedUserId(javax.servlet.http.HttpServletRequest request,
java.lang.String login,
java.lang.String password,
java.lang.String authType) |
static java.lang.String |
getEmailFromAddress(javax.portlet.PortletPreferences preferences,
long companyId) |
static java.lang.String |
getEmailFromName(javax.portlet.PortletPreferences preferences,
long companyId) |
static java.lang.String |
getLogin(javax.servlet.http.HttpServletRequest request,
java.lang.String paramName,
com.liferay.portal.model.Company company) |
static javax.portlet.PortletURL |
getLoginURL(javax.servlet.http.HttpServletRequest request,
long plid) |
static void |
login(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String login,
java.lang.String password,
boolean rememberMe,
java.lang.String authType) |
static javax.servlet.http.HttpSession |
renewSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session) |
static void |
sendPassword(javax.portlet.ActionRequest actionRequest) |
static void |
sendPassword(javax.portlet.ActionRequest actionRequest,
java.lang.String fromName,
java.lang.String fromAddress,
java.lang.String toAddress,
java.lang.String subject,
java.lang.String body) |
static void |
signOutSimultaneousLogins(long userId) |
public static long getAuthenticatedUserId(javax.servlet.http.HttpServletRequest request,
java.lang.String login,
java.lang.String password,
java.lang.String authType)
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 java.lang.String getEmailFromAddress(javax.portlet.PortletPreferences preferences,
long companyId)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.lang.String getEmailFromName(javax.portlet.PortletPreferences preferences,
long companyId)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.lang.String getLogin(javax.servlet.http.HttpServletRequest request,
java.lang.String paramName,
com.liferay.portal.model.Company company)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static javax.portlet.PortletURL getLoginURL(javax.servlet.http.HttpServletRequest request,
long plid)
throws javax.portlet.PortletModeException,
javax.portlet.WindowStateException
javax.portlet.PortletModeExceptionjavax.portlet.WindowStateExceptionpublic static void login(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String login,
java.lang.String password,
boolean rememberMe,
java.lang.String authType)
throws java.lang.Exception
java.lang.Exceptionpublic static javax.servlet.http.HttpSession renewSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session)
throws java.lang.Exception
java.lang.Exceptionpublic static void sendPassword(javax.portlet.ActionRequest actionRequest)
throws java.lang.Exception
java.lang.Exceptionpublic static void sendPassword(javax.portlet.ActionRequest actionRequest,
java.lang.String fromName,
java.lang.String fromAddress,
java.lang.String toAddress,
java.lang.String subject,
java.lang.String body)
throws java.lang.Exception
java.lang.Exceptionpublic static void signOutSimultaneousLogins(long userId)
throws java.lang.Exception
java.lang.Exception