Class UserRenameServiceImpl

    • 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 interface UserRenameService
        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)