public class StreamsClientImpl extends java.lang.Object implements StreamsClient
| Constructor and Description |
|---|
StreamsClientImpl(SymAuth symAuth,
SymphonyClientConfig config)
Initialize the StreamsClient
|
StreamsClientImpl(SymAuth symAuth,
SymphonyClientConfig config,
javax.ws.rs.client.Client httpClient)
If you need to override HttpClient.
|
| Modifier and Type | Method and Description |
|---|---|
SymRoomDetail |
createChatRoom(SymRoomAttributes roomAttributes)
Create or retrieve existing chat room
|
void |
deactivateRoom(java.lang.String roomId)
Deactivates a room for a given roomId
|
SymRoomDetail |
getRoomDetail(java.lang.String roomId)
Get stream by set of
SymUser. |
SymStream |
getStream(java.util.Set<SymUser> symUsers)
Get stream by set of
SymUser. |
SymStream |
getStream(SymUser symUser)
Get stream by
SymUser |
SymStream |
getStream(org.symphonyoss.symphony.pod.model.UserIdList userIdList)
Get stream by list of user IDs.
|
SymStreamAttributes |
getStreamAttributes(java.lang.String streamId)
Retrieve stream attributes, which provide communication types like ROOM, IM
|
SymStream |
getStreamFromEmail(java.lang.String email)
Get stream by set of
SymUser. |
SymAdminStreamList |
getStreams(java.lang.Integer skip,
java.lang.Integer limit,
SymAdminStreamFilter symAdminStreamFilter)
Retrieve all known streams based on filter as an Admin user
|
java.util.List<SymStreamAttributes> |
getStreams(java.lang.Integer skip,
java.lang.Integer limit,
SymStreamFilter symStreamFilter)
Retrieve all known streams based on filter.
|
SymRoomSearchResults |
roomSearch(SymRoomSearchCriteria searchCriteria,
java.lang.Integer skip,
java.lang.Integer limit)
Search for rooms using search criteria.
|
SymRoomDetail |
updateChatRoom(java.lang.String streamId,
SymRoomAttributes roomAttributes)
Update chat room attributes
|
public StreamsClientImpl(SymAuth symAuth, SymphonyClientConfig config)
symAuth - Authorization model containing session and key tokensconfig - SymphonyClientConfigpublic StreamsClientImpl(SymAuth symAuth, SymphonyClientConfig config, javax.ws.rs.client.Client httpClient)
symAuth - Authorization model containing session and key tokensconfig - SymphonyClientConfighttpClient - Custom HTTP Client to usepublic SymStream getStream(SymUser symUser) throws StreamsException
SymUsergetStream in interface StreamsClientsymUser - SymUserStreamStreamsException - Generated by Symphony API exceptionspublic SymStream getStream(java.util.Set<SymUser> symUsers) throws StreamsException
SymUser. This represents a stream related to multi-party conversation.getStream in interface StreamsClientsymUsers - A set SymUserStreamStreamsException - Generated by Symphony API exceptionspublic SymStream getStream(org.symphonyoss.symphony.pod.model.UserIdList userIdList) throws StreamsException
getStream in interface StreamsClientuserIdList - A arraylist of user IDsStreamStreamsException - Generated by Symphony API exceptionspublic SymAdminStreamList getStreams(java.lang.Integer skip, java.lang.Integer limit, SymAdminStreamFilter symAdminStreamFilter) throws StreamsException
getStreams in interface StreamsClientskip - Skip number of stream entrieslimit - Limit number of resultsSymAdminStreamFilterStreamsException - Generated by Symphony API exceptionspublic java.util.List<SymStreamAttributes> getStreams(java.lang.Integer skip, java.lang.Integer limit, SymStreamFilter symStreamFilter) throws StreamsException
getStreams in interface StreamsClientskip - Skip number of stream entrieslimit - Limit number of resultsSymAdminStreamFilterStreamsException - Generated by Symphony API exceptionspublic SymStream getStreamFromEmail(java.lang.String email) throws StreamsException
SymUser. This represents a stream related to multi-party conversation.getStreamFromEmail in interface StreamsClientemail - email addressStreamStreamsException - Generated by Symphony API exceptionspublic SymRoomDetail getRoomDetail(java.lang.String roomId) throws StreamsException
SymUser. This represents a stream related to multi-party conversation.getRoomDetail in interface StreamsClientroomId - roomId, this is the same as a streamIDSymRoomDetailStreamsException - Generated by Symphony API exceptionspublic SymRoomDetail createChatRoom(SymRoomAttributes roomAttributes) throws StreamsException
createChatRoom in interface StreamsClientroomAttributes - Room attributes that define a roomSymRoomDetailStreamsException - Generated by Symphony API exceptionspublic SymRoomDetail updateChatRoom(java.lang.String streamId, SymRoomAttributes roomAttributes) throws StreamsException
updateChatRoom in interface StreamsClientstreamId - Stream Id representing roomroomAttributes - Room attributes to updateSymRoomDetailStreamsException - Exception from underlying API callpublic SymRoomSearchResults roomSearch(SymRoomSearchCriteria searchCriteria, java.lang.Integer skip, java.lang.Integer limit) throws StreamsException
roomSearch in interface StreamsClientsearchCriteria - Search criteriaskip - Skip number of resultslimit - Limit number of resultsSymRoomSearchResults Room search resultsStreamsException - Exception from underlying API callpublic SymStreamAttributes getStreamAttributes(java.lang.String streamId) throws StreamsException
getStreamAttributes in interface StreamsClientstreamId - Stream IdStreamsException - Thrown from underlying API callspublic void deactivateRoom(java.lang.String roomId)
throws StreamsException
StreamsClientdeactivateRoom in interface StreamsClientroomId - the room to be deactivatedStreamsException - if the deactivation failed