7 Replies Latest reply on Oct 12, 2009 8:37 AM by amritap

    Role based landing page/portal for user

      Hi,

      I face this requirement number of times whever I suggest people to use JBoss portal.

      Currently JBoss portal allows all users to land up in only default portal (and default page of the default portal). Where as what many a times a project need is based on user role
      a) user should be landing on to different portals or
      b) user should be landing on to different pages in the default portal

      I checked out the possible solution and found that it is very easy to implement this requirement by small customizing DefaultPortalObjectCommand (with the help of Identity Service module).

      Just wondering why this cannot be part of the core feature of the product so that user can specify through -object.xml for a a given user role what should be the target portal ot target page in the default portal.

      Any takers ? I'm pretty sure this would be a very powerful feature of the product when compared with other portal products. today Jboss Portal misses this.

      Regards,
      Sourav

        • 1. Re: Role based landing page/portal for user

          We also required this feature in our project and we implemented it by making some changes in CustomizationManagerService.

          I want to vote in favour of this feature.

          • 2. Re: Role based landing page/portal for user

            Hi vivek_saini07,

            Can you give some details on how this is done? We do have such a requirement and are wondering on how to accomplish.

            Thanks

            "vivek_saini07" wrote:
            We also required this feature in our project and we implemented it by making some changes in CustomizationManagerService.

            I want to vote in favour of this feature.


            • 3. Re: Role based landing page/portal for user

              Well... 4 months old thread!! what made u posting here after so long time??

              Had you asked me it four months back, I would have told u this in more detail as I had lots of time (and energy) at that time.

              In short, we did it by modifying customizationManagerService. There are number of threads in this forum explaining how to do this.

              In that class somewhere it is written that a portal named "Template" would always be copied to dashboard of logged in user.

              U can change that piece, some conditional tweak........... on certain condition copy this portal ....otherwise copy some other portal.

              We maintained a table in DB that had mapping between users and their portal.

              And after doing all this, there is a property in property file of "conf" folder (this is documented in reference guide) by setting that property user will always land to his dashboard after log-in instead of (public)portal.

              Hope this would help.

              • 4. Re: Role based landing page/portal for user

                Hi All,

                I need to implement similar feature ( changing the landing page based in User profile info)..

                Could some one pls post more details on how you are able to customize the portal code..

                I couldn't find the Class "DefaultPortalObjectCommand" in the portal source..

                I did find the class CustomizationManagerService and it is true that one need to override is getDashboard() to display a custom Landing Page!!

                Thanks
                Mars

                • 5. Re: Role based landing page/portal for user

                  Hi vivek_saini07,

                  I wish I had known this issue 4 months ago to ask for help :-) We are new to portal and are working our way thru.

                  We are on to building a large CRM based application using JBoss Portal and came across this issue only few days ago.

                  Thanks a lot for the lead. I think these details are valuable and we will see if we can make the necessary changes and make it to work.

                  Thanks again.

                  "vivek_saini07" wrote:
                  Well... 4 months old thread!! what made u posting here after so long time??

                  Had you asked me it four months back, I would have told u this in more detail as I had lots of time (and energy) at that time.

                  In short, we did it by modifying customizationManagerService. There are number of threads in this forum explaining how to do this.

                  In that class somewhere it is written that a portal named "Template" would always be copied to dashboard of logged in user.

                  U can change that piece, some conditional tweak........... on certain condition copy this portal ....otherwise copy some other portal.

                  We maintained a table in DB that had mapping between users and their portal.

                  And after doing all this, there is a property in property file of "conf" folder (this is documented in reference guide) by setting that property user will always land to his dashboard after log-in instead of (public)portal.

                  Hope this would help.


                  • 6. Re: Role based landing page/portal for user
                    • 7. Re: Role based landing page/portal for user
                      amritap

                      We have trying for the role based landing page in our project we implemented in by

                      extending DefaultPortalCommandFactory class.When we make above changes we land

                      successfully on the desired page but the default functionalities of the portal

                      server doesn't work.If we override the doMapping method of

                      DefaultPortalCommandFactory Class it throws Null Pointer Exception.:(

                      We are using jboss-portal-2.7.2 version

                      Any help would be appreciated.

                      Thanks in Advance
                      Amrita