All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods
Modifier and Type |
Method and Description |
void |
accept(Visitor<OperationResult> visitor) |
OperationResult |
addArbitraryObjectAsContext(String name,
Object value) |
OperationResult |
addArbitraryObjectAsParam(String paramName,
Object paramValue) |
void |
addArbitraryObjectAsReturn(String name,
Object value) |
OperationResult |
addArbitraryObjectCollectionAsContext(String paramName,
Collection<?> paramValue) |
OperationResult |
addArbitraryObjectCollectionAsParam(String name,
Collection<?> value) |
void |
addArbitraryObjectCollectionAsReturn(String paramName,
Collection<?> paramValue) |
OperationResult |
addContext(String name,
boolean value) |
OperationResult |
addContext(String name,
Class<?> value) |
OperationResult |
addContext(String name,
int value) |
OperationResult |
addContext(String name,
long value) |
OperationResult |
addContext(String name,
ObjectDelta<?> value) |
OperationResult |
addContext(String name,
ObjectQuery value) |
OperationResult |
addContext(String name,
ObjectType value) |
OperationResult |
addContext(String name,
PolyString value) |
OperationResult |
addContext(String name,
PrismObject<? extends ObjectType> value) |
OperationResult |
addContext(String name,
QName value) |
OperationResult |
addContext(String name,
String... values) |
OperationResult |
addContext(String name,
String value) |
OperationResult |
addParam(String name,
boolean value) |
OperationResult |
addParam(String name,
Class<?> value) |
OperationResult |
addParam(String name,
int value) |
OperationResult |
addParam(String name,
long value) |
OperationResult |
addParam(String name,
ObjectDelta<?> value) |
OperationResult |
addParam(String name,
ObjectQuery value) |
OperationResult |
addParam(String name,
ObjectType value) |
OperationResult |
addParam(String name,
PolyString value) |
OperationResult |
addParam(String name,
PrismObject<? extends ObjectType> value) |
OperationResult |
addParam(String name,
QName value) |
OperationResult |
addParam(String name,
String... values) |
OperationResult |
addParam(String name,
String value) |
OperationResult |
addQualifier(String value) |
void |
addReturn(String name,
boolean value) |
void |
addReturn(String name,
Class<?> value) |
void |
addReturn(String name,
int value) |
void |
addReturn(String name,
long value) |
void |
addReturn(String name,
ObjectDelta<?> value) |
void |
addReturn(String name,
ObjectQuery value) |
void |
addReturn(String name,
ObjectType value) |
void |
addReturn(String name,
PolyString value) |
void |
addReturn(String name,
PrismObject<? extends ObjectType> value) |
void |
addReturn(String name,
QName value) |
void |
addReturn(String name,
String... values) |
void |
addReturn(String name,
String value) |
void |
addReturnComment(String comment) |
void |
addSubresult(OperationResult subresult) |
void |
addTrace(TraceType trace) |
void |
appendDetail(String detailLine) |
static void |
applyOperationResultHandlingStrategy(List<OperationResultHandlingStrategyType> configuredStrategies,
Integer stripThresholdDeprecated) |
OperationResult |
build() |
void |
cleanupResult()
Removes all the successful minor results.
|
void |
cleanupResult(Throwable e)
Removes all the successful minor results.
|
void |
cleanupResultDeeply() |
void |
clearTracingProfile() |
OperationResult |
clone() |
OperationResult |
clone(Integer maxDepth,
boolean full) |
OperationResult.PreviewResult |
computePreview() |
void |
computeStatus()
Computes operation result status based on subtask status.
|
void |
computeStatus(boolean skipFinish) |
void |
computeStatus(String errorMessage)
Computes operation result status based on subtask status and sets an
error message if the status is FATAL_ERROR.
|
void |
computeStatus(String errorMessage,
String warnMessage) |
void |
computeStatusComposite()
Used when the result contains several composite sub-result that are of equivalent meaning.
|
void |
computeStatusIfUnknown() |
static OperationResultBuilder |
createFor(String operation) |
OperationResult |
createMinorSubresult(String operation) |
static OperationResult |
createOperationResult(OperationResultType result) |
OperationResultType |
createOperationResultType() |
OperationResultType |
createOperationResultType(Function<LocalizableMessage,String> resolveKeys) |
OperationResult |
createSubresult(String operation) |
static OperationResult |
createSubResultOrNewResult(OperationResult parentResult,
String operation) |
String |
debugDump(int indent) |
void |
deleteLastSubresultIfError() |
String |
dump(boolean withStack) |
boolean |
equals(Object o) |
String |
findAsynchronousOperationReference()
This method partially duplicates functionality of computeStatus.
|
OperationResult |
findSubresult(String operation) |
List<OperationResult> |
findSubresults(String operation) |
String |
getAsynchronousOperationReference()
Reference to an asynchronous operation that can be used to retrieve
the status of the running operation.
|
String |
getBackgroundTaskOid()
Deprecated.
|
String |
getCallerReason() |
Throwable |
getCause() |
OperationResultStatus |
getComputeStatus() |
Map<String,Collection<String>> |
getContext() |
int |
getCount() |
List<String> |
getDetail() |
Long |
getEnd() |
TraceDictionaryType |
getExtractedDictionary() |
<T> T |
getFirstTrace(Class<T> traceClass) |
int |
getHiddenRecordsCount() |
OperationResultImportanceType |
getImportance() |
Long |
getInvocationId() |
OperationResult |
getLastSubresult() |
OperationResultStatus |
getLastSubresultStatus() |
List<LogSegmentType> |
getLogSegments() |
String |
getMessage() |
String |
getMessageCode()
Contains message code based on module error catalog.
|
Long |
getMicroseconds() |
String |
getOperation()
Contains operation name.
|
Collection<String> |
getParam(String name) |
Map<String,Collection<String>> |
getParams()
Method returns Map with operation parameters.
|
String |
getParamSingle(String name) |
List<String> |
getQualifiers() |
Stream<OperationResult> |
getResultStream() |
Collection<String> |
getReturn(String name) |
Map<String,Collection<String>> |
getReturns() |
String |
getReturnSingle(String name) |
Long |
getStart() |
OperationResultStatus |
getStatus()
|
List<OperationResult> |
getSubresults()
|
long |
getToken() |
List<TraceType> |
getTraces() |
TracingLevelType |
getTracingLevel(Class<? extends TraceType> traceClass) |
CompiledTracingProfile |
getTracingProfile() |
LocalizableMessage |
getUserFriendlyMessage() |
int |
hashCode() |
boolean |
hasUnknownStatus()
Returns true if result status is UNKNOWN or any of the subresult status
is unknown (recursive).
|
void |
incrementCount() |
boolean |
isAcceptable()
Returns true if the result is acceptable for further processing.
|
boolean |
isEmpty() |
boolean |
isError() |
boolean |
isFatalError() |
boolean |
isHandledError() |
boolean |
isInProgress() |
static boolean |
isLesserThan(OperationResultImportanceType x,
OperationResultImportanceType y) |
boolean |
isMinor() |
boolean |
isNotApplicable() |
boolean |
isPartialError() |
boolean |
isSuccess()
Returns true if the result is success.
|
boolean |
isSummarizeErrors() |
boolean |
isSummarizePartialErrors() |
boolean |
isSummarizeSuccesses() |
static boolean |
isTaskOid(String ref) |
boolean |
isTraced() |
boolean |
isTracing(Class<? extends TraceType> traceClass,
TracingLevelType level) |
boolean |
isTracingDetailed(Class<? extends TraceType> traceClass) |
boolean |
isTracingMinimal(Class<? extends TraceType> traceClass) |
boolean |
isTracingNormal(Class<? extends TraceType> traceClass) |
boolean |
isUnknown() |
boolean |
isWarning() |
static OperationResult |
keepRootOnly(OperationResult result) |
void |
muteError()
If the operation is an error then it will switch the status to EXPECTED_ERROR.
|
void |
muteLastSubresultError() |
void |
recomputeStatus() |
void |
recomputeStatus(String message) |
void |
recomputeStatus(String errorMessage,
String warningMessage) |
void |
record(CommonException exception)
Records result from a common exception type.
|
void |
recordEnd() |
void |
recordFatalError(String message) |
void |
recordFatalError(String message,
Throwable cause) |
void |
recordFatalError(Throwable cause) |
void |
recordFatalErrorNotFinish(Throwable cause) |
void |
recordHandledError(String message) |
void |
recordHandledError(String message,
Throwable cause) |
void |
recordHandledError(Throwable cause) |
void |
recordInProgress() |
void |
recordNotApplicableIfUnknown() |
void |
recordPartialError(String message) |
void |
recordPartialError(String message,
Throwable cause) |
void |
recordPartialError(Throwable cause) |
void |
recordStatus(OperationResultStatus status,
String message) |
void |
recordStatus(OperationResultStatus status,
String message,
Throwable cause) |
void |
recordStatus(OperationResultStatus status,
Throwable cause) |
void |
recordStatusNotFinish(OperationResultStatus status,
String message,
Throwable cause) |
void |
recordSuccess() |
void |
recordSuccessIfUnknown() |
void |
recordThrowableIfNeeded(Throwable t) |
void |
recordUnknown() |
void |
recordWarning(String message) |
void |
recordWarning(String message,
Throwable cause) |
void |
recordWarning(Throwable cause) |
static String |
referenceToCaseOid(String ref) |
static String |
referenceToTaskOid(String ref) |
void |
removeLastSubresult() |
boolean |
representsHiddenRecords() |
void |
setAsynchronousOperationReference(String asynchronousOperationReference) |
void |
setBackgroundTaskOid(String oid) |
void |
setCallerReason(String callerReason) |
void |
setCaseOid(String oid) |
void |
setCount(int count) |
void |
setEnd(Long end) |
void |
setErrorsHandled()
Set all error status in this result and all subresults as handled.
|
void |
setExtractedDictionary(TraceDictionaryType extractedDictionary) |
void |
setHiddenRecordsCount(int hiddenRecordsCount) |
OperationResult |
setImportance(OperationResultImportanceType value) |
void |
setInvocationId(Long invocationId) |
void |
setMessage(String message) |
void |
setMicroseconds(Long microseconds) |
OperationResultBuilder |
setMinor() |
OperationResult |
setMinor(boolean value)
Deprecated.
|
void |
setStart(Long start) |
void |
setStatus(OperationResultStatus status) |
void |
setSummarizeErrors(boolean summarizeErrors) |
void |
setSummarizePartialErrors(boolean summarizePartialErrors) |
void |
setSummarizeSuccesses(boolean summarizeSuccesses) |
static void |
setThreadLocalHandlingStrategy(String strategyName) |
void |
setUserFriendlyMessage(LocalizableMessage userFriendlyMessage) |
void |
shortDump(StringBuilder sb)
Show the content of the object intended for diagnostics.
|
OperationResultBuilder |
subresult(String operation) |
void |
summarize() |
void |
summarize(boolean alsoSubresults) |
String |
toString() |
OperationResultBuilder |
tracingProfile(CompiledTracingProfile profile) |