use of org.finos.symphony.toolkit.workflow.actions.consumers.InRoomAddressingChecker in project spring-bot by finos.
the class SymphonyWorkflowConfig method defaultAddressingChecker.
@Bean
@ConditionalOnMissingBean
public AddressingChecker defaultAddressingChecker() {
UserV2 symphonyBotUser = usersApi.v2UserGet(null, null, botIdentity.getEmail(), null, symphonyProperties.isLocalPod());
SymphonyUser su = new SymphonyUser(symphonyBotUser.getDisplayName(), symphonyBotUser.getEmailAddress());
return new InRoomAddressingChecker(su, true);
}
Aggregations