public class Result extends Object
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 and Description |
|---|
Result(Status status,
String message,
WcmException e,
IResource res) |
Result(Status status,
String message,
WcmException e,
IResource res,
AdapterCode ac) |
| Modifier and Type | Method and Description |
|---|---|
AdapterCode |
code() |
WcmException |
exception() |
String |
message() |
IResource |
resource() |
Status |
status() |
String |
toString()
returns a concatination of all attribute values.
|
public Result(Status status, String message, WcmException e, IResource res)
status - stating if the creation worked without problems, minor problems or not at all.
Must not be nullmessage - this message is used to inform the user about the result of the operation. It
must be translated and must not be nulle - 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 nullres - the new object created, if everything worked ok. Might be nullpublic Result(Status status, String message, WcmException e, IResource res, AdapterCode ac)
status - stating if the creation worked without problems, minor problems or not at all.
Must not be nullmessage - this message is used to inform the user about the result of the operation. It
must be translated and must not be nulle - 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 nullres - the new object created, if everything worked ok. Might be nullac - no descriptionpublic final Status status()
nullpublic final String message()
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.public final WcmException exception()
nullpublic final IResource resource()
public String toString()
public AdapterCode code()
AdapterCode.UNSPECIFIED. This method will never return null| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice