Class DeeplinkUrlValidateInterceptor
- java.lang.Object
-
- de.hybris.platform.deeplink.servicelayer.interceptors.DeeplinkUrlValidateInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
public class DeeplinkUrlValidateInterceptor extends java.lang.Object implements ValidateInterceptor
The Class DeeplinkUrlValidateInterceptor. ValidatesDeeplinkUrlModelmodel.
-
-
Constructor Summary
Constructors Constructor Description DeeplinkUrlValidateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeeplinkUrlDaogetDeeplinkUrlDao()Gets the deeplink url dao.protected java.lang.StringgetLocalizedString(java.lang.String key, java.lang.Object... arguments)Gets the localized string.voidonValidate(java.lang.Object model, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetDeeplinkUrlDao(DeeplinkUrlDao deeplinkUrlDao)Sets the deeplink url dao.
-
-
-
Method Detail
-
onValidate
public void onValidate(java.lang.Object model, InterceptorContext ctx) throws InterceptorExceptionDescription copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor- Parameters:
model- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
getDeeplinkUrlDao
public DeeplinkUrlDao getDeeplinkUrlDao()
Gets the deeplink url dao.- Returns:
- the deeplinkUrlDao
-
setDeeplinkUrlDao
public void setDeeplinkUrlDao(DeeplinkUrlDao deeplinkUrlDao)
Sets the deeplink url dao.- Parameters:
deeplinkUrlDao- the deeplinkUrlDao to set
-
getLocalizedString
protected java.lang.String getLocalizedString(java.lang.String key, java.lang.Object... arguments)Gets the localized string.- Parameters:
key- the keyarguments- the arguments- Returns:
- the localized string
-
-