on 02-27-2007 12:49 PM
Hi All,
I developed one WD application which browses all the Roles in EP. I am using the code given by Prakash Singh in his weblog on Browsing through Roles,Worksets,Pages and Iviews. In his weblog /people/prakash.singh4/blog/2005/07/28/browse-roles-folders-pages-iviews-assigned-to-a-user-ep6-sp9-and-higher he was not mentioned how to get the Role Title, but he had given the code to get description and Display name of a Role using role.getDescription()and role.getDisplayName().
Is there any method to get the Title of a Role in the EP.? If yes, Could you please respond to this thread.
Thank you in advance,
Sandeep Kumar B
What do u mean by 'Title of a Role'?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Denish,
"Title of Role" is name of a role displayed in the browser.
I am using the following code to get the name of a role
try{
IPcdContext targetObject = (IPcdContext)initialContext.lookup(browsing_root);
Object object = (Object)targetObject.getAttributes("").get("com.sap.portal.pcm.Title");
if(object instanceof IPcdAttribute){
IPcdAttribute att = (IPcdAttribute)object;
objtitle = att.get().toString();
}
} catch (NamingException e) {
msgMgr.reportSuccess(e.toString());
e.printStackTrace();
}
It is throwing ClassCastException at the first line.
How can I get over this classcastexception.
Thank you,
Sandeep Kumar b
Hi Sandeep,
Can you please mention what database you are using to get the roles?
regards
Anil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.