on 06-29-2009 6:06 AM
Hi,
Please let me know how to access portal roles in webdynpro for java.
Rgds,
Patana
Check these wiki pages for more:
https://wiki.sdn.sap.com/wiki/display/WDJava/DynamicRoleAssignmentinportalusingwebdynpro+application
https://wiki.sdn.sap.com/wiki/display/HOME/Toretreiveuser%27sdatafromUMElikeGroups%2CRoles.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Please use this API to access the portal roles:
IRoleFactory fact=UMFactory.getRoleFactory();
Also see this code to get more information of role using code:
IRoleFactory rolef=UMFactory.getRoleFactory();
IRoleSearchFilter searchfilterrole= rolef.getRoleSearchFilter();
ISearchResult searchResult = rolef.searchRoles(searchfilterrole);
while(searchResult.hasNext())
{
String unq=(String) searchResult.next();
IRole role1=rolef.getRole(unq);
String roleName = role1.getDisplayName();
String roleID = role1.getUniqueID();
// Once you get the informationof role you can use it in your application as per your requirement.
}
Also please note that:
You should add "com.sap.security.api.jar" to your project`s java build path for getting the Portal Security API's.
I hope this solves the problem. Please revert back incase you need any further informationon this.
Thanks and Regards,
Pravesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.