use of com.mercedesbenz.sechub.sharedkernel.usecases.admin.signup.UseCaseAdminDeletesSignup in project sechub by mercedes-benz.
the class SignupDeleteService method delete.
@UseCaseAdminDeletesSignup(@Step(number = 2, name = "Persistence", description = "Existing signup will be deleted"))
public void delete(String userId) {
auditLog.log("triggered delete of user signup: {}", logSanitizer.sanitize(userId, 30));
assertion.assertIsValidUserId(userId);
Signup foundByName = userSelfRegistrationRepository.findOrFailSignup(userId);
userSelfRegistrationRepository.delete(foundByName);
}
Aggregations