cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch portal content for an user

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

former_member182372
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi maksim,

I have already gone through that page

In that weblog he is using dynpage for portal app.

with package

com.sapportals.portal.pcd.gl

IPortalComponentResponse response

IPortalComponentRequest request

Cause Dynpage is using Servlet.

But i am using Webdynpro app

I do't know which jar file he is using.

I download prtapi.jar downloaded from pdk 6.0 Sp2

so can u help me that from where i download that jar

which used by prakash singh,and how can i fetch

Portal Content(Iview,Page,Workset,Folder) Except Role and group.

Regds,

Sanjay

Former Member
0 Kudos

Hi Sanjay,

You can get all the JAR files required for this purpose from the J2EE Engine installation folders.

I believe the JAR file you are trying to fetch, called UME APIs and Security APIs.

Hope this helps,

Regards,

Mausam

Former Member
0 Kudos

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

Former Member
0 Kudos

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