From: Wolfgang M. <wol...@ex...> - 2005-02-18 10:06:26
|
> On the moment I'm stuck with reading eXist status parameters. (version info, > file size, owned by, group, etc) the only parameter I was able to retrieve > were the permissions of a file or collection. The creation time etc. of a resource can be queried through the interface EXistResource, which is implemented by all resources retrieved from an XMLDB collection. For example: Resource res = collection.getResource(name); created = ((EXistResource) res).getCreationTime(); modified = ((EXistResource) res).getLastModificationTime(); mimeType = ((EXistResource) res).getMimeType(); Collections extend org.exist.xmldb.CollectionImpl, which has a method getCreationTime(). The owner and group can be retrieved from the Permission object obtained through the UserManagementService. (this is all very ugly. We really need a simpler API...) Wolfgang |