Search in sources :

Example 1 with InRoomAddressingChecker

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);
}
Also used : UserV2(com.symphony.api.model.UserV2) InRoomAddressingChecker(org.finos.symphony.toolkit.workflow.actions.consumers.InRoomAddressingChecker) SymphonyUser(org.finos.symphony.toolkit.workflow.sources.symphony.content.SymphonyUser) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

UserV2 (com.symphony.api.model.UserV2)1 InRoomAddressingChecker (org.finos.symphony.toolkit.workflow.actions.consumers.InRoomAddressingChecker)1 SymphonyUser (org.finos.symphony.toolkit.workflow.sources.symphony.content.SymphonyUser)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 Bean (org.springframework.context.annotation.Bean)1