public abstract class UserPropertyChangeManager<T extends AnonymizationHandler<P>,P extends TaskContextAware> extends Object
| Modifier and Type | Field and Description | 
|---|---|
protected com.atlassian.event.api.EventPublisher | 
eventPublisher  | 
| Constructor and Description | 
|---|
UserPropertyChangeManager(com.atlassian.plugin.PluginAccessor pluginAccessor,
                         com.atlassian.event.api.EventPublisher eventPublisher,
                         BusinessLogicValidator businessLogicValidator)  | 
public UserPropertyChangeManager(com.atlassian.plugin.PluginAccessor pluginAccessor,
                                 com.atlassian.event.api.EventPublisher eventPublisher,
                                 BusinessLogicValidator businessLogicValidator)
public abstract void changeProperty(@Nonnull P userPropertyChangeParameter)
userPropertyChangeParameter - Contains old/new user property value.protected abstract Class<? extends AnonymizationHandlerModuleDescriptor<T,P>> getModuleDescriptorClass()
@Nonnull public Map<AnonymizationHandlerModuleDescriptor,ServiceOutcome<Collection<AffectedEntity>>> getAffectedEntities(@Nonnull P parameter)
AnonymizationHandler.
 In case of exception during obtaining of affected entities ServiceOutcome will contain error with message from exception.parameter - Contains old/new user property value.ServiceOutcome from each registered AnonymizationHandlerModuleDescriptor.@Nonnull public Map<AnonymizationHandlerModuleDescriptor,ServiceResult> executeHandlers(@Nonnull P parameter, @Nonnull I18nHelper i18nBean)
AnonymizationHandler.
 In case of error/exception ServiceResult value will contain errors for certain handler (AnonymizationHandlerModuleDescriptor).parameter - Contains old/new user property value.i18nBean - Used for i18n messages.ServiceResult> for each registered AnonymizationHandlerModuleDescriptor.@Nonnull public BusinessLogicValidationResult validateBusinessLogic(@Nonnull AnonymizationParameters anonymizationParameters)
@Nonnull protected ServiceOutcome<Collection<AffectedEntity>> getAffectedEntitiesFromHandler(@Nonnull AnonymizationHandlerModuleDescriptor<T,P> handlerModuleDescriptor, @Nonnull P userPropertyChangeParameter)
@Nonnull protected ServiceResult executeHandler(@Nonnull AnonymizationHandlerModuleDescriptor<T,P> handlerModuleDescriptor, @Nonnull P userPropertyChangeParameter, @Nonnull I18nHelper i18nBean)
Copyright © 2002-2024 Atlassian. All Rights Reserved.