on 05-05-2009 6:25 AM
Hello All,
Am building a user-role extract tool.
Have extracted all users and their assigned role except - I need to extract a parameter of portal roles. The parameter is called ID (example: pcd:portal_content/ESS/ESSRole)
Could you please guide me how should I extract details from this parameter.
Awaiting Reply.
Thanks,
Ritu
Hi Ritu,
You can get the Role ID using the following code:
IRole irole=UMFactory.getRoleFactory().getRoleByUniqueName("<role name>");
String uniqueid=irole.getUniqueID();
If you have any more question please feel free to revert back.
Regards,
Seema Rane.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
resolved on my own.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I assume you're looping through the users and finding their roles? What is the form of the role name? You may need to find the role in the RoleFactory and then return its pcd name. I can't remember if it's the unique ID, the UID or the unique name! There are too many which I can never remember, so I just try them all...
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.