class MetadataApiService {

    @PreAuthorize("hasRole('ADMIN') OR @grantPermissionManager.listMetadataPermissions(#entities, 'READ')")
    public List<MetadataEntry> listMetadataItems(List<EntityVO> entities) {
        return metadataManager.listMetadataItems(entities);
    }

}