use of com.symphony.api.model.UserV2 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);
}
use of com.symphony.api.model.UserV2 in project spring-bot by finos.
the class KoreAIBridgeFactoryImpl method koreAIEventHandler.
public StreamEventConsumer koreAIEventHandler(KoreAIRequester requester, ApiInstance api, KoreAIInstanceProperties props) {
UsersApi usersApi = api.getPodApi(UsersApi.class);
UserV2 u = usersApi.v2UserGet(null, null, api.getIdentity().getEmail(), null, true);
long id = 0;
if (u != null) {
id = u.getId();
}
return new KoreAIEventHandler(api.getIdentity(), id, requester, om, props.isOnlyAddressed());
}
use of com.symphony.api.model.UserV2 in project spring-bot by finos.
the class PodApiIT method testUserLookup.
@ParameterizedTest
@MethodSource("setupConfigurations")
public void testUserLookup(TestClientStrategy client) throws Exception {
UsersApi uApi = client.getPodApi(UsersApi.class);
UserV2 u = uApi.v2UserGet(null, null, client.getIdentity().getEmail(), null, false);
System.out.println(u);
Assertions.assertTrue(u.getDisplayName().contains("Symphony Practice"));
}
Aggregations