Package org.dspace.eperson.service
Interface RegistrationDataService
- All Superinterfaces:
DSpaceCRUDService<RegistrationData>
- All Known Implementing Classes:
RegistrationDataServiceImpl
Service interface class for the
RegistrationData object.
The implementation of this class is responsible for all business logic calls for the RegistrationData object and
is autowired by spring- Author:
- kevinvandevelde at atmire.com
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetadata(Context context, RegistrationData registration, String schema, String element, String qualifier, String value) voidaddMetadata(Context context, RegistrationData rd, MetadataField metadataField, String value) clone(Context context, RegistrationDataPatch registrationDataPatch) create(Context context, String netId, RegistrationTypeEnum type) voiddeleteByToken(Context context, String token) voiddeleteExpiredRegistrations(Context context) findBy(Context context, String email, RegistrationTypeEnum type) findByEmail(Context context, String email) findByToken(Context context, String token) getMetadataByMetadataString(RegistrationData registrationData, String field) groupEpersonMetadataByRegistrationData(EPerson ePerson, RegistrationData registrationData) booleanvoidmarkAsExpired(Context context, RegistrationData registrationData) voidsetRegistrationMetadataValue(Context context, RegistrationData registration, String schema, String element, String qualifier, String value) Methods inherited from interface org.dspace.service.DSpaceCRUDService
delete, find, update, update
-
Method Details
-
create
- Specified by:
createin interfaceDSpaceCRUDService<RegistrationData>- Throws:
SQLExceptionAuthorizeException
-
create
- Throws:
SQLExceptionAuthorizeException
-
create
RegistrationData create(Context context, String netId, RegistrationTypeEnum type) throws SQLException, AuthorizeException - Throws:
SQLExceptionAuthorizeException
-
clone
RegistrationData clone(Context context, RegistrationDataPatch registrationDataPatch) throws SQLException, AuthorizeException - Throws:
SQLExceptionAuthorizeException
-
findByToken
- Throws:
SQLException
-
findByEmail
- Throws:
SQLException
-
findBy
RegistrationData findBy(Context context, String email, RegistrationTypeEnum type) throws SQLException - Throws:
SQLException
-
deleteByToken
- Throws:
SQLException
-
groupEpersonMetadataByRegistrationData
Stream<Map.Entry<RegistrationDataMetadata,Optional<MetadataValue>>> groupEpersonMetadataByRegistrationData(EPerson ePerson, RegistrationData registrationData) throws SQLException - Throws:
SQLException
-
setRegistrationMetadataValue
void setRegistrationMetadataValue(Context context, RegistrationData registration, String schema, String element, String qualifier, String value) throws SQLException, AuthorizeException - Throws:
SQLExceptionAuthorizeException
-
addMetadata
void addMetadata(Context context, RegistrationData registration, String schema, String element, String qualifier, String value) throws SQLException, AuthorizeException - Throws:
SQLExceptionAuthorizeException
-
getMetadataByMetadataString
RegistrationDataMetadata getMetadataByMetadataString(RegistrationData registrationData, String field) -
addMetadata
void addMetadata(Context context, RegistrationData rd, MetadataField metadataField, String value) throws SQLException, AuthorizeException - Throws:
SQLExceptionAuthorizeException
-
markAsExpired
void markAsExpired(Context context, RegistrationData registrationData) throws SQLException, AuthorizeException - Throws:
SQLExceptionAuthorizeException
-
deleteExpiredRegistrations
- Throws:
SQLException
-
isValid
-