webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Left Nav Panel Question

  • 1.  Left Nav Panel Question

    Posted Thu July 28, 2011 10:32 PM

    Hello Guys:

    I’ve users which access to portal from the standard login portlet and other users access using a custom login portlet.

    Using the custom login portlet, users have a custom shell and a custom skin and they don’t have to see some options of the left navigation panel.

    I need to know if it’s possible to restrict the options on some way, since the users may share some roles and they have (or don’t have) to see the options depending on which portlet they used for log into the portal.

    Best regards.


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 2.  RE: Left Nav Panel Question

    Posted Fri July 29, 2011 07:36 PM

    Is there any group or role that differentiates these users? I realize there might be some groups or roles that they have in common, but as long as there is one unique group or role, then it should be a simple matter of permissions.

    If not, then you’ll have to use a more dynamic role (such as a Rule Based Role) to differentiate between which login portlets were used.

    Regards,
    –mark


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 3.  RE: Left Nav Panel Question

    Posted Fri July 29, 2011 08:14 PM

    There is not a group or role that differentiates these users, and they may share some groups or roles, so, I’ve to restrict options for those who are using my custom login portlet.

    Please, explain me more about using a rule based role.

    thanks.

    Regards.


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 4.  RE: Left Nav Panel Question

    Posted Fri July 29, 2011 08:52 PM

    I made the following test:

    I’ve created two roles, for rol 1 give me access to “My Inbox” and for rol 2 I’ve denied access to “My Inbox”. The Inbox option was shown anyway.

    Regards.


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 5.  RE: Left Nav Panel Question

    Posted Fri July 29, 2011 09:18 PM

    Forget my last post.

    I’ve permissions to my own user which overrides other permissions.

    I’ve test with two roles, one of them allow access to “My Inbox” and the other denies access and works fine (Inbox is not shown).

    But, I think a rule based role is not the solution, since I need the user lost the rol that denies access when enter normally from standard login page.

    Regards.


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 6.  RE: Left Nav Panel Question

    Posted Fri July 29, 2011 09:29 PM

    I’m not sure. Roles are re-evaluated at every single login. So if the rule fires for user A for the first login, then user A logs in later through a different portlet, that user won’t have to have the same role.

    Regards,
    –mark


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 7.  RE: Left Nav Panel Question

    Posted Fri July 29, 2011 09:43 PM

    Ok, please help me to configure the rule based rol to assign when the user login using a my custom login portlet.

    Thanks.


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine


  • 8.  RE: Left Nav Panel Question

    Posted Mon August 01, 2011 07:42 PM

    The Rule-Based Role Provider isn’t sophisticated enough this task.

    How about this solution?

    • Create a login event listener
    • If the user logged in from the special login page set an attribute/value on that user, if not set a different attribute/value. (eg: specialLogin=true or specialLogin=false). You can use the IDirectorySession apis for this
    • Create a shell rule that is based on the value of this attribute

    Hope this helps.
    –mark


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine


  • 9.  RE: Left Nav Panel Question

    Posted Mon August 01, 2011 09:18 PM

    Thx Mark.

    I’ve a Custom Inbox. If the user enter using the Custom Login portlet he should be able to see the Custom Inbox link in the left navigation panel and not to see the standard inbox link. In the other way, if he use the standard login page should see the standard inbox link and not the other.
    I failed to understad how these steps will help to segregate these permissions.

    I’ve created a rule base role for my user. The role allow access to my custom inbox and denies to the standard inbox (Left Navigation Panel). However, once I logged in, the rol is assigned to my user, and the permissions persist whatever portlet I use to log into the system. Even if I had two roles with different permissions, the permissions are assigned with priority.

    Sorry but I don’t understand yet how to solve this problem.

    Thanks in advance.

    Regards.


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 10.  RE: Left Nav Panel Question

    Posted Mon August 01, 2011 09:26 PM

    Is it possible to use something other than permissions to display the link? For instance, can you use a portlet to display the link? Of course it depends on what navigation scheme you are using, but if you have control over painting the link than you can base your decision of which link to paint based upon user attributes.


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 11.  RE: Left Nav Panel Question

    Posted Mon August 01, 2011 10:48 PM

    But the visibility of the menu options in the left navigation panel are managed in mws under “Permissions Management” and this permissions are assigned to roles, users or groups… aren’t?

    How can I make it to work with user attributes?

    Also, the options have a property named “Is Task Folder”, leaving blank this property may hide the option. Can I change this property in execution time to hide an option?.

    Regards.


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 12.  RE: Left Nav Panel Question

    Posted Mon August 01, 2011 11:00 PM

    Since you are using the OOB left hand nav and there are no differentiating roles, i don’t think there is a good option for you.

    Sorry,
    –mark


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine