Class MetadataValueDTOListConverter

  • All Implemented Interfaces:
    org.springframework.core.convert.converter.Converter<List<org.dspace.content.dto.MetadataValueDTO>,​MetadataRest>

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

      • MetadataValueDTOListConverter

        public MetadataValueDTOListConverter()
    • Method Detail

      • convert

        public MetadataRest convert​(List<org.dspace.content.dto.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<org.dspace.content.dto.MetadataValueDTO>,​MetadataRest>
        Parameters:
        metadataValueList - the domain values.
        Returns:
        the rest representation.