public interface OwnershipTransferHandler extends AnonymizationHandler<OwnershipTransferParameter>
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>
AnonymizationHandler
,
UserAnonymizationHandler
,
UserKeyChangeHandler
,
UserNameChangeHandler
DEFAULT_NUMBER_OF_TASKS
Modifier and Type | Method and Description |
---|---|
Collection<AffectedEntity> |
getAffectedEntities(OwnershipTransferParameter ownershipTransferParameter)
Used to display in the UI a list of entities that require an ownership transfer, without actually performing
the operation yet.
|
getNumberOfTasks, update, validateBusinessLogic
@Nonnull Collection<AffectedEntity> getAffectedEntities(@Nonnull OwnershipTransferParameter ownershipTransferParameter)
OwnershipTransferParameter.getTransferToUserKey()
during computing affected entities.
This method should return results as fast as possible, as it is affecting the UI.
getAffectedEntities
in interface AnonymizationHandler<OwnershipTransferParameter>
ownershipTransferParameter
- stores original and target user keysCopyright © 2002-2021 Atlassian. All Rights Reserved.