Class UserAnonymizationParameter

java.lang.Object
com.atlassian.jira.user.anonymize.UserAnonymizationParameter
All Implemented Interfaces:
TaskContextAware
Direct Known Subclasses:
UserAnonymizationParameterWithAdditionalData

public class UserAnonymizationParameter extends Object implements TaskContextAware
Contains identifiers of the user to be anonymized. Also contains context to report progress to.
Since:
8.3
  • Constructor Details

    • UserAnonymizationParameter

      public UserAnonymizationParameter(@Nonnull String userKey, @Nonnull Context context)
    • UserAnonymizationParameter

      public UserAnonymizationParameter(@Nonnull String userKey)
  • Method Details

    • getUserKey

      @Nonnull public String getUserKey()
      The user key of the user to be anonymized.
    • getContext

      @Nonnull public Context getContext()
      Context to report progress to.

      Proper implementation is only available during the execution of AnonymizationHandler.update(Object). When trying to access it in other methods, the behavior of the returned object is unspecified.

      Specified by:
      getContext in interface TaskContextAware
    • 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