Search Mailing List Archives
[protege-discussion] how to pass parameters to listeners
tudorache at stanford.edu
Tue Oct 24 18:01:06 PDT 2006
In the current Protege, it is not possible to get the user name from an
We have added this capability now. There are two methods in
AbstractEvent, getUserName() and getTimeStamp()
that you can call in order to get the user and timestamp information.
The code is already available in the SVN repository and it will
integrated in the next beta build, which we will probably do this week.
Please consult the javadoc of these methods for more information.
We have a plugin for change management that probably does what you want.
It is distributed with the full installation of Protege and is
documented on our wiki:
> Hi everyone, thanks for reading my question.
> We have a web system built on protege. It has a function to enable users to
> login the system and make changes to the knowledgebase. And We are using
> listeners to automatically record all changes made to the knowledgebase.
> Now I meet a problem. We want to store the modifor's name with each change
> record. The modifor's name will be the user name at the application level. But
> listeners are at the knowledgebase level. How can I pass the user name from
> application level to the listeners?
> For example, when the value of a slot is changed, the method
> ownSlotValueChanged(FrameEvent event) in FrameListener is triggered. How can I
> pass the user name at application level into this method? If I have to
> overwrite something, what is the best way to do it?
> Any help is appreciated!
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
More information about the protege-discussion