Class AnonymizationParameters

java.lang.Object
com.atlassian.jira.user.anonymize.AnonymizationParameters
All Implemented Interfaces:
Serializable

@ExperimentalApi public class AnonymizationParameters extends Object implements Serializable
Contains data necessary to validate and perform user anonymization.
See Also:
  • Method Details

    • builder

      public static AnonymizationParameters.Builder builder()
    • getUserKey

      @Nonnull public String getUserKey()
      Returns:
      User key of user being anonymized.
    • isRerunPluginPoints

      public boolean isRerunPluginPoints()
    • getNewOwnerKey

      @Nullable public String getNewOwnerKey()
      Returns:
      New owner key for entities that need to have their ownership transferred.
    • getExecutor

      @Nonnull public ApplicationUser getExecutor()
      Returns:
      User who executes anonymization process.
    • getOldUserKey

      @Nullable public String getOldUserKey()
      Returns:
      User key passed as UserPropertyChangeParameter.getOriginal() to user key change handler. Used when retrying interrupted user key change process when user key has already been changed internally but not all UserKeyChangeHandlers were executed.
    • getOldUserName

      @Nullable public String getOldUserName()
      Returns:
      User name passed as UserPropertyChangeParameter.getOriginal() to user name change handler. Used when retrying interrupted user name change process when user name has already been changed internally but not all UserNameChangeHandlers were executed.
    • isGetAffectedEntities

      public boolean isGetAffectedEntities()
      Indicates whether affected entities should be used during validation phase.
      Returns:
      true if affected entities should be used (and returned) during validation phase, false otherwise.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object