Interface InitDefaultsInterceptor<MODEL>
- All Superinterfaces:
Interceptor
- All Known Implementing Classes:
B2BCustomerInitDefaultsInterceptor,CleanUpCronJobInterceptor,CMSRelationInitDefaultsInterceptor,ContentSlotForPageInitDefaultsInterceptor,ContentSlotForTemplateInitDefaultsInterceptor,CronJobInitDefaultsInterceptor,CsTicketEventPrepareInterceptor,CsTicketPrepareInterceptor,ExportCronJobInitDefaultsInterceptor,HistoryEntryInterceptor,ImpExMediaInitDefaultsInterceptor,ImportCronJobInitDefaultsInterceptor,JaloInitDefaultsInterceptor,MerchandisingCarouselComponentInitDefaultsInterceptor,MultiCodeCouponInitDefaultsInterceptor,ProcessTaskLogMaintenanceJobInitDefaultsInterceptor,ProductEntitlementInitDefaultsInterceptor,VendorUserInitDefaultsInterceptor,VoidInterceptor
The InitDefaultsInterceptor is called when a model is filled with its default values. This happens either when it is
created via the
modelService.create() method or when the modelService.initDefaults method is called.
Use this interceptor to fill the model with additional default values, apart from the values defined in the items.xml
file.-
Method Summary
Modifier and TypeMethodDescriptionvoidonInitDefaults(MODEL model, InterceptorContext ctx) Called byModelService.initDefaults(Object)after instantiate a new model.
-
Method Details
-
onInitDefaults
Called byModelService.initDefaults(Object)after instantiate a new model.- Parameters:
model- the model which values should be set to the default valuesctx- theInterceptorContext- Throws:
InterceptorException- if the loading of the default value reports an error.
-