Consistent repository interface

- Change repository query to view method to accept view as it's filter
parameter.