Interface OwnershipTransferHandler

All Superinterfaces:
AnonymizationHandler<OwnershipTransferParameter>
All Known Implementing Classes:
ComponentLeadOwnershipTransferHandler, FilterSubscriptionOwnershipTransferHandler, OwnershipTransferHandlerWithBLValidationErrors, ProjectLeadOwnershipTransferHandler, ReferenceOwnershipTransferHandler

public interface OwnershipTransferHandler extends AnonymizationHandler<OwnershipTransferParameter>
Transfers ownership of entities before a user is disabled, to make sure the system keeps working properly. For example, changes project lead and component lead, as having disabled users there can break the default assignee option.

This extension point is executed as the first step of the user anonymization process. Any errors returned by the implementations will stop the process.

To register an instance of this handler to be executed by Jira, implement this interface and add an ownership-transfer-handler module to the atlassian-plugin.xml, e.g.:


 <ownership-transfer-handler
     key="my-ownership-transfer-handler"
     class="com.example.OwnershipTransferHandlerImpl"
     i18n-name-key="ownership.transfer.handler.name">
         <restrict application="jira" version="[8.3.0,)" />
  </ownership-transfer-handler>
  
Since:
8.3
See Also: