/** * Gets the specified permission definition (if any) at the class level. * * @param resourceClass the entity to check * @param field the field to inspect * @param annotationClass the permission to look for * @return a {@code ParseTree} expressing the permissions, if one exists * or {@code null} if the permission is not specified on that field */ public ParseTree getPermissionsForField(Class<?> resourceClass, String field, Class<? extends Annotation> annotationClass) { EntityBinding binding = getEntityBinding(resourceClass); return binding.entityPermissions.getFieldChecksForPermission(field, annotationClass); }
/** * Gets the specified permission definition (if any) at the class level. * * @param resourceClass the entity to check * @param field the field to inspect * @param annotationClass the permission to look for * @return a {@code ParseTree} expressing the permissions, if one exists * or {@code null} if the permission is not specified on that field */ public ParseTree getPermissionsForField(Class<?> resourceClass, String field, Class<? extends Annotation> annotationClass) { EntityBinding binding = getEntityBinding(resourceClass); return binding.entityPermissions.getFieldChecksForPermission(field, annotationClass); }