Thanks for the quick answer Florent.

-----Original Message-----
From: Florent Guillaume [mailto:[email protected]] 
Sent: jeudi 3 novembre 2011 15:29
To: [email protected]
Cc: Cédric Moitrier
Subject: Re: Clarification on CmisService.deleteObjectOrCancelCheckOut

If it's a PWC then deleteOrCancelCheckOut maps to the operation cancelCheckOut 
in the domain model, which doesn't have an "allVersions" parameter, so you 
should ignore it and just cancel the checkout.

Florent

2011/11/3 Cédric Moitrier <[email protected]>:
> Hi Chemistry guys,
>
>
>
> I have a question regarding how to properly implement 
> "CmisService.deleteOrCancelCheckOut(...)".
>
>
>
> When using AtomPub binding, this method can be called for two reasons:
>
> 1/ deleting a document
>
> 2/ cancelling the checkout of a PWC
>
>
>
> From what I understand, if the target object is a PWC (a versionable document 
> that is checked-out), then the checkout has to be cancelled, otherwise the 
> document must be deleted.
>
> That seems pretty clear when the parameter "allVersions" is set to false.
>
>
>
> But now, what if "allVersions " is set to true:
>
> 1/ if the object is not a PWC, all versions must be deleted - OK
>
> 2/ if the object is a PWC, what is the expected behavior ? Deleting all 
> versions as well ?
>
> Regards,
>
>
>
> --
>
> Cedric Moitrier
>
> Software Engineer, EntropySoft
>
> http://www.entropysoft.net <http://www.entropysoft.net>
>
> mailto:[email protected]
>
>
>
>



--
Florent Guillaume, Director of R&D, Nuxeo Open Source, Java EE based, 
Enterprise Content Management (ECM) http://www.nuxeo.com   
http://www.nuxeo.org   +33 1 40 33 79 87

Reply via email to