on 11-24-2009 5:17 AM
Hi,
I am using KM api to create a resource of type external link in Portal KM folder.
This is part of code I am using to get ResourceContext and Collection
IResourceFactory resourceFactory = com.sapportals.wcm.repository.ResourceFactory.getInstance();
IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
com.sap.security.api.IUser sapIUser = wdClientUser.getSAPUser();
com.sapportals.portal.security.usermanagement.IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapIUser);
IResourceContext resourceContext = new ResourceContext(ep5User);
collection = (ICollection)resourceFactory.getResource(pathRID, resourceContext);
Here, its showing this com.sapportals.portal.security.usermanagement.IUser as deprecated.
Can anybody tell me alternate way to get this?
Thanks and regards,
Amey Mogare
There's nothing we can do here. IUser deprecated warning still remains!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amey,
You can user com.sap.security.api.IUser API.
Regards,
Deepti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deepti,
Yes, I tried using that.. But when I get IUser from com.sap.security.api.IUser API, it doesn't match with the new ResourceContext(IUser) constructor.
//at this line -->
//Compilation error
IResourceContext resourceContext = new ResourceContext(ep5User);
Thanks and regards,
Amey Mogare
User | Count |
---|---|
95 | |
11 | |
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.