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 Summary
FieldsFields inherited from class com.atlassian.jira.user.anonymize.handlers.key.IssueHistoryUserKeyChangeHandler
jiraAuthenticationContext, queryDslAccessor
Fields inherited from interface com.atlassian.jira.user.anonymize.AnonymizationHandler
DEFAULT_NUMBER_OF_TASKS
-
Constructor Summary
ConstructorsConstructorDescriptionIssueHistoryCustomFieldMultiUserKeyChangeHandler
(JiraAuthenticationContext jiraAuthenticationContext, QueryDslAccessor queryDslAccessor, DatabaseAccessor databaseAccessor, int stepNumber) -
Method Summary
Modifier and TypeMethodDescriptionupdate
(UserPropertyChangeParameter userPropertyChangeParameter) Performs the updates required by the user anonymization.Methods inherited from class com.atlassian.jira.user.anonymize.handlers.key.IssueHistoryUserKeyChangeHandler
getAffectedEntities, getAffectedEntitiesIds, getBaseQuery, getInfos, getNumberOfTasks, updateCustomField
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.jira.user.anonymize.AnonymizationHandler
validateBusinessLogic
-
Field Details
-
ENTITY_NAME
- See Also:
-
-
Constructor Details
-
IssueHistoryCustomFieldMultiUserKeyChangeHandler
public IssueHistoryCustomFieldMultiUserKeyChangeHandler(JiraAuthenticationContext jiraAuthenticationContext, QueryDslAccessor queryDslAccessor, DatabaseAccessor databaseAccessor, int stepNumber)
-
-
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 inparameter
, and subsequently callContext.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 interfaceAnonymizationHandler<UserPropertyChangeParameter>
- Overrides:
update
in classIssueHistoryUserKeyChangeHandler
- 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
-