Class IssueHistoryCustomFieldMultiUserKeyChangeHandler

java.lang.Object
com.atlassian.jira.user.anonymize.handlers.key.IssueHistoryUserKeyChangeHandler
com.atlassian.jira.user.anonymize.handlers.key.IssueHistoryCustomFieldMultiUserKeyChangeHandler
All Implemented Interfaces:
AnonymizationHandler<UserPropertyChangeParameter>, UserKeyChangeHandler

public class IssueHistoryCustomFieldMultiUserKeyChangeHandler extends IssueHistoryUserKeyChangeHandler
Anonymization of multi user picker custom fields in issue history
Since:
v8.4
  • Field Details

  • Constructor Details

  • Method Details

    • update

      @Nonnull public ServiceResult update(@Nonnull UserPropertyChangeParameter userPropertyChangeParameter)
      Description copied from interface: AnonymizationHandler
      Performs the updates required by the user anonymization.

      Implementations must be idempotent - multiple invocations of this method should lead to the same result. In particular, when the method fails we can call it again to finish the operation.

      During the execution, implementations can update their the progress by calling Context.start(object); on the context passed in parameter, and subsequently call Context.Task.complete(); on the task object to indicate task has finished.

      Implementations can also call Context.setName("Name of current step") to describe the task that is currently processed.

      Specified by:
      update in interface AnonymizationHandler<UserPropertyChangeParameter>
      Overrides:
      update in class IssueHistoryUserKeyChangeHandler
      Parameters:
      userPropertyChangeParameter - Data relevant to the handled anonymization step, e.g. previous and new (anonymized) username
      Returns:
      a service outcome of the update operation, containing any errors