Package org.dspace.eperson.service
Interface AccountService
-
- All Known Implementing Classes:
AccountServiceImpl
public interface AccountServiceMethods for handling registration by email and forgotten passwords. When someone registers as a user, or forgets their password, the sendRegistrationInfo or sendForgotPasswordInfo methods can be used to send an email to the user. The email contains a special token, a long string which is randomly generated and thus hard to guess. When the user presents the token back to the system, the AccountManager can use the token to determine the identity of the eperson. *NEW* now ignores expiration dates so that tokens never expire- Version:
- $Revision$
- Author:
- Peter Breton
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteToken(Context context, String token)StringgetEmail(Context context, String token)EPersongetEPerson(Context context, String token)voidsendForgotPasswordInfo(Context context, String email)voidsendRegistrationInfo(Context context, String email)
-
-
-
Method Detail
-
sendRegistrationInfo
void sendRegistrationInfo(Context context, String email) throws SQLException, IOException, javax.mail.MessagingException, AuthorizeException
- Throws:
SQLExceptionIOExceptionjavax.mail.MessagingExceptionAuthorizeException
-
sendForgotPasswordInfo
void sendForgotPasswordInfo(Context context, String email) throws SQLException, IOException, javax.mail.MessagingException, AuthorizeException
- Throws:
SQLExceptionIOExceptionjavax.mail.MessagingExceptionAuthorizeException
-
getEPerson
EPerson getEPerson(Context context, String token) throws SQLException, AuthorizeException
- Throws:
SQLExceptionAuthorizeException
-
getEmail
String getEmail(Context context, String token) throws SQLException
- Throws:
SQLException
-
deleteToken
void deleteToken(Context context, String token) throws SQLException
- Throws:
SQLException
-
-