|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.core.WorkflowResultCode
public class WorkflowResultCode
This class implements the workflow result code. The workflow result code contains an LDAP result code along with an LDAP error message.
Constructor Summary | |
---|---|
WorkflowResultCode()
Creates a new instance of a workflow result. |
|
WorkflowResultCode(ResultCode resultCode,
MessageBuilder errorMessage)
Creates a new instance of a workflow result code and initializes it with a result code and an error message. |
Method Summary | |
---|---|
boolean |
elaborateGlobalResultCode(ResultCode newResultCode,
MessageBuilder newErrorMessage)
Elaborates a global result code. |
MessageBuilder |
errorMessage()
Returns the global error message. |
ResultCode |
resultCode()
Returns the global result code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkflowResultCode()
public WorkflowResultCode(ResultCode resultCode, MessageBuilder errorMessage)
resultCode
- the initial value for the result codeerrorMessage
- the initial value for the error messageMethod Detail |
---|
public boolean elaborateGlobalResultCode(ResultCode newResultCode, MessageBuilder newErrorMessage)
-----------+------------+------------+------------------------------- new | current | resulting | resultCode | resultCode | resultCode | action -----------+------------+------------+------------------------------- SUCCESS NO_SUCH_OBJ SUCCESS - REFERRAL SUCCESS send reference entry to client other [unchanged] - --------------------------------------------------------------------- NO_SUCH_OBJ SUCCESS [unchanged] - REFERRAL [unchanged] - other [unchanged] - --------------------------------------------------------------------- REFERRAL SUCCESS [unchanged] send reference entry to client REFERRAL SUCCESS send reference entry to client NO_SUCH_OBJ REFERRAL - other [unchanged] send reference entry to client --------------------------------------------------------------------- others SUCCESS other - REFERRAL other send reference entry to client NO_SUCH_OBJ other - other2 [unchanged] - ---------------------------------------------------------------------
newResultCode
- the new result code to take into accountnewErrorMessage
- the new error message associated to the new
error code
true
if a referral result code must be turned
into a reference entrypublic ResultCode resultCode()
public MessageBuilder errorMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |