Would appreciate if you could share your advice: how to keep the
customization info of a web application.
some sample requirements:
1. menu is dynamically created based on the Role of the logon user
2. Tables can be customized - for example, which columns to display,
editable, sortable, etc.
So in an OO application, where should I keep these customization
information? What design pattern / set of patterns do you recommend?
My initial thought was to create a factory that created a different manager
based on role
i.e
main.cfm:
productManager = createobject('component',
'productFactory').init(session.user.role);
productFactory.cfc:
function init (role) {
var productManager = createobject('component',
'productManager'&role).init();
return productManager;
}
With this approach, I will need a seperate productManager for every role.
And every productManager would define only the properties and methods
available to that role. So it would work ... but then I would need a CFC
for every object-role combination. It strikes me that there must be a
better way? How have otheres implemented role-based permissions in there OO
apps?
Any help is much appreciated!
Ed.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

