Hi all,
I have developed Session EJB for publishing documents on SAP EP. I want to use this EJB through remote interface of bean.
In method of EJB i'm using this code:
// getting UME user object
com.sap.security.api.IUser user =
UMFactory.getUserFactory().getUserByLogonID( properties.getProperty("userID") );
This works and I get IUser object. But when I want to obtain Portal user object through this code:
IUserManagementService userMgService = ( IUserManagementService ) PortalRuntime.getRuntimeResources().getService(IUserManagementService.KEY); com.sapportals.portal.security.usermanagement.IUser portalUser = userMgService.getDefaultFactory().getEP5User( user );
or:
com.sapportals.portal.security.usermanagement.IUser portalUser = WPUMFactory.getUserFactory().getUser( user );
object portalUser is always null.
When I use this code from Web Dynpro application (with sharing portal references), everything works fine.
I'm quite new in using SAP EP functionality. Am I doing something wrong (something with security, etc...) in that example?
Thanks for any answer.
Best Regards,
Juraj Sedik