Class CecModelInterceptor
- java.lang.Object
-
- com.sap.platform.sapcpconfiguration.interceptor.CecModelInterceptor
-
- All Implemented Interfaces:
Interceptor,RemoveInterceptor,ValidateInterceptor
public class CecModelInterceptor extends java.lang.Object implements RemoveInterceptor, ValidateInterceptor
This class is used to clear the cache if CecService or CecTechncialUser model modified
-
-
Constructor Summary
Constructors Constructor Description CecModelInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelServicegetModelService()SapCharonFactorygetSapCharonFactory()voidonRemove(java.lang.Object model, InterceptorContext arg1)Called in themodelService.removeAll()method.voidonValidate(java.lang.Object model, InterceptorContext arg1)Called in themodelService.saveAll()method.voidsetModelService(ModelService modelService)voidsetSapCharonFactory(SapCharonFactory sapCharonFactory)
-
-
-
Method Detail
-
onValidate
public void onValidate(java.lang.Object model, InterceptorContext arg1) 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 validatedarg1- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
onRemove
public void onRemove(java.lang.Object model, InterceptorContext arg1) throws InterceptorExceptionDescription copied from interface:RemoveInterceptorCalled in themodelService.removeAll()method.- Specified by:
onRemovein interfaceRemoveInterceptor- Parameters:
model- the model which should be removedarg1- theInterceptorContext- Throws:
InterceptorException- if the remove reports an error
-
getSapCharonFactory
public SapCharonFactory getSapCharonFactory()
-
setSapCharonFactory
public void setSapCharonFactory(SapCharonFactory sapCharonFactory)
-
getModelService
public ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
-