Class ProgressReporter

java.lang.Object
com.evolveum.midpoint.web.component.progress.ProgressReporter
All Implemented Interfaces:
ProgressListener

public class ProgressReporter extends Object implements ProgressListener
Author:
Viliam Repan (lazyman)
  • Constructor Details

  • Method Details

    • getAsyncOperationResult

      public OperationResult getAsyncOperationResult()
    • getRefreshInterval

      public int getRefreshInterval()
    • isAsynchronousExecution

      public boolean isAsynchronousExecution()
    • isAbortEnabled

      public boolean isAbortEnabled()
    • setWriteOpResultForProgressActivity

      public void setWriteOpResultForProgressActivity(boolean writeOpResultForProgressActivity)
    • getPreviewResult

      public ModelContext<? extends ObjectType> getPreviewResult()
    • setAsyncOperationResult

      public void setAsyncOperationResult(OperationResult asyncOperationResult)
    • getObjectDeltaOperation

      public Collection<ObjectDeltaOperation<? extends ObjectType>> getObjectDeltaOperation()
    • setObjectDeltaOperation

      public void setObjectDeltaOperation(Collection<ObjectDeltaOperation<? extends ObjectType>> objectDeltaOperation)
    • setPreviewResult

      public void setPreviewResult(ModelContext<? extends ObjectType> previewResult)
    • setRefreshInterval

      public void setRefreshInterval(int refreshInterval)
    • setAsynchronousExecution

      public void setAsynchronousExecution(boolean asynchronousExecution)
    • setAbortEnabled

      public void setAbortEnabled(boolean abortEnabled)
    • recordExecutionStart

      public void recordExecutionStart()
    • recordExecutionStop

      public void recordExecutionStop()
    • getProgress

      public ProgressDto getProgress()
    • getOperationStartTime

      public long getOperationStartTime()
    • getOperationDurationTime

      public long getOperationDurationTime()
    • onProgressAchieved

      public void onProgressAchieved(ModelContext<?> modelContext, ProgressInformation progressInformation)
      Description copied from interface: ProgressListener
      Reports a progress achieved. The idea is to provide as much information as practically possible, so the client could take whatever it wants. Obviously, the method should not take too much time in order not to slow down the main execution routine.
      Specified by:
      onProgressAchieved in interface ProgressListener
      Parameters:
      modelContext - Current context of the model operation.
      progressInformation - Specific progress information.
    • isAbortRequested

      public boolean isAbortRequested()
      Specified by:
      isAbortRequested in interface ProgressListener
    • setAbortRequested

      public void setAbortRequested(boolean value)