userDAO.deleteById(user.getId());
}
@Override
public User getUserFromInvite(String inviteKey, String accountId) throws UserNotFoundException {
User u = userDAO.findInvitedUser(inviteKey, accountId);
if (u == null) {
throw new UserNotFoundException(inviteKey + "+" + accountId);
}
// Create the event stream entry
eventService.createEvent(EventId.READ, u, null);