> -----Original Message-----
> From: Robert Munn [mailto:[EMAIL PROTECTED]
> Sent: Saturday, October 15, 2005 2:29 PM
> To: CF-Talk
> Subject: Re: Pluggable Security system/ app architecture (WAS: Re: Any
> Interest in a Completely Free CFML Calendar?)
> 
> This is along the lines of what I was thinking, at least the core of it.
> Your notion of creating the model without defining an interface is the
> heart of what I was thinking. DAOs would need to be built to connect the
> logical model to specific data providers- LDAP, SQL Server, MySQL, etc. A
> web services facade would need to be built to provide an API for external
> applications.

Actually that's one aspect of the library that I like: all persistence
information is maintained separately already in DAO-like "Broker"
components.

Right now I've only done SQL Server brokers, but to add a different
persistence entity you only need to define a new set of brokers (using the
provided broker interfaces as a base).

You can quite easily add new broker sets for any database, LDAP, XML, flat
files or whatever - as long as the brokers return the expected information.

Actually you've just pointed out a bug in my documentation - the broker
templates available (if any) should be linked at the top of each component -
they're not.  You can see in the code lines like:

<dpDoc type="Broker" name="... >

These should define the brokers for the documentation engine... but they're
not.  I may just have to refresh the cache.

In any case if you download the libraries you'll see the brokers and the
broker interfaces.

> Are these libraries something that could be used as a baseline for
> development?

That's really up to you.  ;^)  The whole thing is open source and I will,
someday, get the time to document them more fully.

I've striven to make as few assumptions as I can with the libraries - the
only (potentially) big requirement is that a CF mapping is needed (you can't
really do package-level object validation without one).

Also, especially for the security system, there are some pieces missing -
especially on the admin side (there's no service yet, for example, for "get
all users").  But that kind of stuff wouldn't be difficult to add.

Jim Davis




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221129
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to