public static class AnonymizeUserService.AnonymizeProcessData extends Object
Contains data about anonymization process. Provided and computed data is used to determine set of operations to be performed in the process of anonymization.
Stored data:
Modifier and Type | Class and Description |
---|---|
static class |
AnonymizeUserService.AnonymizeProcessData.Builder |
Constructor and Description |
---|
AnonymizeProcessData(AnonymizationParameters anonymizationParameters,
ApplicationUser user,
boolean userDeletedExternally,
boolean userDeleted,
boolean userNameAlreadyAnonymized,
boolean userKeyAlreadyAnonymized,
String newUserName,
String newUserKey,
Collection<AffectedEntity> affectedEntities,
boolean affectedEntitiesWithHandlerError) |
public AnonymizeProcessData(@Nonnull AnonymizationParameters anonymizationParameters, @Nullable ApplicationUser user, boolean userDeletedExternally, boolean userDeleted, boolean userNameAlreadyAnonymized, boolean userKeyAlreadyAnonymized, @Nullable String newUserName, @Nullable String newUserKey, @Nonnull Collection<AffectedEntity> affectedEntities, boolean affectedEntitiesWithHandlerError)
public static AnonymizeUserService.AnonymizeProcessData.Builder newBuilder(@Nonnull AnonymizationParameters anonymizationParameters)
public AnonymizationParameters getAnonymizationParameters()
public boolean handleOperation(AnonymizeUserService.AnonymizeOperation anonymizeOperation)
user==null
then no operation is available as user is not found in system.
AffectedEntityType.TRANSFER_OWNERSHIP
or there was error during getting affected entities affectedEntitiesWithHandlerError
or AnonymizationParameters.isGetAffectedEntities()
is set to false.anonymizeOperation
- Operationpublic Collection<AnonymizeUserService.AnonymizeOperation> getOperationsWeWouldLikeToPerform(boolean preValidate)
public boolean isRequiresTransferOwner()
@Nullable public ApplicationUser getUser()
public UserState getUserState()
public boolean isUserDeletedExternally()
public boolean isUserDeleted()
public boolean isUserNameAlreadyAnonymized()
public boolean isUserKeyAlreadyAnonymized()
@Nullable public String getNewUserName()
@Nullable public String getNewUserKey()
@Nullable public String getOldUserName()
@Nullable public String getOldUserKey()
public String getTransferOwnerKey()
@Nonnull public Collection<AffectedEntity> getAffectedEntities()
public boolean isAffectedEntitiesWithHandlerError()
@Nonnull public UserAnonymizationStartedEvent getUserAnonymizationStartedEvent()
@Nonnull public UserAnonymizationFinishedEvent getUserAnonymizationFinishedEvent()
Copyright © 2002-2022 Atlassian. All Rights Reserved.