Auditable auditable = cls.getAnnotation(Auditable.class);
if (auditable == null) {
return;
}
List<AuditableOperation> events = Arrays.asList(auditable.values());
if (events.contains(AuditableOperation.ALL) || events.contains(AuditableOperation.CREATE)) {
_newTypes.add(cls);
_allTypes.add(cls);
}
if (events.contains(AuditableOperation.ALL) || events.contains(AuditableOperation.UPDATE)) {