Skip to Content
avatar image
Former Member

How to fetch portal content for an user

Hi all,

I want to fetch all the assigned portal content(like iview,page,workset) for a particular user.

I tried it by package,

com.sapportals.portal.prt.component.*

using IPortalComponentContext but I could't get success.

Can anybody help me.

Regds

Sanjay

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Mar 02, 2006 at 08:26 AM

    hi,

    You can use

    IUserFactory userFactory= UMFactory.getUserFactory();

    IUser User = userFactory.getUser(request.getUser().getUniqueID());

    String[] s=((IRoleFactory) UMFactory.getRoleFactory()).getRolesOfUser(User.getUniqueID(),true);

    This string array returns list of roles assigned to the user.

    With this you can get details regarding the workset contained within the role.

    Regards,

    Ganesh N

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 02, 2006 at 09:10 AM

    Hi Sanjay,

    This would definetely help you /people/prakash.singh4/blog/2005/07/28/browse-roles-folders-pages-iviews-assigned-to-a-user-ep6-sp9-and-higher

    Best regards, Maksim Rashchynski.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Mausam,

      UME APIs and Security APIs are alredy available

      with eclipse plugins.

      I am serching for an api by which assigned

      Iview,Page,WorkSet,Folder Can be retrieved.

      Weblog Submitted

      /people/prakash.singh4/blog/2005/07/28/browse-roles-folders-pages-iviews-assigned-to-a-user-ep6-sp9-and-higher

      is using

      import com.sapportals.portal.pcd.gl.IPcdAttribute;

      import com.sapportals.portal.pcd.gl.IPcdContext;

      These APIs I can 't find in

      C:\usr\sap\[sid]\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps

      can any body suggest me is any other API is available,

      and how can i use that API.

      Any immidiate response is highly solicited.

      Regds,

      Sanjay Chatterjee

  • avatar image
    Former Member
    Mar 21, 2007 at 08:19 PM

    I used the code above to get the users role into an array. How do I then query within that array, such as:

    If users role is Role A, then set hasRoleA=True.

    If users role is Role B, then set hasRoleB=True.

    Add comment
    10|10000 characters needed characters exceeded