----- Original Message -----
From: "Cutter (CF_Talk)" <[EMAIL PROTECTED]>
> I'm working on a site for a school district's adult ed program. They are
> requiring no less than 4 different "access" areas with multiple levels
> of control. After a little research I'm expanding upon a roles based
> security model that I originally read about on the MM site (CFC best
> practices: Component functions and function invocation by Anthony
> McClure,
>
http://www.macromedia.com/desdev/mx/coldfusion/articles/cfc_practices.html).
> A very basic outline is given, and the sample includes (ohboy) an Access
> db, but with fairly minor modification it can be put together into a
> viable roles based security model.
---------------------------

I'll check this out, but my post was less about user security models than
about modelling "people" in a more general fashion using CFC's.

So if there are company contacts, it's not necessarily so that every contact
will have a login account. But some administrators might be contacts. So it
seemed like it might be a good idea to have a top-level "person" CFC, which
would contain stuff like name, email, personal info, etc., that would be
common to all people on the site, then have a "contact" CFC and a
"administrator" CFC, which both extend "person".

Another example is a personal project, http://norlonto.net, which has a
table of people associated with content items. Relationships are formed
between the "content" and "people" tables to specify interview subjects,
authors of books reviewed, directors of films reviewed, etc. Then you can
list all the content on the site associated with specific people:

http://norlonto.net/index.cfm?action=browse.people

Now, some of the contributors are interviewed on the site, or have their
book reviewed. Without CFC's, and admittedly without as much planning as
could have been done, the resulting code to manage the updating and
synchronisation of contributors who also have a "people" record has become
quite brain-curdling.

This is what got me thinking about changing the template I use so that there
is a top-level "people" DB table/CFC, with specific types of people - users,
administrators, contacts, writers, directors, etc. - branching off with
subtype CFC's.

Anyone done anything similar?

Gyrus
[EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://norlonto.net
PGP key available

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to