Hello
I would like to set permission of any pcd object
by the special iView.
Can anybody tell me which shared libraries or which .jar, class or package could be useful for this.
I didn't find any notes about this, and i need it as support for delegated user admin. I want to use this tool just instead of handle work.
Hi,
you're probably talking about the pcd gl service and the pcd api. Check javadocs at https://media.sdn.sap.com/javadocs/NW04/SP9/pcd/com/sapportals/portal/pcd/gl/IPcdContext.html#PCD_INITIAL_CONTEXT_FACTORY
and this code snippet -
Properties env = new Properties();
env.put(Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
IUserContext user = request.getUser();
env.put(IPcdContext.SECURITY_PRINCIPAL, user);
env.put(IPcdContext.PCD_PERSONALIZATION_PRINCIPAL, user);
env.put(com.sap.portal.directory.Constants.REQUESTED_ASPECT, com.sap.portal.pcm.admin.PcmConstants.ASPECT_SEMANTICS);
Context ctxt = new com.sapportals.portal.prt.jndisupport.InitialContext(env);
and you have at least the root of a jndi tree that allows you to browse/lookup to the proper object(s). How to attach acl entries then I'm not sure about for now.
Regards,
Armin
Add a comment