public class Result extends Object
IResource
object or additional data for it. The
message-attribut is either defined by the class creating the instance or can
also contain the message of the WcmException
thrown by the
framework.
Copyright 2004 SAP AG
Constructor and Description |
---|
Result(Status status,
String message,
WcmException e,
IResource res) |
Result(Status status,
String message,
WcmException e,
IResource res,
AdapterCode ac) |
Result(Status status,
WcmException e,
IResource res,
AdapterCode code)
convinience constructor if no message is added but only the localized
message of the exception should be used.
|
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 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
public 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 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
ac
- acpublic Result(Status status, WcmException e, IResource res, AdapterCode code)
status
- Statuse
- WcmExceptionres
- IResourcecode
- AdapterCodepublic final Status status()
null
public 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()
null
public 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 2018 SAP AG Complete Copyright Notice