Package com.atlassian.bamboo.user.rename
Class UserRenameServiceImpl
java.lang.Object
com.atlassian.bamboo.user.rename.UserRenameServiceImpl
- All Implemented Interfaces:
UserRenameService
-
Constructor Summary
ConstructorDescriptionUserRenameServiceImpl
(@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
Modifier and TypeMethodDescriptionvoid
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 Details
-
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 Details
-
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)
-