Hi
I'm fairly new to this OO process and design using Coldfusion, but from following many of the discussions here, I think I've managed to setup a half decent structure for my first application to utilise it (under Fusebox/MVC). One wall (of many!) that I have hit at the moment is to do with using a Manager/Facade to handle a user login.

When a user logs in, i pass these details to the relevant method in a systemuserManager, where it performs the appropriate validation and instantiates a systemuser BO into the session scope with the relevant user data.

Included in a user's login however, i need to also store a Role object in the session scope. A point to note, I have a roleManager in my system for handling Role-related business methods. My code at the moment in the login method is instantiating into the session scope a systemuser and role object.

What my question is, should only the respective Managers be handling their own business objects within the session scope (or at any level for that matter)? What I mean is that based on my code description above, I am creating/handling a session scoped role object in the systemuserManager, and it is getting to the stage where methods in my RoleManager also need to handle this object, and no doubt other Managers down the track that may need to access it.

Should I on the other hand have the Managers communicating with one another? eg within the login method in the systemUser manager, instantiate the systemuser into session scope THEN make a call to an appropriate method in the roleManager that instantiates a role object into the session scope? ... kind of like cross-talking Managers?

Thanks for any help or advice anyone can offer!
Leigh


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to