Search in sources :

Example 1 with IsReceivingAsyncMessage

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);
}
Also used : UserMessage(com.mercedesbenz.sechub.sharedkernel.messaging.UserMessage) IsReceivingAsyncMessage(com.mercedesbenz.sechub.sharedkernel.messaging.IsReceivingAsyncMessage)

Example 2 with IsReceivingAsyncMessage

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());
}
Also used : JobMessage(com.mercedesbenz.sechub.sharedkernel.messaging.JobMessage) IsReceivingAsyncMessage(com.mercedesbenz.sechub.sharedkernel.messaging.IsReceivingAsyncMessage)

Example 3 with IsReceivingAsyncMessage

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());
}
Also used : JobMessage(com.mercedesbenz.sechub.sharedkernel.messaging.JobMessage) IsReceivingAsyncMessage(com.mercedesbenz.sechub.sharedkernel.messaging.IsReceivingAsyncMessage)

Example 4 with IsReceivingAsyncMessage

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());
}
Also used : JobMessage(com.mercedesbenz.sechub.sharedkernel.messaging.JobMessage) IsReceivingAsyncMessage(com.mercedesbenz.sechub.sharedkernel.messaging.IsReceivingAsyncMessage)

Example 5 with IsReceivingAsyncMessage

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());
}
Also used : UserMessage(com.mercedesbenz.sechub.sharedkernel.messaging.UserMessage) IsReceivingAsyncMessage(com.mercedesbenz.sechub.sharedkernel.messaging.IsReceivingAsyncMessage)

Aggregations

IsReceivingAsyncMessage (com.mercedesbenz.sechub.sharedkernel.messaging.IsReceivingAsyncMessage)29 UserMessage (com.mercedesbenz.sechub.sharedkernel.messaging.UserMessage)11 JobMessage (com.mercedesbenz.sechub.sharedkernel.messaging.JobMessage)7 ProjectMessage (com.mercedesbenz.sechub.sharedkernel.messaging.ProjectMessage)6 AdministrationConfigMessage (com.mercedesbenz.sechub.sharedkernel.messaging.AdministrationConfigMessage)3 ProjectAccessLevel (com.mercedesbenz.sechub.sharedkernel.project.ProjectAccessLevel)2 UseCaseAdministratorChangesProjectAccessLevel (com.mercedesbenz.sechub.sharedkernel.usecases.admin.project.UseCaseAdministratorChangesProjectAccessLevel)2 UUID (java.util.UUID)2 MappingIdentifier (com.mercedesbenz.sechub.sharedkernel.mapping.MappingIdentifier)1 MappingMessage (com.mercedesbenz.sechub.sharedkernel.messaging.MappingMessage)1 SchedulerMessage (com.mercedesbenz.sechub.sharedkernel.messaging.SchedulerMessage)1 UseCaseAdmiUpdatesMappingConfiguration (com.mercedesbenz.sechub.sharedkernel.usecases.admin.config.UseCaseAdmiUpdatesMappingConfiguration)1