jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Sascha.The...@innovations.de>
Subject AW: How to retrieve the node id in AccessManager of a removed node
Date Mon, 16 Aug 2010 17:03:03 GMT

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.



-----Urspr√ľngliche Nachricht-----
Von: Alexander Klimetschek [mailto:aklimets@day.com] 
Gesendet: Montag, 16. August 2010 18:37
An: users@jackrabbit.apache.org
Betreff: Re: How to retrieve the node id in AccessManager of a removed node

On Mon, Aug 16, 2010 at 17:24,  <Sascha.Theves@innovations.de> 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...


Alexander Klimetschek

View raw message