Record Class BulkActionExecutionOptions

java.lang.Object
java.lang.Record
com.evolveum.midpoint.model.api.BulkActionExecutionOptions

public record BulkActionExecutionOptions(boolean recordProgressAndIterationStatistics, boolean privileged, boolean executionPhase) extends Record
  • Constructor Details

    • BulkActionExecutionOptions

      public BulkActionExecutionOptions(boolean recordProgressAndIterationStatistics, boolean privileged, boolean executionPhase)
      Creates an instance of a BulkActionExecutionOptions record class.
      Parameters:
      recordProgressAndIterationStatistics - the value for the recordProgressAndIterationStatistics record component
      privileged - the value for the privileged record component
      executionPhase - the value for the executionPhase record component
  • Method Details

    • create

      public static BulkActionExecutionOptions create()
    • withRecordProgressAndIterationStatistics

      public BulkActionExecutionOptions withRecordProgressAndIterationStatistics()
      Should the executor do its own progress and iteration stats reporting? Used e.g. for non-iterative bulk actions in activities.
    • withPrivileged

      public BulkActionExecutionOptions withPrivileged()
      The difference of "privileged", compared to the regular execution is in the default expression profile used. Here, it is ExpressionProfile.full() even for unprivileged users.
    • withExecutionPhase

      public BulkActionExecutionOptions withExecutionPhase()
      If true, authorizations are checked for execution phase only.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • recordProgressAndIterationStatistics

      public boolean recordProgressAndIterationStatistics()
      Returns the value of the recordProgressAndIterationStatistics record component.
      Returns:
      the value of the recordProgressAndIterationStatistics record component
    • privileged

      public boolean privileged()
      Returns the value of the privileged record component.
      Returns:
      the value of the privileged record component
    • executionPhase

      public boolean executionPhase()
      Returns the value of the executionPhase record component.
      Returns:
      the value of the executionPhase record component