use of com.mercedesbenz.sechub.sharedkernel.messaging.IsReceivingAsyncMessage in project sechub by mercedes-benz.
the class UserRoleAdministrationMessageHandler method handleRoleRecalculationRequest.
@IsReceivingAsyncMessage(MessageID.REQUEST_USER_ROLE_RECALCULATION)
private void handleRoleRecalculationRequest(DomainMessage request) {
UserMessage message = request.get(MessageDataKeys.USER_ID_DATA);
String userId = message.getUserId();
userRoleCalculationService.recalculateRolesOfUser(userId);
}
use of com.mercedesbenz.sechub.sharedkernel.messaging.IsReceivingAsyncMessage in project sechub by mercedes-benz.
the class JobAdministrationMessageHandler method handleJobFailed.
@IsReceivingAsyncMessage(MessageID.JOB_FAILED)
private void handleJobFailed(DomainMessage request) {
JobMessage message = request.get(MessageDataKeys.JOB_FAILED_DATA);
deleteService.delete(message.getJobUUID());
}
use of com.mercedesbenz.sechub.sharedkernel.messaging.IsReceivingAsyncMessage in project sechub by mercedes-benz.
the class JobAdministrationMessageHandler method handleJobDone.
@IsReceivingAsyncMessage(MessageID.JOB_DONE)
private void handleJobDone(DomainMessage request) {
JobMessage message = request.get(MessageDataKeys.JOB_DONE_DATA);
deleteService.delete(message.getJobUUID());
}
use of com.mercedesbenz.sechub.sharedkernel.messaging.IsReceivingAsyncMessage in project sechub by mercedes-benz.
the class JobAdministrationMessageHandler method handleJobCanceled.
@IsReceivingAsyncMessage(MessageID.JOB_CANCELED)
private void handleJobCanceled(DomainMessage request) {
JobMessage message = request.get(MessageDataKeys.JOB_CANCEL_DATA);
// we do drop job info - we only hold running and waiting jobs!
deleteService.delete(message.getJobUUID());
}
use of com.mercedesbenz.sechub.sharedkernel.messaging.IsReceivingAsyncMessage in project sechub by mercedes-benz.
the class ScheduleMessageHandler method handleUserDeleted.
@IsReceivingAsyncMessage(MessageID.USER_DELETED)
private void handleUserDeleted(DomainMessage request) {
UserMessage data = request.get(MessageDataKeys.USER_DELETE_DATA);
revokeUserService.revokeUserAccess(data.getUserId());
}
Aggregations