Hi,

our permissions are defined in a separate db scheme with its own database 
tables. In these tables we reference only the node id of the JCR nodes on which 
we have defined some own permissions because that id is unique and is not 
changed when the node is renamed. When the user removes a node we want to check 
the permission tables if the user is allowed to do so. Therefore we need the 
uuid of the node that is being deleted to check the permissions because we have 
to know what node is deleted.

Cheers,

Sascha

-----Ursprüngliche Nachricht-----
Von: Alexander Klimetschek [mailto:[email protected]] 
Gesendet: Montag, 16. August 2010 18:37
An: [email protected]
Betreff: Re: How to retrieve the node id in AccessManager of a removed node

On Mon, Aug 16, 2010 at 17:24,  <[email protected]> wrote:
> we are implementing our own AccessManager that reflects our permission
> constraints. These contraints depending all on the node id of the JCR
> nodes. That works fine until we delete nodes and want to recover the
> node id of the deleted node. When a node was deleted with node.remove()
> and after that the session was saved with session.save() we are unable
> to access the node id (uuid) anymore.

If the remove is persisted, why do you need to access the node id
then? Your access manager should be able to cope with non-existing
nodes then...

Regards,
Alex

-- 
Alexander Klimetschek
[email protected]

Reply via email to