Package org.dspace.eperson
Class RegistrationDataServiceImpl
java.lang.Object
org.dspace.eperson.RegistrationDataServiceImpl
- All Implemented Interfaces:
RegistrationDataService,DSpaceCRUDService<RegistrationData>
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
FieldsModifier and TypeFieldDescriptionprotected RegistrationDataExpirationConfigurationprotected MetadataFieldServiceprotected RegistrationDataDAOprotected RegistrationDataMetadataService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetadata(Context context, RegistrationData registration, String schema, String element, String qualifier, String value) voidaddMetadata(Context context, RegistrationData registration, MetadataField mf, String value) clone(Context context, RegistrationDataPatch registrationDataPatch) create(Context context, String netId, RegistrationTypeEnum type) voiddelete(Context context, RegistrationData registrationData) 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) voidupdate(Context context, List<RegistrationData> registrationDataRecords) Persist a collection of model objects.voidupdate(Context context, RegistrationData registrationData) Persist a model object.
-
Field Details
-
registrationDataDAO
-
registrationDataMetadataService
-
metadataFieldService
-
expirationConfiguration
-
-
Constructor Details
-
RegistrationDataServiceImpl
protected RegistrationDataServiceImpl()
-
-
Method Details
-
create
- Specified by:
createin interfaceDSpaceCRUDService<RegistrationData>- Specified by:
createin interfaceRegistrationDataService- Throws:
SQLExceptionAuthorizeException
-
create
public RegistrationData create(Context context, String netId) throws SQLException, AuthorizeException - Specified by:
createin interfaceRegistrationDataService- Throws:
SQLExceptionAuthorizeException
-
create
public RegistrationData create(Context context, String netId, RegistrationTypeEnum type) throws SQLException, AuthorizeException - Specified by:
createin interfaceRegistrationDataService- Throws:
SQLExceptionAuthorizeException
-
clone
public RegistrationData clone(Context context, RegistrationDataPatch registrationDataPatch) throws SQLException, AuthorizeException - Specified by:
clonein interfaceRegistrationDataService- Throws:
SQLExceptionAuthorizeException
-
findByToken
- Specified by:
findByTokenin interfaceRegistrationDataService- Throws:
SQLException
-
findByEmail
- Specified by:
findByEmailin interfaceRegistrationDataService- Throws:
SQLException
-
findBy
public RegistrationData findBy(Context context, String email, RegistrationTypeEnum type) throws SQLException - Specified by:
findByin interfaceRegistrationDataService- Throws:
SQLException
-
deleteByToken
- Specified by:
deleteByTokenin interfaceRegistrationDataService- Throws:
SQLException
-
groupEpersonMetadataByRegistrationData
public Stream<Map.Entry<RegistrationDataMetadata,Optional<MetadataValue>>> groupEpersonMetadataByRegistrationData(EPerson ePerson, RegistrationData registrationData) throws SQLException - Specified by:
groupEpersonMetadataByRegistrationDatain interfaceRegistrationDataService- Throws:
SQLException
-
setRegistrationMetadataValue
public void setRegistrationMetadataValue(Context context, RegistrationData registration, String schema, String element, String qualifier, String value) throws SQLException, AuthorizeException - Specified by:
setRegistrationMetadataValuein interfaceRegistrationDataService- Throws:
SQLExceptionAuthorizeException
-
addMetadata
public void addMetadata(Context context, RegistrationData registration, MetadataField mf, String value) throws SQLException, AuthorizeException - Specified by:
addMetadatain interfaceRegistrationDataService- Throws:
SQLExceptionAuthorizeException
-
addMetadata
public void addMetadata(Context context, RegistrationData registration, String schema, String element, String qualifier, String value) throws SQLException, AuthorizeException - Specified by:
addMetadatain interfaceRegistrationDataService- Throws:
SQLExceptionAuthorizeException
-
getMetadataByMetadataString
public RegistrationDataMetadata getMetadataByMetadataString(RegistrationData registrationData, String field) - Specified by:
getMetadataByMetadataStringin interfaceRegistrationDataService
-
find
- 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.
-
markAsExpired
- Specified by:
markAsExpiredin interfaceRegistrationDataService- Throws:
SQLException
-
delete
public void delete(Context context, RegistrationData registrationData) throws SQLException, AuthorizeException - Specified by:
deletein interfaceDSpaceCRUDService<RegistrationData>- Throws:
SQLExceptionAuthorizeException
-
deleteExpiredRegistrations
- Specified by:
deleteExpiredRegistrationsin interfaceRegistrationDataService- Throws:
SQLException
-
isValid
- Specified by:
isValidin interfaceRegistrationDataService
-