public class AccountManager extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AccountManager()
Protected Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteToken(Context context,
String token)
Delete token.
|
static String |
getEmail(Context context,
String token)
Return the e-mail address referred to by a token, or null if email
address can't be found ignores expiration of token
|
static EPerson |
getEPerson(Context context,
String token)
Return the EPerson corresponding to token, where token was emailed to the
person by either the sendRegistrationInfo or sendForgotPasswordInfo
methods.
|
static void |
sendForgotPasswordInfo(Context context,
String email)
Email forgot password info to the given email address.
|
protected static TableRow |
sendInfo(Context context,
String email,
boolean isRegister,
boolean send) |
static void |
sendRegistrationInfo(Context context,
String email)
Email registration info to the given email address.
|
public static void sendRegistrationInfo(Context context, String email) throws SQLException, IOException, javax.mail.MessagingException, AuthorizeException
context - DSpace contextemail - Email address to send the registration email toSQLExceptionIOExceptionjavax.mail.MessagingExceptionAuthorizeExceptionpublic static void sendForgotPasswordInfo(Context context, String email) throws SQLException, IOException, javax.mail.MessagingException, AuthorizeException
context - DSpace contextemail - Email address to send the forgot-password email toSQLExceptionIOExceptionjavax.mail.MessagingExceptionAuthorizeExceptionpublic static EPerson getEPerson(Context context, String token) throws SQLException, AuthorizeException
Return the EPerson corresponding to token, where token was emailed to the person by either the sendRegistrationInfo or sendForgotPasswordInfo methods.
If the token is not found return null.
context - DSpace contexttoken - Account tokenSQLException - If the token or eperson cannot be retrieved from the
database.AuthorizeExceptionpublic static String getEmail(Context context, String token) throws SQLException
context - DSpace contexttoken - Account tokenSQLExceptionpublic static void deleteToken(Context context, String token) throws SQLException
context - DSpace contexttoken - The token to deleteSQLException - If a database error occursprotected static TableRow sendInfo(Context context, String email, boolean isRegister, boolean send) throws SQLException, IOException, javax.mail.MessagingException, AuthorizeException
SQLExceptionIOExceptionjavax.mail.MessagingExceptionAuthorizeExceptionCopyright © 2015 DuraSpace. All Rights Reserved.