public class TriggerJobValidateInterceptor extends java.lang.Object implements ValidateInterceptor
TriggerModel validator preventing against wrong assignment for
TriggerModel.setJob(de.hybris.platform.cronjob.model.JobModel).| Constructor and Description |
|---|
TriggerJobValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
onValidate(java.lang.Object model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setModelService(ModelService modelService) |
public void onValidate(java.lang.Object model,
InterceptorContext ctx)
throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptormodel - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.public void setModelService(ModelService modelService)
Copyright © 2018 SAP SE. All Rights Reserved.