[deepamehta-devel] How to use the FilesService aas of 4.7

Malte Reissig mre at deepamehta.de
Wed Nov 11 13:52:08 CET 2015

Hi Jörg,

i have created some Tickets, divided by "Action i wanted to use the
FilesService for". I had problems implementing these actions with the
new 4.7, esp. i wanted to avoid to handle/re-implement the per-workspace
setting in my various plugins.

1) Use FilesService to create File in a subdirectory (of the Workspace
current to the Requests)
(#882 was a duplicate for that and i just closed that with reference)

2) Use FilesService to check if a directpory (in the Workspace current
to the Requests) exists:

For the upgrade of the dm4-export plugin
(https://trac.deepamehta.de/ticket/871) i need to use (1) and for the
upgrade of dm4-images (https://trac.deepamehta.de/ticket/821) (2). For
the former it would be great if the filesservice provides some special
support from either the FilesService through a) creating a file topic
manually for an existing file or b) from you for getting to know how to
adapt the XMLStreamWriter(new FileWriter()) impl to be compatible with
the FilesService.store|createFile method.

Thanks very much for your support & Cheers!

More information about the devel mailing list