Skip to main content
string
The Spring bean identifier containing the service being called.messageServiceImpl
string
default:"PROTOTYPE"
Bean scope. Use PROTOTYPE for service calls.
string
The public service method name shown in the signature below.
object[]
The method argument array. Each argument is passed as an object with index 0, 1, and so on; the value must match the Java parameter type.

Headers

Send Lang-Context and Site-Context with every request. For protected methods, send the JWT in the Authorization header as Bearer <token>. Access: GUEST. Bearer Token: not required.
  • GUEST — unauthenticated users; only whitelist services are available.
  • USER — authentication is required; methods with USER checks are available.
  • ADMIN — full access to public methods of all services.
  • If a method checks a role internally, GUEST may receive null.

Methods

Deque<Map<String, Object>>

getPaginationChats

LinkedHashSet<ChatDTO>

searchAllChats

Page<Chat>

searchAllChatsPaged

SearchResponse

searchChats

Example JSON request object:
Request:
SearchResponse

searchMessages

Example JSON request object:
Request:
List<ChatDTO>

searchChats

Example JSON request object:
Request:
List<Map<String,Object>>

searchMessages

Optional<Chat>

createChatAndNotify

Optional<Chat>

createChat

Optional<Message>

createMessageAndNotify

Optional<Message>

createMessage

Example JSON request object:
Request:
Optional<Chat>

readChat

Optional<Message>

readMessage

Optional<Chat>

closeChat

Optional<Chat>

clearActiveUsers

List<Message>

getConversationByChatId

List<Profile>

getActiveContacts

Map<String,Object>

getConversationPartner

List<Map<String,Object>>

getMessagesTimeline

Message

getLastMessageInChat

boolean

isSentMessage

boolean

isReplyMessage

boolean

isAttachmentExist

void

removeChatAndClean

void

removeAttachmentFromMessage

void

removeMessagesFromChat

void

removeMessageFromChatById

void

removeMessageAndClean

boolean

isRightSidedMessageAdmin

boolean

isContainsUnreadMessages

boolean

isContainsInboxUnreadMessages

boolean

isContactOnline

boolean

isNotContactOnline

Map<String, String>

getUnreadMessagesCount

Map<String, String>

getUnreadMessagesCountForUser

Map<String, String>

getUnreadMessagesCountForLoggedUser

Map<String, Object>

getMessagesCountByChat

boolean

removeAttachmentFromMessageByLoggedUser

List<Attachment>

getChatDocumentUrls