public class SymphonyConversationsImpl extends Object implements SymphonyConversations, org.springframework.beans.factory.InitializingBean
ROOM_DESCRIPTION, ROOM_PUBLIC| Constructor and Description |
|---|
SymphonyConversationsImpl(com.symphony.bdk.core.service.stream.StreamService streamsApi,
com.symphony.bdk.core.service.user.UserService userService,
com.symphony.bdk.core.service.session.SessionService sessionService,
boolean localPodLookup) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsimpleMetapublic SymphonyConversationsImpl(com.symphony.bdk.core.service.stream.StreamService streamsApi,
com.symphony.bdk.core.service.user.UserService userService,
com.symphony.bdk.core.service.session.SessionService sessionService,
boolean localPodLookup)
public Set<Addressable> getAllAddressables()
getAllAddressables in interface Conversations<SymphonyRoom,SymphonyUser>public Set<SymphonyRoom> getAllChats()
getAllChats in interface Conversations<SymphonyRoom,SymphonyUser>protected Set<Addressable> getAllConversationsFiltered(com.symphony.bdk.gen.api.model.StreamFilter f)
protected Addressable convertToAddressable(com.symphony.bdk.gen.api.model.StreamAttributes si)
protected SymphonyUser loadUserByStreamAttributes(com.symphony.bdk.gen.api.model.StreamAttributes si)
protected SymphonyRoom loadRoomByStreamAttributes(com.symphony.bdk.gen.api.model.StreamAttributes si)
public SymphonyUser loadUserById(Long userId)
loadUserById in interface SymphonyConversationspublic String getStreamFor(SymphonyAddressable a)
getStreamFor in interface StreamResolverprotected String getStreamIdForUser(SymphonyUser a)
public SymphonyUser loadUserByUsername(String username)
loadUserByUsername in interface SymphonyConversationspublic SymphonyUser loadUserByEmail(String name)
loadUserByEmail in interface SymphonyConversationspublic SymphonyRoom loadRoomById(String streamId)
loadRoomById in interface SymphonyConversationspublic SymphonyRoom loadRoomByName(String name)
loadRoomByName in interface SymphonyConversationspublic SymphonyRoom ensureChat(SymphonyRoom r, List<SymphonyUser> users, Map<String,Object> meta)
ensureChat in interface Conversations<SymphonyRoom,SymphonyUser>public List<SymphonyUser> getChatMembers(SymphonyRoom r)
getChatMembers in interface Conversations<SymphonyRoom,SymphonyUser>public List<SymphonyUser> getChatAdmins(SymphonyRoom r)
getChatAdmins in interface Conversations<SymphonyRoom,SymphonyUser>protected List<SymphonyUser> getUsersInternal(SymphonyRoom r, Predicate<com.symphony.bdk.gen.api.model.MemberInfo> filter)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic SymphonyRoom getExistingChat(String name)
getExistingChat in interface Conversations<SymphonyRoom,SymphonyUser>public boolean isSupported(Chat r)
isSupported in interface PlatformConversations<SymphonyRoom,SymphonyUser>public boolean isSupported(User u)
isSupported in interface PlatformConversations<SymphonyRoom,SymphonyUser>public boolean isThisBot(User u)
isThisBot in interface Conversations<SymphonyRoom,SymphonyUser>Copyright © 2022 Finos. All rights reserved.