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)
Deprecated.
As of 7.0.0, replaced by
AuthenticatedSessionManagerUtil.getAuthenticatedUserId(
HttpServletRequest, String, String, String) |
static java.util.Map<java.lang.String,java.lang.String> |
getEmailDefinitionTerms(javax.portlet.PortletRequest portletRequest,
java.lang.String emailFromAddress,
java.lang.String emailFromName,
boolean showPasswordTerms) |
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.kernel.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)
Deprecated.
As of 7.0.0, replaced by
AuthenticatedSessionManagerUtil.login(HttpServletRequest,
HttpServletResponse, String, String, boolean, String) |
static javax.servlet.http.HttpSession |
renewSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session)
Deprecated.
As of 7.0.0, replaced by
AuthenticatedSessionManagerUtil.renewSession(
HttpServletRequest, HttpSession) |
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)
Deprecated.
As of 7.0.0, replaced by
AuthenticatedSessionManagerUtil.signOutSimultaneousLogins(
long) |
@Deprecated
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
AuthenticatedSessionManagerUtil.getAuthenticatedUserId(
HttpServletRequest, String, String, String)com.liferay.portal.kernel.exception.PortalExceptionpublic static java.util.Map<java.lang.String,java.lang.String> getEmailDefinitionTerms(javax.portlet.PortletRequest portletRequest,
java.lang.String emailFromAddress,
java.lang.String emailFromName,
boolean showPasswordTerms)
public static java.lang.String getEmailFromAddress(javax.portlet.PortletPreferences preferences,
long companyId)
public static java.lang.String getEmailFromName(javax.portlet.PortletPreferences preferences,
long companyId)
public static java.lang.String getLogin(javax.servlet.http.HttpServletRequest request,
java.lang.String paramName,
com.liferay.portal.kernel.model.Company company)
public static javax.portlet.PortletURL getLoginURL(javax.servlet.http.HttpServletRequest request,
long plid)
throws javax.portlet.PortletModeException,
javax.portlet.WindowStateException
javax.portlet.PortletModeExceptionjavax.portlet.WindowStateException@Deprecated
public 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
AuthenticatedSessionManagerUtil.login(HttpServletRequest,
HttpServletResponse, String, String, boolean, String)java.lang.Exception@Deprecated
public static javax.servlet.http.HttpSession renewSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session)
throws java.lang.Exception
AuthenticatedSessionManagerUtil.renewSession(
HttpServletRequest, HttpSession)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.Exception@Deprecated
public static void signOutSimultaneousLogins(long userId)
throws java.lang.Exception
AuthenticatedSessionManagerUtil.signOutSimultaneousLogins(
long)java.lang.Exception