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
SymUser
getStream
in interface StreamsClient
symUser
- SymUser
Stream
StreamsException
- 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 StreamsClient
symUsers
- A set SymUser
Stream
StreamsException
- Generated by Symphony API exceptionspublic SymStream getStream(org.symphonyoss.symphony.pod.model.UserIdList userIdList) throws StreamsException
getStream
in interface StreamsClient
userIdList
- A arraylist of user IDsStream
StreamsException
- Generated by Symphony API exceptionspublic SymAdminStreamList getStreams(java.lang.Integer skip, java.lang.Integer limit, SymAdminStreamFilter symAdminStreamFilter) throws StreamsException
getStreams
in interface StreamsClient
skip
- Skip number of stream entrieslimit
- Limit number of resultsSymAdminStreamFilter
StreamsException
- 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 StreamsClient
skip
- Skip number of stream entrieslimit
- Limit number of resultsSymAdminStreamFilter
StreamsException
- 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 StreamsClient
email
- email addressStream
StreamsException
- 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 StreamsClient
roomId
- roomId, this is the same as a streamIDSymRoomDetail
StreamsException
- Generated by Symphony API exceptionspublic SymRoomDetail createChatRoom(SymRoomAttributes roomAttributes) throws StreamsException
createChatRoom
in interface StreamsClient
roomAttributes
- Room attributes that define a roomSymRoomDetail
StreamsException
- Generated by Symphony API exceptionspublic SymRoomDetail updateChatRoom(java.lang.String streamId, SymRoomAttributes roomAttributes) throws StreamsException
updateChatRoom
in interface StreamsClient
streamId
- Stream Id representing roomroomAttributes
- Room attributes to updateSymRoomDetail
StreamsException
- Exception from underlying API callpublic SymRoomSearchResults roomSearch(SymRoomSearchCriteria searchCriteria, java.lang.Integer skip, java.lang.Integer limit) throws StreamsException
roomSearch
in interface StreamsClient
searchCriteria
- 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 StreamsClient
streamId
- Stream IdStreamsException
- Thrown from underlying API callspublic void deactivateRoom(java.lang.String roomId) throws StreamsException
StreamsClient
deactivateRoom
in interface StreamsClient
roomId
- the room to be deactivatedStreamsException
- if the deactivation failed