[opencms-dev] Custom DbDriver; How to get DbContext, implemet it to CmsDriverManager
Andy Bicksbo
schlachtzeuger at gmail.com
Thu Nov 2 14:45:00 CET 2006
Hi all!
studied the dbaccess of opencms and realized that every datatype comming
out of the db has it's own DbDriver class. So if for example a user should
get out of the db into the UserList of the admin view, the request of the
list has to go through
1) CmsObject
where the requestContext is added to the request,
no problem to cutomize this, a public getter for the COntext is
provided
2) CmsSecurityManager
where the DbContext is added to the request,
3) CmsDriverManager
here the special driver gets init
I want to develop my own cutom DbDriver.
The DbDrivers of opencms uses the dbpool and invoke a dbconnection with a
CmsDbContext.
The CmsDbContext is set in the CmsSecurityManager, but this class is final
and provides no possibility to get the CmsDbContext.
The DbDrivers get initialized at CmsDriverManager which is also final
So my question is :
how to get this DbContext and implement the new Driver correctly to Opencms?
thx andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20061102/d1b7aac0/attachment.htm>
More information about the opencms-dev
mailing list