on 2018 Apr 10 12:58 PM
Hello,
we have a ValidateInterceptor which reacts on type ItemModel . We would like our Interceptor not to react on Enums but it does. Because:
EnumerationMetaTypeModel extends ComposedTypeModel extends TypeModel extends TypeManagerManagedModel extends ItemModel
Which would be the best way to exclude Enums from our interceptor?
Thanks in advance!
Request clarification before answering.
Hi Sven,
Have you tried
// Just returning it it is the type,
if (item instanceof EnumerationMetaTypeModel) return;
// or in your other parameter sanitisation checks.
if (... && ! (item instanceof EnumerationMetaTypeModel) ...) { ... }
Hopefully this can help,
Luke
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.