Skip navigation links


oracle.iam.platform.kernel.vo
Class EventResult

java.lang.Object
  extended by oracle.iam.platform.kernel.vo.EventResult

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BulkEventResult

public class EventResult
extends java.lang.Object
implements java.io.Serializable

Value object used for returning the result of an event handler.

See Also:
Serialized Form

Constructor Summary
EventResult()
           

 

Method Summary
 void addWarning(java.lang.String warningCode)
          Add a warning code
 java.util.List getDeferredChanges()
          List of orchestrations that will be executed after the completion of current orchestration
 java.lang.Throwable getFailureReason()
          Get the reason in case of failure
 java.util.List getImmediateChanges()
          List of orchestrations that will be executed after the current event handler
 Orchestration getRestartOrchestration()
          Returns the value of orchestration to be restarted with
 java.util.List getWarnings()
          Retrieve the warning codes
 boolean isRestart()
          Returns whether current orchestration is set to be restarted or not
 boolean isVeto()
          Returns whether the current orchestration is set to veto or not.
 void setDeferredChanges(java.util.List deferredChanges)
          Set the list of new orchestrations that need to be executed at the end of current orchestration.
 void setFailureReason(java.lang.Throwable failureReason)
          Set the reason in case of failure
 void setImmediateChanges(java.util.List immediateChanges)
          Sets the list of new orchestrations that need to be executed after the execution of current event handler.
 void setRestart(boolean restart)
          Restarts the current orchestration if restart is set to true.
 void setRestartOrchestration(Orchestration restartChange)
          if restartChnage value is set and if the orchestration is set to restart, kernel will use this new orchestration when it is restarted
 void setVeto(boolean veto)
          If veto is set to true, orchestartion process is moved to Veto status.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

EventResult

public EventResult()

Method Detail

getFailureReason

public java.lang.Throwable getFailureReason()
Get the reason in case of failure
Returns:

setFailureReason

public void setFailureReason(java.lang.Throwable failureReason)
Set the reason in case of failure
Parameters:
result -

setVeto

public void setVeto(boolean veto)
If veto is set to true, orchestartion process is moved to Veto status. Veto can only be set in pre-process event handlers.
Parameters:
veto -

isVeto

public boolean isVeto()
Returns whether the current orchestration is set to veto or not.
Returns:

setRestart

public void setRestart(boolean restart)
Restarts the current orchestration if restart is set to true. Note that this can only be done as part of pre-process event handlers
Parameters:
restart - if the value is true, current orchestartion will be restarted.

isRestart

public boolean isRestart()
Returns whether current orchestration is set to be restarted or not
Returns:

setRestartOrchestration

public void setRestartOrchestration(Orchestration restartChange)
if restartChnage value is set and if the orchestration is set to restart, kernel will use this new orchestration when it is restarted
Parameters:
restartChange - modified orchestartion to be used for restarting the orchestration

getRestartOrchestration

public Orchestration getRestartOrchestration()
Returns the value of orchestration to be restarted with
Returns:

setImmediateChanges

public void setImmediateChanges(java.util.List immediateChanges)
Sets the list of new orchestrations that need to be executed after the execution of current event handler.
Parameters:
immediateChanges - new orchestrations which need to be executed. These orchestrations are executed right after the completion of current event handler.

getImmediateChanges

public java.util.List getImmediateChanges()
List of orchestrations that will be executed after the current event handler
Returns:
List of orchestrations that will be executed after the current event handler

setDeferredChanges

public void setDeferredChanges(java.util.List deferredChanges)
Set the list of new orchestrations that need to be executed at the end of current orchestration.
Parameters:
deferredChanges - new orchestrations which need to be executed. These orchestrations are executed only after current orchestration is completed.

getDeferredChanges

public java.util.List getDeferredChanges()
List of orchestrations that will be executed after the completion of current orchestration
Returns:
List of orchestrations that will be executed after the completion of current orchestration

addWarning

public void addWarning(java.lang.String warningCode)
Add a warning code
Parameters:
warningCode - warning code to be added

getWarnings

public java.util.List getWarnings()
Retrieve the warning codes
Returns:
list of warning codes

Skip navigation links


Copyright © 2010, Oracle and/or its affiliates. All rights reserved.