public class UserRenameServiceImpl extends Object implements UserRenameService
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
void |
onUserRenamedEvent(com.atlassian.crowd.event.user.UserRenamedEvent userRenamedEvent) |
void |
renameUser(@NotNull String oldUserName,
@NotNull String newUserName,
boolean isExternalRename)
Rename user in all Bamboo user related records.
|
void |
renameUser(@NotNull String oldUserName,
@NotNull String newUserName,
com.atlassian.bamboo.user.rename.UserRenameServiceImpl.RenameMode renameMode) |
public UserRenameServiceImpl(@NotNull @NotNull BambooUserManager bambooUserManager, @NotNull @NotNull org.springframework.transaction.support.TransactionTemplate transactionTemplate, @NotNull @NotNull org.springframework.orm.hibernate5.HibernateTemplate hibernateTemplate, @NotNull @NotNull com.atlassian.plugin.PluginAccessor pluginAccessor, @NotNull @NotNull com.atlassian.event.api.EventPublisher eventPublisher, @NotNull @NotNull ScopedExclusionService scopedExclusionService, @NotNull @NotNull HibernateMutableAclService hibernateMutableAclService)
public void renameUser(@NotNull @NotNull String oldUserName, @NotNull @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 @NotNull String oldUserName, @NotNull @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 © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.