Package org.dspace.eperson
Class RegistrationDataServiceImpl
- java.lang.Object
-
- org.dspace.eperson.RegistrationDataServiceImpl
-
- All Implemented Interfaces:
RegistrationDataService,DSpaceCRUDService<RegistrationData>
public class RegistrationDataServiceImpl extends Object implements RegistrationDataService
Service implementation for the RegistrationData object. This class is responsible for all business logic calls for the RegistrationData object and is autowired by spring. This class should never be accessed directly.- Author:
- kevinvandevelde at atmire.com
-
-
Field Summary
Fields Modifier and Type Field Description protected RegistrationDataDAOregistrationDataDAO
-
Constructor Summary
Constructors Modifier Constructor Description protectedRegistrationDataServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegistrationDatacreate(Context context)voiddelete(Context context, RegistrationData registrationData)voiddeleteByToken(Context context, String token)RegistrationDatafind(Context context, int id)RegistrationDatafindByEmail(Context context, String email)RegistrationDatafindByToken(Context context, String token)voidupdate(Context context, List<RegistrationData> registrationDataRecords)Persist a collection of model objects.voidupdate(Context context, RegistrationData registrationData)Persist a model object.
-
-
-
Field Detail
-
registrationDataDAO
@Autowired(required=true) protected RegistrationDataDAO registrationDataDAO
-
-
Method Detail
-
create
public RegistrationData create(Context context) throws SQLException, AuthorizeException
- Specified by:
createin interfaceDSpaceCRUDService<RegistrationData>- Throws:
SQLExceptionAuthorizeException
-
findByToken
public RegistrationData findByToken(Context context, String token) throws SQLException
- Specified by:
findByTokenin interfaceRegistrationDataService- Throws:
SQLException
-
findByEmail
public RegistrationData findByEmail(Context context, String email) throws SQLException
- Specified by:
findByEmailin interfaceRegistrationDataService- Throws:
SQLException
-
deleteByToken
public void deleteByToken(Context context, String token) throws SQLException
- Specified by:
deleteByTokenin interfaceRegistrationDataService- Throws:
SQLException
-
find
public RegistrationData find(Context context, int id) throws SQLException
- Specified by:
findin interfaceDSpaceCRUDService<RegistrationData>- Throws:
SQLException
-
update
public void update(Context context, RegistrationData registrationData) throws SQLException, AuthorizeException
Description copied from interface:DSpaceCRUDServicePersist a model object.- Specified by:
updatein interfaceDSpaceCRUDService<RegistrationData>registrationData- object to be persisted.- Throws:
SQLException- passed through.AuthorizeException- passed through.
-
update
public void update(Context context, List<RegistrationData> registrationDataRecords) throws SQLException, AuthorizeException
Description copied from interface:DSpaceCRUDServicePersist a collection of model objects.- Specified by:
updatein interfaceDSpaceCRUDService<RegistrationData>registrationDataRecords- object to be persisted.- Throws:
SQLException- passed through.AuthorizeException- passed through.
-
delete
public void delete(Context context, RegistrationData registrationData) throws SQLException, AuthorizeException
- Specified by:
deletein interfaceDSpaceCRUDService<RegistrationData>- Throws:
SQLExceptionAuthorizeException
-
-