How to encapsulate functionality for role in module and make this module like home page for authentificated user with this role

Topics: Customizing Orchard, General, Writing modules, Русский (Russian)
Aug 25, 2013 at 5:55 PM
Edited Aug 25, 2013 at 5:57 PM
I'm developing webapplication based on the Orchard. There are a few different roles on the site and each has some special part of functionality which I would like to encapsulate into separated orchard modules. These modules will be like "dashboard" or "private" part for each role.
So, my question is how to configure required Orchard behaviour like this:
User1 has role1 and after authentication should be redirected to module1
User2 has role2 and after authentication should be redirected to module2.
And of course there is public space of site available for anonymous users.

Thanks in advance.