Start up sequence of modules

Topics: CAB & Smart Client Software Factory
Dec 23, 2006 at 9:25 AM
originally posted by: wanderer1

Since all the modules are loaded when the shell is being created. How do I force a specific module to the starting module. For example I want to make the login module the start up module that runs first and then depending on the roles assigned to the user, it loads other modules.
After the user has signed in all the other modules can be activated and they will place their menus in the main workspace and then each module will determine which of its menu items to show/hide depending on the roles from a service.

Any help will be appreciated.

Dec 29, 2006 at 10:02 AM
originally posted by: MarcoPaul

Well, you should override the default AuthenticationService to perform your applications specific authentication mechanism and then you can add the users roles to the threads current principal. In your module config file, you can declaratively specify which modules get loaded per role.