I’m currently working on a moderated Chat. I have 4 roles… Admin, Moderator, VIP and Participant.
I allready store a xml log file out of the OfMucConversationLog Table.
Instead of a conversation log I want to have a more an event based log… which means I want to store the role of the user who sent the message. The problem, I don’t kno how to do.
The Table OfMucAffiliation doesn’t help much because it just distinguishes between admin or not admin.
Did I may overlooked something helpful in the database schema?
An idea is to add a column to the OfMucConversation Table like “role”. So that evertime the message gets send it also stores the role of the user.
Adding a table is not the problem but is there any possibility to change and influence what openfire automatically stores into the DB?
you may want to write your own monitoring plugin using the Openfire API to log or store the things you need. Modifying the default tables is a bad idea as this may break Openfire updates.
Is it a good idea to use the Monitoring Service plugin to develop and change it further for my requirements?
I read the plugin developer guide but i didn’t find the information i searched for…
I tried to look into the source code of the monitorin service plugin to get a first impression about accessing and writing into a DB but I didn’t find or was not able to see the source code.
Is the source code within the lib folder with the filename.jar.pack files? How could I look into the source code?