<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Andy Bicksbo schrieb:
<blockquote
cite="midc67d43dd0611011110o2521c329n7d15edb5e0f1157f@mail.gmail.com"
type="cite">
<meta http-equiv="Context-Type"
content="text/html; charset=ISO-8859-1">
<div>Hi all!</div>
<div>I 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
</div>
<div> </div>
<div> 1) CmsObject</div>
<div> where the requestContext is added to the request,</div>
<div> no problem to cutomize this, a public getter for the
COntext is provided</div>
<div> </div>
<div> 2) CmsSecurityManager</div>
<div> where the DbContext is added to the request,</div>
<div> AND THATS THE POINT I HAVE NO CLUE HOW TO CUSTOMIZE THIS</div>
<div> the class is final so i cannot subclass it</div>
<div> i found nothing to get the DbContextFactory out of this
Object for the DbContext</div>
<div> </div>
<div> 3) CmsDriverManager </div>
<div> here the special driver gets init </div>
<div> Same proplems with as point 2) class is final</div>
<div> </div>
<div>and then the DbDriver reads the special user data (i manage to
build my own driver);</div>
<div> </div>
<div>So if someone has an idea how to build dbaccess for custom
filetype in style of opencms plz help me! </div>
<div> </div>
<div>thx andy</div>
<div> </div>
</blockquote>
Dear Andy,<br>
<br>
You definitely do not have to modify all the classes you have
mentioned. Your system would become so different from the standard
codebase, that lots of problems would follow.<br>
<br>
I have written down some notes on what I know about custom resource
types:<br>
<a class="moz-txt-link-freetext" href="http://opencms-wiki.org/index.php/Custom_File_and_Folder_Types">http://opencms-wiki.org/index.php/Custom_File_and_Folder_Types</a><br>
<br>
That's about what I know on this topic and it should hopefully give you
at least an idea of where to start. <br>
If you find out something that's not written there, please extend the
WIKI-entry.<br>
<br>
hth<br>
christian<br>
</body>
</html>