com.sapportals.wcm.rfadapter

Class Result

java.lang.Object
  extended bycom.sapportals.wcm.rfadapter.Result

public class Result
extends Object

encapsulates all information available when the system tried tocreate an IResource object. The message-attribut is either defined by the class calling the framework or can also contain the message of the WcmException thrown by the framework.


Constructor Summary
Result(Status status, String message, WcmException e, IResource res)
           
Result(Status status, String message, WcmException e, IResource res, AdapterCode ac)
           
 
Method Summary
 AdapterCode code()
           
 WcmException exception()
           
 String message()
           
 IResource resource()
           
 Status status()
           
 String toString()
          returns a concatination of all attribute values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Result

public Result(Status status,
              String message,
              WcmException e,
              IResource res)
Parameters:
status - stating if the creation worked without problems, minor problems or not at all. Must not be null
message - this message is used to inform the user about the result of the operation. It must be translated and must not be null
e - the exception that might be thrown by the framework when trying to create an IResource. If everything went ok, this parameter should be set to null
res - the new object created, if everything worked ok. Might be null

Result

public Result(Status status,
              String message,
              WcmException e,
              IResource res,
              AdapterCode ac)
Parameters:
status - stating if the creation worked without problems, minor problems or not at all. Must not be null
message - this message is used to inform the user about the result of the operation. It must be translated and must not be null
e - the exception that might be thrown by the framework when trying to create an IResource. If everything went ok, this parameter should be set to null
res - the new object created, if everything worked ok. Might be null
Method Detail

status

public final Status status()
Returns:
the status attribute of the class, must not be null

message

public final String message()
Returns:
the message attribute of the class, must not be null. The message should be translated. Note that it is not this class' responsibility to translate this message - the message should already be translated by the class that constructed this instance.

exception

public final WcmException exception()
Returns:
the exception attribute of this class. Might be null

resource

public final IResource resource()
Returns:
the resource attribute of this class. Might be null;

toString

public String toString()
returns a concatination of all attribute values.


code

public AdapterCode code()
Returns:
the technical code of the message of this result. If no code has been provided by the instantiating class, this class will set this code to AdapterCode.UNSPECIFIED. This method will never return null


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.