Design question for a Plugin Framework
-
Had this question in the wrong forum. I'm at a breakpoint with my architecture and could use some guidance in finishing up my vision. I will give a rundown of the current architecture so far: This is a plug-in architecture, that automates the loading and un loading of plug-ins for the users and developers. By using a defined interface and custom attributes my architecture will auto load plug-ins without the use of ini files or configuration files. The current issue I have is security and applying security filters to screens as they display. What basically will happen is an admin will setup security and access points for roles. Roles are then assigned to a user. What I need is to be able to disable, hide, unhide or re-enable elements on the form at the time the page is loaded based on that users security role. This is simple if I have every developer call a set of security procedures, but what I want is the framework to automatically do this for the developer. The one idea so far is the use of “Application Event Handler” which is looking for a certain windows message to be sent. I was wondering if anyone else had any other ideas that might be worth looking into. ( IE: any patterns or such) Thanks for the Help. Sal
-
Had this question in the wrong forum. I'm at a breakpoint with my architecture and could use some guidance in finishing up my vision. I will give a rundown of the current architecture so far: This is a plug-in architecture, that automates the loading and un loading of plug-ins for the users and developers. By using a defined interface and custom attributes my architecture will auto load plug-ins without the use of ini files or configuration files. The current issue I have is security and applying security filters to screens as they display. What basically will happen is an admin will setup security and access points for roles. Roles are then assigned to a user. What I need is to be able to disable, hide, unhide or re-enable elements on the form at the time the page is loaded based on that users security role. This is simple if I have every developer call a set of security procedures, but what I want is the framework to automatically do this for the developer. The one idea so far is the use of “Application Event Handler” which is looking for a certain windows message to be sent. I was wondering if anyone else had any other ideas that might be worth looking into. ( IE: any patterns or such) Thanks for the Help. Sal
-
ssack wrote:
IE: any patterns or such
Have you had a look at the Portland Pattern Repository?