public class UserRenameServiceImpl extends Object implements UserRenameService
Constructor and Description |
---|
UserRenameServiceImpl(BambooUserManager bambooUserManager,
org.springframework.transaction.support.TransactionTemplate transactionTemplate,
org.springframework.orm.hibernate5.HibernateTemplate hibernateTemplate,
com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.event.api.EventPublisher eventPublisher,
ScopedExclusionService scopedExclusionService,
HibernateMutableAclService hibernateMutableAclService) |
Modifier and Type | Method and Description |
---|---|
void |
onUserRenamedEvent(com.atlassian.crowd.event.user.UserRenamedEvent userRenamedEvent) |
void |
renameUser(String oldUserName,
String newUserName,
boolean isExternalRename)
Rename user in all Bamboo user related records.
|
void |
renameUser(String oldUserName,
String newUserName,
com.atlassian.bamboo.user.rename.UserRenameServiceImpl.RenameMode renameMode) |
public UserRenameServiceImpl(@NotNull BambooUserManager bambooUserManager, @NotNull org.springframework.transaction.support.TransactionTemplate transactionTemplate, @NotNull org.springframework.orm.hibernate5.HibernateTemplate hibernateTemplate, @NotNull com.atlassian.plugin.PluginAccessor pluginAccessor, @NotNull com.atlassian.event.api.EventPublisher eventPublisher, @NotNull ScopedExclusionService scopedExclusionService, @NotNull HibernateMutableAclService hibernateMutableAclService)
public void renameUser(@NotNull String oldUserName, @NotNull String newUserName, boolean isExternalRename) throws UserRenameException
UserRenameService
renameUser
in interface UserRenameService
isExternalRename
- set to true if the rename has been done externally and Bamboo is notified of itUserRenameException
public void renameUser(@NotNull String oldUserName, @NotNull String newUserName, com.atlassian.bamboo.user.rename.UserRenameServiceImpl.RenameMode renameMode) throws UserRenameException
UserRenameException
@EventListener public void onUserRenamedEvent(com.atlassian.crowd.event.user.UserRenamedEvent userRenamedEvent)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.