public List<UserFilterResource> getSharedFilters(String userName, Filter filter, String projectName) {
List<UserFilter> filters = filterRepository.findFilters(userName, projectName, Shareable.NAME_OWNER_SORT, true);
return resourceAssembler.toResources(filters);
}
@Override
<BUG>public Resources<UserFilterResource> getFilters(String userName, Pageable pageable, Filter filter, String projectName) {
</BUG>
Page<UserFilter> filters = filterRepository.findAllByFilter(filter, pageable, projectName, userName);
return resourceAssembler.toPagedResources(filters);
}

public List<UserFilterResource> getSharedFilters(String userName, Filter filter, String projectName) {
List<UserFilter> filters = filterRepository.findFilters(userName, projectName, Shareable.NAME_OWNER_SORT, true);
return resourceAssembler.toResources(filters);
}
@Override
public Iterable<UserFilterResource> getFilters(String userName, Pageable pageable, Filter filter, String projectName) {
Page<UserFilter> filters = filterRepository.findAllByFilter(filter, pageable, projectName, userName);
return resourceAssembler.toPagedResources(filters);
}
