com.liferay.portlet.login.util
Class LoginUtil
java.lang.Object
com.liferay.portlet.login.util.LoginUtil
public class LoginUtil
- extends Object
|
Method Summary |
static long |
getAuthenticatedUserId(javax.servlet.http.HttpServletRequest request,
String login,
String password,
String authType)
|
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)
|
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 |
LoginUtil
public LoginUtil()
getAuthenticatedUserId
public static long getAuthenticatedUserId(javax.servlet.http.HttpServletRequest request,
String login,
String password,
String authType)
throws PortalException
- 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
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