public class UniqueAttributesInterceptor extends LocalizedMessageAwareValidator implements ValidateInterceptor
| Modifier and Type | Class and Description |
|---|---|
protected static class |
UniqueAttributesInterceptor.UniqueItem |
| Constructor and Description |
|---|
UniqueAttributesInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<UniqueAttributesInterceptor.UniqueItem> |
getModifiedUniqueItemModels(InterceptorContext ctx) |
TypeService |
getTypeService() |
void |
onValidate(Object model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setTypeService(TypeService typeService) |
getLocalizedMessage, setL10nServicepublic TypeService getTypeService()
public void setTypeService(TypeService typeService)
public void onValidate(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.protected Collection<UniqueAttributesInterceptor.UniqueItem> getModifiedUniqueItemModels(InterceptorContext ctx) throws InterceptorException
InterceptorExceptionCopyright © 2017 SAP SE. All Rights Reserved.