com.sap.portal.pcm.iview
Interface IiViews
- public interface IiViews
The iView object management service. Provides IObjectsManager functionality:
Default object management
On startup, creates the default iView object if it does not exist ('pcd:portal_content/com.sap.pct/default_objects/com.sap.portal.default_iView').
Provides the default iView as IAttributeSet implementation.
New object creation
Provides a descriptor.
IiViews iSrv = (IiViews)PortalRuntime.getRuntimeResources().getService(IiViews.KEY);
String targetId = null;
try
{
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);
ctx.bind(newName, iDesc);
}
catch (NamingException e)
{
// ...
}
Parameters:
TargetId :
The target id is the JNDI name of a template that the object will be based upon. The target can be:
- PCD url (i.e. 'pcd:/portal_content/Test/testiView01' or portal_content/Test/testiView01')
- Application component (i.e. 'ApplicationName.ComponentName' or 'par:/applications/ApplicationName/components/ComponentName')
- External url (i.e. 'otherPrefix:/Test/TestObj01')
CreateMethod :
When creating an object upon a PCD-template-object, the object can be created as either NEW or DELTA_LINK.
For other type objects, the CreateMethod can be NEW only.
Throws:
ObjectNotFoundException :
When trying to create a new object based on a unexists PCD object.
OperationFailedException :
When trying to create delta-link over a non-PCD url.
- See Also:
IiView,
IObjectsManager,
CreateMethod,
IPages,
ILayouts
KEY
public static final String KEY
- See Also:
- Constant Field Values
Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.