on 03-02-2006 4:11 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.