> I'm using the context security of mmbase, which works fine. I would
> like to know if it's possible to deduce which logged in user created
> which node. As far as I can see only the security context is stored in
> the database in the owner field, but not the username.
> Any suggestions?

Depending on your specific needs:

1) The obvious solution: Create a context for every single user, and
specify this as the context for objects created by the user.The disadvantage of this 
approach is off course that you may need to
create a lot of contexts is you have many users.
2) If you don't need the information to be stored inside the system, you
can have the information written to a logfile. Every creation of a node is
logged, including information about the user. You just need the right
logging configuration to have this written to a file.I don't know which logger 
category is used for this, but you can easily
find out by setting the logging priority to "debug" for all categories and
inspect the results.
Rob van Maris
Developer

Finalist IT Group
Java Specialists
-------------------------------------------------------------
Amsterdam, The Netherlands
Office: +31 20 5962321 (Direct)
Mobile: +31 651444006
Fax: +31 20 5962331
-------------------------------------------------------------




Reply via email to