Class DefaultJobLogConverter
- java.lang.Object
-
- de.hybris.platform.servicelayer.cronjob.impl.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 Listto String representation.
-
-
Constructor Summary
Constructors Constructor Description DefaultJobLogConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
convert(java.util.List<JobLogModel> logs)
Converts the source object, creating a new instance of the destination typejava.lang.String
convert(java.util.List<JobLogModel> source, java.lang.String prototype)
Convert the source object by filling the prototypevoid
setDateFormatPattern(java.lang.String dateFormatPattern)
void
setFormatFactory(FormatFactory formatFactory)
void
setMaxMessageRows(int maxMessageRows)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.servicelayer.dto.converter.Converter
convertAll, convertAllIgnoreExceptions, getLogger
-
-
-
-
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 interfaceConverter<java.util.List<JobLogModel>,java.lang.String>
- Specified by:
convert
in interfaceorg.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 interfaceConverter<java.util.List<JobLogModel>,java.lang.String>
- Parameters:
source
- the source objectprototype
- the prototype to fill- Returns:
- the converted object, identical to the prototype
- Throws:
ConversionException
- if an error occurs
-
-