Package org.dspace.eperson.dao
Interface RegistrationDataDAO
- All Superinterfaces:
GenericDAO<RegistrationData>
- All Known Implementing Classes:
RegistrationDataDAOImpl
Database Access Object interface class for the RegistrationData object.
The implementation of this class is responsible for all database calls for the RegistrationData object and is
autowired by spring
This class should only be accessed from a single service and should never be exposed outside of the API
- Author:
- kevinvandevelde at atmire.com
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByToken(Context context, String token) DeletesRegistrationDataby token.voiddeleteExpiredBy(Context context, Instant instant) Deletes expiredRegistrationData.findBy(Context context, String email, RegistrationTypeEnum type) FindsRegistrationDataby email and type.findByEmail(Context context, String email) FindsRegistrationDataby email.findByToken(Context context, String token) FindsRegistrationDataby token.
-
Method Details
-
findByEmail
FindsRegistrationDataby email.- Parameters:
context- Context for the current requestemail- The email- Returns:
- Throws:
SQLException
-
findBy
RegistrationData findBy(Context context, String email, RegistrationTypeEnum type) throws SQLException FindsRegistrationDataby email and type.- Parameters:
context- Context for the current requestemail- The emailtype- The type of theRegistrationData- Returns:
- Throws:
SQLException
-
findByToken
FindsRegistrationDataby token.- Parameters:
context- the contexttoken- The token related to theRegistrationData.- Returns:
- Throws:
SQLException
-
deleteByToken
DeletesRegistrationDataby token.- Parameters:
context- Context for the current requesttoken- The token to delete registrations for- Throws:
SQLException
-
deleteExpiredBy
Deletes expiredRegistrationData.- Parameters:
context- Context for the current requestinstant- The date to delete expired registrations for- Throws:
SQLException
-