On 12/17/10 4:30 PM, Pierre-Arnaud Marcelot wrote:
Hi Emmanuel,
More inline...
+--------+
|Subentry|
+--------+
Removing a subentry is slightly more complex, as we will have to update the
associated AP SeqNumber, so that the entries part of the subtree can be updated
later.
-------------------------------------------
get a new seqNumber
update the parentAP(role) with the new seqNumber
if the parentAP(role) is an IAP
then
update the parentAP(role) descendant with the new seqNumber
remove the subentry from the backend
-------------------------------------------<<<
I disagree. In the second part of the pseudo code we don't need to check if the
parentAP(role) is an IAP. It also works if it's a SAP.
right...
My version of the pseudo code would be:
-------------------------------------------
get a new seqNumber
update the parentAP(role) with the new seqNumber
for each parentAP IAP descendant
update IAP with new seqNumber
done
remove the subentry from the backend
-------------------------------------------<<<
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com