Class OwnershipTransferParameter

java.lang.Object
com.atlassian.jira.user.anonymize.OwnershipTransferParameter
All Implemented Interfaces:
TaskContextAware

public class OwnershipTransferParameter extends Object implements TaskContextAware
Contains user keys of the user currently owning an entity, and of the user that the ownership is to be transferred to. Also contains context to report progress to.
Since:
8.3
  • Constructor Details

    • OwnershipTransferParameter

      public OwnershipTransferParameter(@Nonnull String currentUserKey, @Nonnull String transferToUserKey, @Nonnull Context context)
  • Method Details

    • getCurrentUserKey

      @Nonnull public String getCurrentUserKey()
      User key of the current entity owner to be updated.
    • getTransferToUserKey

      @Nonnull public String getTransferToUserKey()
      User key of the user that the ownership is to be transferred to.
    • 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