com.sap.portal.pcm.layout

Interface ILayouts

All Superinterfaces:
IObjectsManager

public interface ILayouts
extends IObjectsManager

The interface for the layout object management service that provides helper methods for working with layouts. All its methods are inherited from IObjectsManager.
The main task of an ILayouts object is to create a descriptor for creating a layout object, as shown in the following example:

   import com.sap.portal.pcm.CreateMethod;
   import com.sapportals.portal.prt.jndisupport.InitialContext;
   import com.sapportals.portal.pcd.gl.IPcdContext;
   import javax.naming.Context;
   
ILayouts lSrv = (ILayouts)PortalRuntime.getRuntimeResources().getService(ILayouts.KEY); String targetUrl = "pcd:portal_content/myFolder/myIView"; try {    INewObjectDescriptor iDesc = (INewObjectDescriptor)iSrv.instantiateDescriptor(createMethod, targetUrl, user); } catch (OperationFailedException e) {     // ... } catch (ObjectNotFoundException e) {     // ... } Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sapportals.portal.pcd.gl.PcdInitialContextFactory"); env.put(Context.SECURITY_PRINCIPAL, user); try {    InitialContext iCtx = new com.sapportals.portal.prt.jndisupport.InitialContext(env);    Context ctx = (Context)iCtx.lookup(folderName); //the PCD name of the folder    ctx.bind("myNewLayout", lDesc); } catch (NamingException e) {     // ... }

The target ID is the JNDI name of a template for the object. The target can be:
When the target ID is a PCD object, the create method can be either NEW or DELTA_LINK. When the target ID is not a PCD object, the create method must be NEW.
When creating an object on a PCD template object, the object can be created as either NEW or a DELTA_LINK. For other object types, only the NEW CreateMethod is available. On startup, ILayouts creates the default layout object if it does not exist. The default layout is provided as an implementation of IAttributeSet. pcd:portal_content/com.sap.pct/default_objects/com.sap.portal.default_layout

See Also:
ILayout, IObjectsManager, CreateMethod, IiViews, IPages

Field Summary
static String KEY
           
static String OCLASS_LAYOUT
           
 
Method Summary
 
Methods inherited from interface com.sap.portal.pcm.IObjectsManager
getDefaultAttributes, instantiateDescriptor, instantiateDescriptor, instantiateDescriptor
 

Field Detail

KEY

static final String KEY
See Also:
Constant Field Values

OCLASS_LAYOUT

static final String OCLASS_LAYOUT
See Also:
Constant Field Values
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-RUNTIME [sap.com] tc/ep/semantics/api api EP-PIN
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2015 SAP AG Complete Copyright Notice