Package org.dspace.eperson.service
Interface AccountService
- All Known Implementing Classes:
AccountServiceImpl
public interface AccountService
Methods 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
Modifier and TypeMethodDescriptionvoiddeleteToken(Context context, String token) getEPerson(Context context, String token) voidsendForgotPasswordInfo(Context context, String email) voidsendRegistrationInfo(Context context, String email)
-
Method Details
-
sendRegistrationInfo
void sendRegistrationInfo(Context context, String email) throws SQLException, IOException, jakarta.mail.MessagingException, AuthorizeException - Throws:
SQLExceptionIOExceptionjakarta.mail.MessagingExceptionAuthorizeException
-
sendForgotPasswordInfo
void sendForgotPasswordInfo(Context context, String email) throws SQLException, IOException, jakarta.mail.MessagingException, AuthorizeException - Throws:
SQLExceptionIOExceptionjakarta.mail.MessagingExceptionAuthorizeException
-
getEPerson
- Throws:
SQLExceptionAuthorizeException
-
getEmail
- Throws:
SQLException
-
deleteToken
- Throws:
SQLException
-