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 GenericQuery |
createGenericQuery(UniqueAttributesInterceptor.UniqueItem item) |
protected java.util.Collection<UniqueAttributesInterceptor.UniqueItem> |
getModifiedUniqueItemModels(InterceptorContext ctx) |
TypeService |
getTypeService() |
void |
onValidate(java.lang.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(java.lang.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 GenericQuery createGenericQuery(UniqueAttributesInterceptor.UniqueItem item)
protected java.util.Collection<UniqueAttributesInterceptor.UniqueItem> getModifiedUniqueItemModels(InterceptorContext ctx) throws InterceptorException
InterceptorExceptionCopyright © 2018 SAP SE. All Rights Reserved.