Interface InitDefaultsInterceptor<MODEL>
-
- All Superinterfaces:
Interceptor
- All Known Implementing Classes:
B2BCustomerInitDefaultsInterceptor,CleanUpCronJobInterceptor,CMSRelationInitDefaultsInterceptor,ContentSlotForPageInitDefaultsInterceptor,ContentSlotForTemplateInitDefaultsInterceptor,CronJobInitDefaultsInterceptor,CsTicketEventPrepareInterceptor,CsTicketPrepareInterceptor,ExportCronJobInitDefaultsInterceptor,HistoryEntryInterceptor,ImpExMediaInitDefaultsInterceptor,ImportCronJobInitDefaultsInterceptor,JaloInitDefaultsInterceptor,MultiCodeCouponInitDefaultsInterceptor,ProcessTaskLogMaintenanceJobInitDefaultsInterceptor,ProductEntitlementInitDefaultsInterceptor,VendorUserInitDefaultsInterceptor,VoidInterceptor
public interface InitDefaultsInterceptor<MODEL> extends Interceptor
The InitDefaultsInterceptor is called when a model is filled with its default values. This happens either when it is created via themodelService.create()method or when themodelService.initDefaultsmethod 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonInitDefaults(MODEL model, InterceptorContext ctx)Called byModelService.initDefaults(Object)after instantiate a new model.
-
-
-
Method Detail
-
onInitDefaults
void onInitDefaults(MODEL model, InterceptorContext ctx) throws InterceptorException
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.
-
-