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