Hi !
We are about to release a first version of WebDAV quotas.
I have two basic questions :
1.
I use listeners and events.
For a copy or a move request and when the resource already exits the following events are thrown (in this order) :
move(copy)BeforeCopy
move(copy)BeforeDelete
move(copy)AfterDelete
move(copy)AfterCopy
move(copy)BeforeDelete
move(copy)AfterDelete
With this system, I am not obliged to check if the resource already exists.
But for a put request, the put and put after methods are called (in this order) whether the resource already exists or not.
Would it be possible to have something like :
put
putBeforeDelete (before deleting the existing destination resource)
putAfterDelete (after deleting the existing destination resource)
putAfter
.. if the resource already exist
2.
When a quota limitation is reached I throw an exception like :
InsufficientStorageException insufficientStorageException = new InsufficientStorageException(destinationUri, connectedUser, QUOTA_EXCEEDED);
VetoException vetoException = new VetoException(QUOTA_EXCEEDED);
vetoException.initCause(insufficientStorageException);
...
But I am not sure that the thrown exception is a 507 error as specified in the DAV standard.
Thank you.
Thomas
-- +---=( Thomas Bellembois )=---+ | CRI - University of Rennes 1 - FR | | [EMAIL PROTECTED] | | +33 2 23 23 69 60 | +-----------------------------------+
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
