Class DefaultJobLogConverter
java.lang.Object
de.hybris.platform.servicelayer.cronjob.impl.DefaultJobLogConverter
- All Implemented Interfaces:
Converter<List<JobLogModel>,,String> org.springframework.core.convert.converter.Converter<List<JobLogModel>,String>
Implementation for converting the List to String representation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(List<JobLogModel> logs) Converts the source object, creating a new instance of the destination typeconvert(List<JobLogModel> source, String prototype) Convert the source object by filling the prototypevoidsetDateFormatPattern(String dateFormatPattern) voidsetFormatFactory(FormatFactory formatFactory) voidsetMaxMessageRows(int maxMessageRows) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.servicelayer.dto.converter.Converter
convertAll, convertAllIgnoreExceptions, getLoggerMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
DefaultJobLogConverter
public DefaultJobLogConverter()
-
-
Method Details
-
setDateFormatPattern
-
setMaxMessageRows
public void setMaxMessageRows(int maxMessageRows) -
setFormatFactory
-
convert
Description copied from interface:ConverterConverts the source object, creating a new instance of the destination type- Specified by:
convertin interfaceConverter<List<JobLogModel>,String> - Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<List<JobLogModel>,String> - Parameters:
logs- the source object- Returns:
- the converted object
- Throws:
ConversionException- if an error occurs
-
convert
Description copied from interface:ConverterConvert the source object by filling the prototype- Specified by:
convertin interfaceConverter<List<JobLogModel>,String> - Parameters:
source- the source objectprototype- the prototype to fill- Returns:
- the converted object, identical to the prototype
- Throws:
ConversionException- if an error occurs
-