return Exchanges.IDENTITY_ACCESS_EXCHANGE_NAME;
}
@Override
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 emailAddress = reader.eventStringValue("emailAddress");
String firstName = reader.eventStringValue("firstName");
String lastName = reader.eventStringValue("lastName");
String tenantId = reader.eventStringValue("tenantId.id");
String username = reader.eventStringValue("username");
Date occurredOn = reader.occurredOn();
if (roleName.equals("ScrumProductOwner")) {
this.teamApplicationService().enableProductOwner(
new EnableProductOwnerCommand(
tenantId,