Liferay 7.0-ce-a2

com.liferay.portlet.login.util
Class LoginUtil

java.lang.Object
  extended by com.liferay.portlet.login.util.LoginUtil

public class LoginUtil
extends Object


Constructor Summary
LoginUtil()
           
 
Method Summary
static long getAuthenticatedUserId(javax.servlet.http.HttpServletRequest request, String login, String password, String authType)
          Deprecated. As of 7.0.0, replaced by AuthenticatedSessionManagerUtil.getAuthenticatedUserId( HttpServletRequest, String, String, String)
static Map<String,String> getEmailDefinitionTerms(PortletRequest portletRequest, String emailFromAddress, String emailFromName, boolean showPasswordTerms)
           
static String getEmailFromAddress(PortletPreferences preferences, long companyId)
           
static String getEmailFromName(PortletPreferences preferences, long companyId)
           
static String getLogin(javax.servlet.http.HttpServletRequest request, String paramName, Company company)
           
static PortletURL getLoginURL(javax.servlet.http.HttpServletRequest request, long plid)
           
static void login(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String login, String password, boolean rememberMe, 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(ActionRequest actionRequest)
           
static void sendPassword(ActionRequest actionRequest, String fromName, String fromAddress, String toAddress, String subject, String body)
           
static void signOutSimultaneousLogins(long userId)
          Deprecated. As of 7.0.0, replaced by AuthenticatedSessionManagerUtil.signOutSimultaneousLogins( long)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginUtil

public LoginUtil()
Method Detail

getAuthenticatedUserId

@Deprecated
public static long getAuthenticatedUserId(javax.servlet.http.HttpServletRequest request,
                                                     String login,
                                                     String password,
                                                     String authType)
                                   throws PortalException
Deprecated. As of 7.0.0, replaced by AuthenticatedSessionManagerUtil.getAuthenticatedUserId( HttpServletRequest, String, String, String)

Throws:
PortalException

getEmailDefinitionTerms

public static Map<String,String> getEmailDefinitionTerms(PortletRequest portletRequest,
                                                         String emailFromAddress,
                                                         String emailFromName,
                                                         boolean showPasswordTerms)

getEmailFromAddress

public static String getEmailFromAddress(PortletPreferences preferences,
                                         long companyId)

getEmailFromName

public static String getEmailFromName(PortletPreferences preferences,
                                      long companyId)

getLogin

public static String getLogin(javax.servlet.http.HttpServletRequest request,
                              String paramName,
                              Company company)

getLoginURL

public static PortletURL getLoginURL(javax.servlet.http.HttpServletRequest request,
                                     long plid)
                              throws PortletModeException,
                                     WindowStateException
Throws:
PortletModeException
WindowStateException

login

@Deprecated
public static void login(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    String login,
                                    String password,
                                    boolean rememberMe,
                                    String authType)
                  throws Exception
Deprecated. As of 7.0.0, replaced by AuthenticatedSessionManagerUtil.login(HttpServletRequest, HttpServletResponse, String, String, boolean, String)

Throws:
Exception

renewSession

@Deprecated
public static javax.servlet.http.HttpSession renewSession(javax.servlet.http.HttpServletRequest request,
                                                                     javax.servlet.http.HttpSession session)
                                                   throws Exception
Deprecated. As of 7.0.0, replaced by AuthenticatedSessionManagerUtil.renewSession( HttpServletRequest, HttpSession)

Throws:
Exception

sendPassword

public static void sendPassword(ActionRequest actionRequest)
                         throws Exception
Throws:
Exception

sendPassword

public static void sendPassword(ActionRequest actionRequest,
                                String fromName,
                                String fromAddress,
                                String toAddress,
                                String subject,
                                String body)
                         throws Exception
Throws:
Exception

signOutSimultaneousLogins

@Deprecated
public static void signOutSimultaneousLogins(long userId)
                                      throws Exception
Deprecated. As of 7.0.0, replaced by AuthenticatedSessionManagerUtil.signOutSimultaneousLogins( long)

Throws:
Exception

Liferay 7.0-ce-a2