You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Cédric Moitrier <ce...@entropysoft.net> on 2011/11/03 13:45:24 UTC
Clarification on CmisService.deleteObjectOrCancelCheckOut
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:cedric.moitrier@entropysoft.net
RE: Clarification on CmisService.deleteObjectOrCancelCheckOut
Posted by Cédric Moitrier <ce...@entropysoft.net>.
Thanks for the quick answer Florent.
-----Original Message-----
From: Florent Guillaume [mailto:fg@nuxeo.com]
Sent: jeudi 3 novembre 2011 15:29
To: dev@chemistry.apache.org
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 <ce...@entropysoft.net>:
> 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:cedric.moitrier@entropysoft.net
>
>
>
>
--
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
Re: Clarification on CmisService.deleteObjectOrCancelCheckOut
Posted by Florent Guillaume <fg...@nuxeo.com>.
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 <ce...@entropysoft.net>:
> 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:cedric.moitrier@entropysoft.net
>
>
>
>
--
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