Package org.dspace.eperson
Class RegistrationDataMetadataServiceImpl
java.lang.Object
org.dspace.eperson.RegistrationDataMetadataServiceImpl
- All Implemented Interfaces:
RegistrationDataMetadataService,DSpaceCRUDService<RegistrationDataMetadata>
public class RegistrationDataMetadataServiceImpl
extends Object
implements RegistrationDataMetadataService
- Author:
- Vincenzo Mecca (vins01-4science - vincenzo.mecca at 4science.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(Context context, RegistrationData registrationData, String schema, String element, String qualifier, String value) Creates a newRegistrationDataMetadatathat will be stored starting from the parameters of the method.create(Context context, RegistrationData registrationData, MetadataField metadataField) Creates a newRegistrationDataMetadatacreate(Context context, RegistrationData registrationData, MetadataField metadataField, String value) Creates a newRegistrationDataMetadatavoiddelete(Context context, RegistrationDataMetadata registrationDataMetadata) voidupdate(Context context, List<RegistrationDataMetadata> t) Persist a collection of model objects.voidupdate(Context context, RegistrationDataMetadata registrationDataMetadata) Persist a model object.
-
Constructor Details
-
RegistrationDataMetadataServiceImpl
public RegistrationDataMetadataServiceImpl()
-
-
Method Details
-
create
public RegistrationDataMetadata create(Context context, RegistrationData registrationData, String schema, String element, String qualifier, String value) throws SQLException Description copied from interface:RegistrationDataMetadataServiceCreates a newRegistrationDataMetadatathat will be stored starting from the parameters of the method.- Specified by:
createin interfaceRegistrationDataMetadataService- Parameters:
context- - the DSpace ContextregistrationData- - the Registration data that will contain the metadataschema- - the schema of the metadata fieldelement- - the element of the metadata fieldqualifier- - the qualifier of the metadata fieldvalue- - the value of that metadata- Returns:
- the newly created RegistrationDataMetadata
- Throws:
SQLException
-
create
public RegistrationDataMetadata create(Context context, RegistrationData registrationData, MetadataField metadataField) throws SQLException Description copied from interface:RegistrationDataMetadataServiceCreates a newRegistrationDataMetadata- Specified by:
createin interfaceRegistrationDataMetadataService- Parameters:
context- - the DSpace ContextregistrationData- - the RegistrationData that will contain that metadatametadataField- - the metadataField- Returns:
- the newly created RegistrationDataMetadata
- Throws:
SQLException
-
create
public RegistrationDataMetadata create(Context context, RegistrationData registrationData, MetadataField metadataField, String value) throws SQLException Description copied from interface:RegistrationDataMetadataServiceCreates a newRegistrationDataMetadata- Specified by:
createin interfaceRegistrationDataMetadataService- Parameters:
context- - the DSpace ContextregistrationData- - the RegistrationData that will contain that metadatametadataField- - the metadataField that will be storedvalue- - the value that will be placed inside the RegistrationDataMetadata- Returns:
- the newly created
RegistrationDataMetadata - Throws:
SQLException
-
create
- Specified by:
createin interfaceDSpaceCRUDService<RegistrationDataMetadata>- Throws:
SQLExceptionAuthorizeException
-
find
- Specified by:
findin interfaceDSpaceCRUDService<RegistrationDataMetadata>- Throws:
SQLException
-
update
public void update(Context context, RegistrationDataMetadata registrationDataMetadata) throws SQLException, AuthorizeException Description copied from interface:DSpaceCRUDServicePersist a model object.- Specified by:
updatein interfaceDSpaceCRUDService<RegistrationDataMetadata>registrationDataMetadata- object to be persisted.- Throws:
SQLException- passed through.AuthorizeException- passed through.
-
update
public void update(Context context, List<RegistrationDataMetadata> t) throws SQLException, AuthorizeException Description copied from interface:DSpaceCRUDServicePersist a collection of model objects.- Specified by:
updatein interfaceDSpaceCRUDService<RegistrationDataMetadata>t- object to be persisted.- Throws:
SQLException- passed through.AuthorizeException- passed through.
-
delete
public void delete(Context context, RegistrationDataMetadata registrationDataMetadata) throws SQLException, AuthorizeException - Specified by:
deletein interfaceDSpaceCRUDService<RegistrationDataMetadata>- Throws:
SQLExceptionAuthorizeException
-