Skip to Content
author's profile photo Former Member
Former Member

Roles concept in EP6?

Hi,

We want to build a portal app. We have two groups, lets say group A and B. All the navigation should be excactly the same. (ex.: MyPages -> Private -> Private Freemailer)

But a person from group A should see freemail.com and a person from group B should see gmx.com. (Without a 'Personalize..')

Do I have to build two roles (with all the worksets, pages) just because the URL iViews point at different locations? Or is it possible to use some 'magic' role assignment. I've read the 'Role Concept in SAP EP5/6' but didn't find anything which helped me out.

Regards

Ralph

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 15, 2004 at 11:09 AM

    The way to accomplish this without development is to create two roles that are comprised of worksets. The worksets should contain the common content that can be used across both roles. You then incorporate these worksets into the roles - and modify one of the roles to override the properties that need to be different.

    If you want to maintain only one role, then you have to write a component that can dynamically determine what configuration property (i.e. URL) needs to be used based on some information from the user context (such as membership in a group). You can use the UME API to do this with the method IUser.isMemberOfGroup(). You have to determine the Unique ID of the group and pass it in as a parameter like this:

    String url = "http://www.site1.com";

    IUser user = request.getUser();

    IGroup grp = UMFactory.getGroupFactory().getGroupByUniqueName("Group2");

    if (user.isMemberOfGroup(grp.getUniqueID(),true) {

    url = "http://www.site2.com";

    }

    Add comment
    10|10000 characters needed characters exceeded