1 Reply Latest reply on Oct 19, 2010 8:58 AM by steux jean-sebastien

    Role and portal page Association in JBOSS Portal ?

    Anith Subha Newbie

      Hi All,


      Please let me know table info on portal page and Role association ?


      In Jboss portal server, we have option to set user privilege based on Role across pages using the security Menu,

      can you please share the info of table schema where the association details get stored and also please share the Jboss service (API) info to perform the same ?


      Looking for your help.




        • 1. Re: Role and portal page Association in JBOSS Portal ?
          steux jean-sebastien Newbie



          There is not a specific API. So we had to use the internal API of JBoss Portal to do so.


          Here is an extract






                  // Get the page

                   PortalObject page = getControllerContext().getController().getPortalObjectContainer().getObject(poid);



                  // Get the DomainConfigurator

                    DomainConfigurator dc = getControllerContext().getController().getPortalObjectContainer()



                  // Construct the permission

                  Set<RoleSecurityBinding> newConstraints = new HashSet<RoleSecurityBinding>();

                  Set<String> secureAction = new HashSet<String>();


                  newConstraints.add(new RoleSecurityBinding(secureAction, "myRole"));



                  // Set the permission

                  dc.setSecurityBindings(page.getId().toString(PortalObjectPath.CANONICAL_FORMAT), newConstraints);