Liferay 6.2-ce-ga5

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)
           
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)
           
static javax.servlet.http.HttpSession renewSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpSession session)
           
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)
           
 
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

public static long getAuthenticatedUserId(javax.servlet.http.HttpServletRequest request,
                                          String login,
                                          String password,
                                          String authType)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

getEmailFromAddress

public static String getEmailFromAddress(PortletPreferences preferences,
                                         long companyId)
                                  throws SystemException
Throws:
SystemException

getEmailFromName

public static String getEmailFromName(PortletPreferences preferences,
                                      long companyId)
                               throws SystemException
Throws:
SystemException

getLogin

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

getLoginURL

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

login

public static void login(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         String login,
                         String password,
                         boolean rememberMe,
                         String authType)
                  throws Exception
Throws:
Exception

renewSession

public static javax.servlet.http.HttpSession renewSession(javax.servlet.http.HttpServletRequest request,
                                                          javax.servlet.http.HttpSession session)
                                                   throws Exception
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

public static void signOutSimultaneousLogins(long userId)
                                      throws Exception
Throws:
Exception

Liferay 6.2-ce-ga5