Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

KM API : com.sapportals.portal.security.usermanagement.IUser is deprecated

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

Not what you were looking for? View more on this topic or Ask a question