Directly pass parameters: more code in JS, but less in Java (automatic retrieval of entities). Use of the filter passed to backend.
Downloading shapes takes the configured attributes in account.