stable

Clone or download

Read-only

story #14131 : Refactor user suspension code

All user suspension and user suspension notification functionality is moved to UserSuspensionManager User suspension methods from UserDao are moved to UserSuspensionDao (with adaptation to the latest DataAccessObject). There is already logic in some of the dao methods in the legacy code. Since the goal for now is to just refactor, the same structure is kept. Change-Id: I748a8e632afa35ba401b8dc0ae735ef58d2d5872

Modified Files

Name
M src/common/CLI/Command/DailyJobCommand.php +7 −14 Go to diff View file
M src/common/CLI/Events/GetWhitelistedKeys.php +3 −6 Go to diff View file
D src/common/User/IdleUsersDao.php +0 −45 Go to diff View file
M src/common/User/UserManager.class.php +0 −59 Go to diff View file
R src/common/mail/AutomaticMailsLogger.php Go to diff View file
R src/common/mail/AutomaticMailsSender.php Go to diff View file
M src/common/dao/UserDao.class.php +0 −145 Go to diff View file
A src/common/dao/UserSuspensionDao.php +207 −0 Go to diff View file
M src/common/mail/MailAccountSuspensionAlertPresenter.php +9 −8 Go to diff View file
M src/common/mail/MailPresenterFactory.class.php +4 −5 Go to diff View file
M src/utils/tuleap.php +6 −7 Go to diff View file
D tests/phpunit/common/User/UserAccountValidityTest.php +0 −173 Go to diff View file
A tests/phpunit/common/User/UserSuspensionManagerTest.php +133 −0 Go to diff View file
D tests/phpunit/common/mail/AutomaticMailsSenderTest.php +0 −109 Go to diff View file