Class DefaultJobLogConverter

  • All Implemented Interfaces:
    Converter<java.util.List<JobLogModel>,​java.lang.String>, org.springframework.core.convert.converter.Converter<java.util.List<JobLogModel>,​java.lang.String>

    public class DefaultJobLogConverter
    extends java.lang.Object
    implements Converter<java.util.List<JobLogModel>,​java.lang.String>
    Implementation for converting the List to String representation.
    • Constructor Detail

      • DefaultJobLogConverter

        public DefaultJobLogConverter()
    • Method Detail

      • setDateFormatPattern

        public void setDateFormatPattern​(java.lang.String dateFormatPattern)
      • setMaxMessageRows

        public void setMaxMessageRows​(int maxMessageRows)
      • setFormatFactory

        public void setFormatFactory​(FormatFactory formatFactory)
      • convert

        public java.lang.String convert​(java.util.List<JobLogModel> logs)
                                 throws ConversionException
        Description copied from interface: Converter
        Converts the source object, creating a new instance of the destination type
        Specified by:
        convert in interface Converter<java.util.List<JobLogModel>,​java.lang.String>
        Specified by:
        convert in interface org.springframework.core.convert.converter.Converter<java.util.List<JobLogModel>,​java.lang.String>
        Parameters:
        logs - the source object
        Returns:
        the converted object
        Throws:
        ConversionException - if an error occurs
      • convert

        public java.lang.String convert​(java.util.List<JobLogModel> source,
                                        java.lang.String prototype)
                                 throws ConversionException
        Description copied from interface: Converter
        Convert the source object by filling the prototype
        Specified by:
        convert in interface Converter<java.util.List<JobLogModel>,​java.lang.String>
        Parameters:
        source - the source object
        prototype - the prototype to fill
        Returns:
        the converted object, identical to the prototype
        Throws:
        ConversionException - if an error occurs