Package com.atlassian.bamboo.user.rename
Class UserRenameServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.user.rename.UserRenameServiceImpl
-
- All Implemented Interfaces:
UserRenameService
public class UserRenameServiceImpl extends Object implements UserRenameService
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
UserRenameServiceImpl
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)
-
-
Method Detail
-
renameUser
public void renameUser(@NotNull @NotNull String oldUserName, @NotNull @NotNull String newUserName, boolean isExternalRename) throws UserRenameException
Description copied from interface:UserRenameService
Rename user in all Bamboo user related records. Works for both local and external users.- Specified by:
renameUser
in interfaceUserRenameService
isExternalRename
- set to true if the rename has been done externally and Bamboo is notified of it- Throws:
UserRenameException
-
renameUser
public void renameUser(@NotNull @NotNull String oldUserName, @NotNull @NotNull String newUserName, com.atlassian.bamboo.user.rename.UserRenameServiceImpl.RenameMode renameMode) throws UserRenameException
- Throws:
UserRenameException
-
onUserRenamedEvent
@EventListener public void onUserRenamedEvent(com.atlassian.crowd.event.user.UserRenamedEvent userRenamedEvent)
-
-