Class MetadataValueDTOListConverter

java.lang.Object
org.dspace.app.rest.converter.MetadataValueDTOListConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<List<MetadataValueDTO>,MetadataRest>

@Component public class MetadataValueDTOListConverter extends Object implements org.springframework.core.convert.converter.Converter<List<MetadataValueDTO>,MetadataRest>
Converter to translate between lists of domain MetadataValues and MetadataRest representations.
  • Constructor Details

    • MetadataValueDTOListConverter

      public MetadataValueDTOListConverter()
  • Method Details

    • convert

      public MetadataRest convert(List<MetadataValueDTO> metadataValueList)
      Gets a rest representation of the given list of domain metadata values.
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<List<MetadataValueDTO>,MetadataRest>
      Parameters:
      metadataValueList - the domain values.
      Returns:
      the rest representation.