public interface AnonymizeOperationStep
DefaultAnonymizeUserService
Modifier and Type | Method and Description |
---|---|
ServiceOutcomeWithWarnings<Collection<AffectedEntity>> |
getAffectedEntities(AnonymizeUserService.AnonymizeProcessData anonymizationData)
Gets affected entities for this action.
|
AnonymizeUserService.AnonymizeOperation |
getAnonymizeOperation()
Type of operation this handler supports.
|
int |
getNumberOfTasks(AnonymizeUserService.AnonymizeValidationResult validationResult)
Returns number of tasks/stages to be executed as part of this anonymization step.
|
Optional<AnonymizeUserService.SingleOperationReport<Void>> |
performOperation(AnonymizeUserService.OperationsReport<Void> anonymizeReport,
AnonymizeUserService.AnonymizeValidationResult validationResult,
Context asyncTaskContext)
Performs operations only if all proper parameters are filled in passed parameters.
|
default boolean |
shouldPerformOperation(AnonymizeUserService.AnonymizeProcessData validationResultData) |
ServiceResult |
validate(AnonymizeUserService.AnonymizeProcessData anonymizationProcessData,
I18nHelper i18nHelper,
boolean preValidate)
Validate should ensure that request and anonymizationProcessData contain all data needed to
#performOperation(OperationsReport, AnonymizeValidationResult, Context) . |
@Nonnull Optional<AnonymizeUserService.SingleOperationReport<Void>> performOperation(@Nonnull AnonymizeUserService.OperationsReport<Void> anonymizeReport, @Nonnull AnonymizeUserService.AnonymizeValidationResult validationResult, @Nonnull Context asyncTaskContext)
#validate(AnonymizeProcessData, I18nHelper, boolean)
should be called prior this method to ensure that
all required parameters to perform operation are present.anonymizeReport
- Anonymization report, can be used to check if previous operations were executed/succeeded/failed.validationResult
- Validation result. See AnonymizeUserService.validateAnonymize(AnonymizationParameters)
asyncTaskContext
- Task context to report the anonymization process progress to@Nonnull ServiceResult validate(@Nonnull AnonymizeUserService.AnonymizeProcessData anonymizationProcessData, I18nHelper i18nHelper, boolean preValidate)
#performOperation(OperationsReport, AnonymizeValidationResult, Context)
.
Also validates if system allows specific operation eg. in order for user to be renamed it has to be editable in system.anonymizationProcessData
- Data to validate.i18nHelper
- I18n helperpreValidate
- True for pre-validation phase. See AnonymizeUserService.preValidateAnonymize(AnonymizationParameters)
@Nonnull ServiceOutcomeWithWarnings<Collection<AffectedEntity>> getAffectedEntities(AnonymizeUserService.AnonymizeProcessData anonymizationData)
anonymizationData
- Anonymization data.@Nonnull AnonymizeUserService.AnonymizeOperation getAnonymizeOperation()
int getNumberOfTasks(@Nonnull AnonymizeUserService.AnonymizeValidationResult validationResult)
#performOperation(OperationsReport, AnonymizeValidationResult, Context)
.validationResult
- Validation resultdefault boolean shouldPerformOperation(AnonymizeUserService.AnonymizeProcessData validationResultData)
Copyright © 2002-2022 Atlassian. All Rights Reserved.