Search in sources :

Example 1 with UserDeletedEvent

use of alien4cloud.security.event.UserDeletedEvent in project alien4cloud by alien4cloud.

the class UserService method deleteUser.

/**
 * Delete a user, and publish an event
 *
 * @param username The username of the user to delete
 */
public void deleteUser(String username) {
    User user = retrieveUser(username);
    alienUserDao.delete(username);
    publisher.publishEvent(new UserDeletedEvent(this, user));
}
Also used : User(alien4cloud.security.model.User) UserDeletedEvent(alien4cloud.security.event.UserDeletedEvent)

Aggregations

UserDeletedEvent (alien4cloud.security.event.UserDeletedEvent)1 User (alien4cloud.security.model.User)1