WebSphere Portal Server - Visibility Rule for pages in WPS 6.0

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > June 2007 > Visibility Rule for pages in WPS 6.0





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Visibility Rule for pages in WPS 6.0
Harisankar Gopalan

2007-05-16, 1:18 am

Hi,
In WPS 6.0, I am wondering after creating/setting rule to a page and after that the page not all appearing to any user/any group.

I have created a page (Page1) and create a rule that 'to show page to users.groups value 'ABC'(ABC is group name). When user 'X' belongs to ABC groups,login to portal the Page (Page1) is not displaying . The page(Page1) not at all displaying to any user .


I have even provide access permisiion tp pages and portlets for that particular group (ABC), but didn't favour to me.

I hope its working if we set visibilty rule user.uid value "user1".

Anyone help me to fix this. Thanks in Advance.

2007-05-24, 1:21 pm

> Hi,
> In WPS 6.0, I am wondering after creating/setting
> g rule to a page and after that the page not all
> appearing to any user/any group.
>
> I have created a page (Page1) and create a rule that
> 'to show page to users.groups value 'ABC'(ABC is
> group name). When user 'X' belongs to ABC
> groups,login to portal the Page (Page1) is not
> displaying . The page(Page1) not at all displaying to
> any user .
>
> I have even provide access permisiion tp pages and
> portlets for that particular group (ABC), but didn't
> favour to me.
>
> I hope its working if we set visibilty rule user.uid
> value "user1".
>
> Anyone help me to fix this. Thanks in Advance.


My understanding is that visibility rules only work with user attributes and not with groups. since it never finds the user with the abc attribute it remains invisible to all.
dsunny

2007-06-04, 1:20 am

I'm not sure its a good solution.. Using themes and skins you can implement how to show/hide portal pages/portlets in websphere portal.
topnav.jspf or sidenav.jspf generates the href's to all the portal pages.
Using puma services you can get the user and the group associated.

<portal-fmt:title/> is the one which shows the page name on the browser.

Use the websphere portal tag called captureContent located in engine.tld, such that you can know the portal page title in the jsp code., and based upon the requirement you can show/hide the page .

<w:captureContent contextKey="pageTitle">
<portal-fmt:title/>
</w:captureContent>

String pageTitle =(String)pageContext.getAttribute("pageTitle");
pageTitle=pageTitle.trim(); // gives you the name of the page.

You can use the same capturecontent logic in your skin(Control.jsp) to show/hide a portlet provided portlet title is the key for you display logic.

<portal-logic:if nodeInSelectionPath="yes">
<% boolean isNodeSelected = wpsSelectionModel.isNodeSelected(wpsNavNode);

if (pumauser's group is 'xyzgroup' show pageTitle='xyzpage')
if (pumauser's group is 'abcgroup' show pageTitle='abcpage')

%>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com