@Component public class MetadataConverter extends Object implements org.springframework.core.convert.converter.Converter<List<MetadataValue>,MetadataRest>
MetadataValues and MetadataRest representations.| Constructor and Description |
|---|
MetadataConverter() |
| Modifier and Type | Method and Description |
|---|---|
MetadataRest |
convert(List<MetadataValue> metadataValueList)
Gets a rest representation of the given list of domain metadata values.
|
void |
setMetadata(Context context,
DSpaceObject dso,
MetadataRest metadataRest)
Sets a DSpace object's domain metadata values from a rest representation.
|
public MetadataRest convert(List<MetadataValue> metadataValueList)
convert in interface org.springframework.core.convert.converter.Converter<List<MetadataValue>,MetadataRest>metadataValueList - the domain values.public void setMetadata(Context context, DSpaceObject dso, MetadataRest metadataRest) throws SQLException, AuthorizeException
context - the context to use.dso - the DSpace object.metadataRest - the rest representation of the new metadata.SQLException - if a database error occurs.AuthorizeException - if an authorization error occurs.Copyright © 2019 DuraSpace. All rights reserved.