Skip to Content
author's profile photo Former Member
Former Member

content permissions

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2005 at 11:24 AM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.