Search in sources :

Example 1 with UseCaseAdminDeletesSignup

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);
}
Also used : UseCaseAdminDeletesSignup(com.mercedesbenz.sechub.sharedkernel.usecases.admin.signup.UseCaseAdminDeletesSignup) UseCaseAdminDeletesSignup(com.mercedesbenz.sechub.sharedkernel.usecases.admin.signup.UseCaseAdminDeletesSignup)

Aggregations

UseCaseAdminDeletesSignup (com.mercedesbenz.sechub.sharedkernel.usecases.admin.signup.UseCaseAdminDeletesSignup)1