Class DefaultCmsUrlChangeEventConverter
java.lang.Object
de.hybris.platform.cmscockpit.components.liveedit.converter.DefaultCmsUrlChangeEventConverter
- All Implemented Interfaces:
Converter<String[],,CmsUrlChangeEvent> org.springframework.core.convert.converter.Converter<String[],CmsUrlChangeEvent>
public class DefaultCmsUrlChangeEventConverter
extends Object
implements Converter<String[],CmsUrlChangeEvent>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts the source object, creating a new instance of the destination typeconvert(String[] attributes, CmsUrlChangeEvent prototype) Convert the source object by filling the prototypeprotected StringextractRequestPath(String longUrl) Extracts request path from long URL (request path with query search)voidsetFrontEndAttributesConverter(Converter<String[], FrontendAttributes> frontEndAttributesConverter) 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
-
DefaultCmsUrlChangeEventConverter
public DefaultCmsUrlChangeEventConverter()
-
-
Method Details
-
extractRequestPath
Extracts request path from long URL (request path with query search)- Parameters:
longUrl- request path with query search- Returns:
- extracted request path
-
convert
Description copied from interface:ConverterConverts the source object, creating a new instance of the destination type- Specified by:
convertin interfaceConverter<String[],CmsUrlChangeEvent> - Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<String[],CmsUrlChangeEvent> - Parameters:
attributes- the source object- Returns:
- the converted object
- Throws:
ConversionException- if an error occurs
-
convert
public CmsUrlChangeEvent convert(String[] attributes, CmsUrlChangeEvent prototype) throws ConversionException Description copied from interface:ConverterConvert the source object by filling the prototype- Specified by:
convertin interfaceConverter<String[],CmsUrlChangeEvent> - Parameters:
attributes- the source objectprototype- the prototype to fill- Returns:
- the converted object, identical to the prototype
- Throws:
ConversionException- if an error occurs
-
getFrontEndAttributesConverter
-
setFrontEndAttributesConverter
public void setFrontEndAttributesConverter(Converter<String[], FrontendAttributes> frontEndAttributesConverter)
-