com.sap.netweaver.coll.shared.api.extension

Interface IExtension

All Superinterfaces:
IDisplayable

public interface IExtension
extends IDisplayable

Interface describing an extension. Customers develop extensions to add functionality to an application that processes extension points. An extension provider provides the extension with input parameter values and an output parameter mapping and exposes it to an extension processor. The processor collects and processes the extension when the extension point is reached.


Method Summary
 void commit(IExtensionPoint extension, IExtensionContext context)
          Method called by the extension processor when no error occured and all changings are finalized.
 IExtensionPoint[] getExtensionPoints()
          List the extension points the extension wants to handle.
 IParameterInfo[] getInputParameterInfos(IExtensionPoint point)
          List infos for all input parameters the extension needs to process an extension point.
 IParameterInfo[] getOutputParameterInfos(IExtensionPoint point)
          List infos for all output parameters the extension delivers after processing an extension point.
 IExtensionResult process(IExtensionPoint extension, IExtensionContext context)
          Method called by the extension processor when an extension point is reached and the extension needs to be processed.
 void rollback(IExtensionPoint extension, IExtensionContext context)
          Method called by the extension processor when an error occured.
 void validate(IExtensionPoint extension, IExtensionContext context)
          Method called by the extension processor to validate that the extension can be processed.
 
Methods inherited from interface com.sap.netweaver.coll.shared.api.extension.IDisplayable
getDescription, getId, getName
 

Method Detail

getExtensionPoints

public IExtensionPoint[] getExtensionPoints()
List the extension points the extension wants to handle.

Returns:
The list of extension points, null if all are handled

getInputParameterInfos

public IParameterInfo[] getInputParameterInfos(IExtensionPoint point)
List infos for all input parameters the extension needs to process an extension point.

Returns:
The list of required parameters

getOutputParameterInfos

public IParameterInfo[] getOutputParameterInfos(IExtensionPoint point)
List infos for all output parameters the extension delivers after processing an extension point.

Returns:
The list of delivered parameters

validate

public void validate(IExtensionPoint extension,
                     IExtensionContext context)
              throws ExtensionException
Method called by the extension processor to validate that the extension can be processed. The extension should check the validity and the consistence of all input parameters in the context. No output is produced. Since input parameter values may be result of other extensions that also produce no ouput at validation, all input parameters must be treated as being optional.

Throws:
ExtensionException

process

public IExtensionResult process(IExtensionPoint extension,
                                IExtensionContext context)
                         throws ExtensionException
Method called by the extension processor when an extension point is reached and the extension needs to be processed. The extension produces the ouput, but in a way that can be rolled back. Temporary backups and helpers can be prepared for a later undo.

Returns:
A context containing the ouput parameters plus a return code
Throws:
ExtensionException

rollback

public void rollback(IExtensionPoint extension,
                     IExtensionContext context)
              throws ExtensionException
Method called by the extension processor when an error occured. The rollback must undo all changings carried out in the process method.

Throws:
ExtensionException

commit

public void commit(IExtensionPoint extension,
                   IExtensionContext context)
            throws ExtensionException
Method called by the extension processor when no error occured and all changings are finalized. The extension should delete backups and helpers for a rollback now.

Throws:
ExtensionException


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.