Hi
The ServerObjects contrib has been updated in SVN r21811 to revamp the
remote file handling API for better memory usage and easier oversight for
security and extensibility.
The previous version of ServerObjects used a class called
com.zenesis.qx.remote.AppFile, which was little more that a wrapper around
java.io.File. This approach had a number of disadvantages, for example it
was difficult to manage references on the server (leading to increases in
memory used on the server by each session), and it was impractical to add
features (eg meta data or enhanced security) because everywhere needed to
take account of different class constructors.
AppFile has been replaced by com.zenesis.qx.remote.FileApi, where a single
instance can be used to list files, get file details such as size, last
modified, etc, and manipulate (eg copy, move, rename, delete) files.
FileApi enforces a "root" folder, above which the client is not permitted
to access files and because FileApi is a single point of entry for
accessing files it is trivial to enforce additional rules or add new
features (eg meta data).
Unfortunately, the FileApi is not backwards compatible with the other
classes in ServerObjects; the chain of dependencies from AppFile was too
great to sensibly abstract into a with-AppFile and with-FileApi versions so
that AppFile could become deprecated (perhaps a sign that the AppFile
design needed review).
If you need backwards compatibility, please use the "appfile" branch
available at [1].
Any questions please ask.
Regards
John
[1]
http://qooxdoo-contrib.svn.sourceforge.net/viewvc/qooxdoo-contrib/trunk/qoox
doo-contrib/ServerObjects/branches/appfile/
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel