7 Replies Latest reply on Nov 14, 2008 10:23 AM by Peter Johnson

    i want to disable page

    Nagendra Kumar Newbie



      Hi Everybody,

      Can i display page based on Role. Suppose I have three page in portal i.e Page A, Page B, and Page C but I want to display Page A and page C for all user which have role Admin. Is it possible with portal.


      Thanks in advance.

        • 2. Re: i want to disable page
          Nagendra Kumar Newbie

          Thanks peterj

          it working but page tab is not getting disable. I am sending my *-object.xml code. This google page tab is display for all user who dont have admin righ. But open only for admin right. My requirement is that I want display goolge page tab on browser only for those user who have admin right.


          <?xml version="1.0" encoding="UTF-8"?>


          <if-exists>overwrite</if-exists>
          <parent-ref>default</parent-ref>

          <page-name>Google</page-name>

          <window-name>HelloWorldJSPPortletWindow</window-name>
          <instance-ref>HelloWorldJSPPortletInstance</instance-ref>
          center
          1


          theme.renderSetId
          emptyRenderer





          layout.id
          industrial


          <security-constraint>
          <policy-permission>
          <role-name>Admin</role-name>
          <action-name>view</action-name>
          </policy-permission>
          </security-constraint>



          • 3. Re: i want to disable page
            Peter Johnson Master

            Which version of JBoss Portal are you using? My experiences with 2.4.x and 2.6.x are that if the page has restricted access, then the tab shows up only for users who have access rights.

            Also, when posting XML, remember to enclose your XML text in UBBCode "code" tags - you can do this by selecting the XML text and clicking the Code button above the editor window. Also, click the Preview button to ensure that the formatting is correct and the XML text shows up before posting

            • 4. Re: i want to disable page
              Nagendra Kumar Newbie

              Hi Peter,

              i am using jboss-portal-2.6.6.GA .

              Again i am sending portlet-instances.xml and helloworld-object.xml please tell me what is wrong with my code.


              portlet-instances.xml

              <?xml version="1.0" standalone="yes"?>
              <deployments>
               <deployment>
               <instance>
               <instance-id>HelloWorldJSPPortletInstance</instance-id>
               <portlet-ref>HelloWorldJSPPortlet</portlet-ref>
               <security-constraint>
               <policy-permission>
               <action-name>view</action-name>
               <role-name>Admin</role-name>
               </policy-permission>
               </security-constraint>
               </instance>
               </deployment>
              </deployments>



              helloworld-object.xml

              <?xml version="1.0" encoding="UTF-8"?>
              <deployments>
               <deployment>
               <if-exists>overwrite</if-exists>
               <parent-ref>default</parent-ref>
               <page>
               <page-name>Google</page-name>
               <window>
               <window-name>HelloWorldJSPPortletWindow</window-name>
               <instance-ref>HelloWorldJSPPortletInstance</instance-ref>
               <region>center</region>
               <height>1</height>
               <properties>
               <property>
               <name>theme.renderSetId</name>
               <value>emptyRenderer</value>
               </property>
               </properties>
               </window>
               <properties>
               <property>
               <name>layout.id</name>
               <value>industrial</value>
               </property>
               </properties>
               <security-constraint>
               <policy-permission>
               <role-name>Admin</role-name>
               <action-name>view</action-name>
               </policy-permission>
               </security-constraint>
               </page>
               </deployment>
              </deployments>
              
              



              • 5. Re: i want to disable page
                Peter Johnson Master

                Two things to check:

                1: make sure that the portal does not have a recursive access permission set.

                2: Try dropping all the tables from the database, this will eliminate any old configuration settings.

                • 6. Re: i want to disable page
                  Nagendra Kumar Newbie

                  i did 2 suggestion but page tab still displaying. how can i check that portal have recursive access permission or not.


                  "PeterJ" wrote:
                  Two things to check:

                  1: make sure that the portal does not have a recursive access permission set.

                  2: Try dropping all the tables from the database, this will eliminate any old configuration settings.




                  • 7. Re: i want to disable page
                    Peter Johnson Master

                    Use the Admin portal to look at the security settings. The docs should tell you how.