Skip to Content
0
Former Member
Oct 11, 2005 at 01:26 AM

**Urgent** Reading PCD objects

33 Views

How do I find the JAR file which contains these 2 classes? I spend hours using jarfinder trying different search terms.

com.sap.portal.pcm.admin.PcmConstants;

com.sap.portal.directory.Constants;

What's the name of the jar? Is it in Netweaver studio plugin directory or on portal server.

I need it for following code to lookup System properties:

-


Hashtable env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY,

IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);

env.put(Context.SECURITY_PRINCIPAL, request.getUser());

env.put(Constants.REQUESTED_ASPECT,

PcmConstants.ASPECT_SEMANTICS);

InitialContext iCtx = null;

try

{

String systemID = "pcd:portal_content/myFolder/mySystem";

iCtx = new InitialContext(env);

ISystem result =(ISystem)iCtx.lookup(systemID);

}

catch(Exception e)

{

}

-