public class CellEntryConsistencyInterceptor extends Object implements LoadInterceptor<CellEntryModel>, ValidateInterceptor<CellEntryModel>
| Modifier and Type | Field and Description |
|---|---|
static Logger |
LOG |
| Constructor and Description |
|---|
CellEntryConsistencyInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
onLoad(CellEntryModel cell,
InterceptorContext ctx)
If a model is loaded from the database this method is called by the model service.
|
void |
onValidate(CellEntryModel cellEntry,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
public void onLoad(CellEntryModel cell, InterceptorContext ctx) throws InterceptorException
LoadInterceptoronLoad in interface LoadInterceptor<CellEntryModel>cell - the model to be loadedctx - the InterceptorContextInterceptorException - if the model could not be loadedpublic void onValidate(CellEntryModel cellEntry, InterceptorContext ctx) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<CellEntryModel>cellEntry - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.Copyright © 2017 SAP SE. All Rights Reserved.