enonic/wem-ce — pull request #15 by vfi (2012-07-31 10:28:29+00:00)
Title: CMS-6 Improve rest service for account export

We want to improve the rest service for exporing accounts. The export should be implemented in two services:

account/export-query (export to csv based on query)
account/export-keys (export to csv based on selected keys - should probably be POST instead of GET)

I have created placeholders in code in AccountResource.exportKeys(..) and AccountResource.exportQuery(..). Please also create tests for this. Plenty of examples. Use mocks as dependent services and do not wire it into complex spring stuff.

NOTE! This task only covers the actual rest service. Do not change the JavaScript in Admin Console now. The new rest service lives under /admin/rest/account/export and do not break existing rest services.