public abstract class UserPropertyChangeManager<T extends AnonymizationHandler<P>,P extends TaskContextAware> extends Object
Constructor and Description |
---|
UserPropertyChangeManager(com.atlassian.plugin.PluginAccessor pluginAccessor) |
public UserPropertyChangeManager(com.atlassian.plugin.PluginAccessor pluginAccessor)
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 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-2019 Atlassian. All Rights Reserved.