use of com.mercedesbenz.sechub.sharedkernel.messaging.DomainMessage in project sechub by mercedes-benz.
the class UserCreationService method informUserCreated.
@IsSendingAsyncMessage(MessageID.USER_CREATED)
private void informUserCreated(User user) {
DomainMessage infoRequest = new DomainMessage(MessageID.USER_CREATED);
UserMessage message = createInitialUserAuthData(user);
infoRequest.set(MessageDataKeys.USER_CREATION_DATA, message);
eventBusService.sendAsynchron(infoRequest);
}
use of com.mercedesbenz.sechub.sharedkernel.messaging.DomainMessage in project sechub by mercedes-benz.
the class UserDeleteService method informUserDeleted.
@IsSendingAsyncMessage(MessageID.USER_DELETED)
private void informUserDeleted(UserMessage message) {
DomainMessage infoRequest = new DomainMessage(MessageID.USER_DELETED);
infoRequest.set(MessageDataKeys.USER_DELETE_DATA, message);
eventBusService.sendAsynchron(infoRequest);
}
use of com.mercedesbenz.sechub.sharedkernel.messaging.DomainMessage in project sechub by mercedes-benz.
the class ProjectUpdateWhitelistService method sendProjectCreatedEvent.
@IsSendingAsyncMessage(MessageID.PROJECT_WHITELIST_UPDATED)
private void sendProjectCreatedEvent(String projectId, Set<URI> whitelist) {
DomainMessage request = new DomainMessage(MessageID.PROJECT_WHITELIST_UPDATED);
ProjectMessage message = new ProjectMessage();
message.setProjectId(projectId);
message.setWhitelist(whitelist);
request.set(MessageDataKeys.PROJECT_WHITELIST_UPDATE_DATA, message);
eventBus.sendAsynchron(request);
}
use of com.mercedesbenz.sechub.sharedkernel.messaging.DomainMessage in project sechub by mercedes-benz.
the class SwitchSchedulerJobProcessingService method sendDisableSchedulerJobProcessingMessage.
@IsSendingAsyncMessage(MessageID.REQUEST_SCHEDULER_DISABLE_JOB_PROCESSING)
private void sendDisableSchedulerJobProcessingMessage() {
DomainMessage request = DomainMessageFactory.createEmptyRequest(MessageID.REQUEST_SCHEDULER_DISABLE_JOB_PROCESSING);
eventBusService.sendAsynchron(request);
}
use of com.mercedesbenz.sechub.sharedkernel.messaging.DomainMessage in project sechub by mercedes-benz.
the class SwitchSchedulerJobProcessingService method sendEnableSchedulerJobProcessingMessage.
@IsSendingAsyncMessage(MessageID.REQUEST_SCHEDULER_ENABLE_JOB_PROCESSING)
private void sendEnableSchedulerJobProcessingMessage() {
DomainMessage request = DomainMessageFactory.createEmptyRequest(MessageID.REQUEST_SCHEDULER_ENABLE_JOB_PROCESSING);
eventBusService.sendAsynchron(request);
}
Aggregations