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(AnonymizeUserService.AnonymizeUserRequest anonymizeUserRequest,
ApplicationUser user,
boolean userDeletedExternally,
boolean userNameAlreadyAnonymized,
boolean userKeyAlreadyAnonymized,
String newUserName,
String newUserKey,
Collection<AffectedEntity> affectedEntities) |
public AnonymizeProcessData(@Nonnull AnonymizeUserService.AnonymizeUserRequest anonymizeUserRequest, @Nullable ApplicationUser user, boolean userDeletedExternally, boolean userNameAlreadyAnonymized, boolean userKeyAlreadyAnonymized, @Nullable String newUserName, @Nullable String newUserKey, @Nonnull Collection<AffectedEntity> affectedEntities)
public static AnonymizeUserService.AnonymizeProcessData.Builder newBuilder(@Nonnull AnonymizeUserService.AnonymizeUserRequest anonymizeUserRequest)
public AnonymizeUserService.AnonymizeUserRequest getAnonymizeUserRequest()
public boolean handleOperation(AnonymizeUserService.AnonymizeOperation anonymizeOperation)
user==null
then no operation is available as user is not found in system.
- ownership transfer: user active or deleted externally
- ownership transfer: at least one of affected entities reports type AffectedEntityType.TRANSFER_OWNERSHIP
- user disable: user is active
- change external id: always
- call anonymize plugin points: always
- change user key: user key is not anonymized
- change user key plugin points: use key is not anonymized or key is anonymized but re-run requested
- change user name: user name is not anonymized and user is not deleted
- change user name plugin points: user name is not anonymized and user is not deleted or user name is anonymized but re-run requestedanonymizeOperation
- Operationpublic Collection<AnonymizeUserService.AnonymizeOperation> getOperationsWeWouldLikeToPerform(boolean preValidate)
public boolean userNameAnonymizedButRerunPluginPointsRequested()
public boolean isRequiresTransferOwner()
@Nullable public ApplicationUser getUser()
public AnonymizeUserService.UserState getUserState()
public boolean isUserDeletedExternally()
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()
public Collection<AffectedEntity> getAffectedEntities()
@Nonnull public UserAnonymizationStartedEvent getUserAnonymizationStartedEvent()
@Nonnull public UserAnonymizationFinishedEvent getUserAnonymizationFinishedEvent()
Copyright © 2002-2019 Atlassian. All Rights Reserved.