protected String exchangeName() {
return Exchanges.IDENTITY_ACCESS_EXCHANGE_NAME;
}
protected void filteredDispatch(String aType, String aTextMessage) {
NotificationReader reader = new NotificationReader(aTextMessage);
String roleName = reader.eventStringValue("roleName");
if (!roleName.equals("ScrumProductOwner") &&
!roleName.equals("ScrumTeamMember")) {
return;
}
String tenantId = reader.eventStringValue("tenantId.id");
String username = reader.eventStringValue("username");
Date occurredOn = reader.occurredOn();
if (roleName.equals("ScrumProductOwner")) {
this.teamApplicationService().disableProductOwner(
new DisableProductOwnerCommand(
tenantId,