Package com.symphony.api.model
Class V2ImportedMessage
- java.lang.Object
-
- com.symphony.api.model.V2ImportedMessage
-
public class V2ImportedMessage extends Object
A historic message to be imported into the system. The importing user must have the Content Management role. Also, the importing user must be a member of the conversation it is importing into. The user that the message is intended to have come from must also be present in the conversation. The intended message timestamp must be a valid time from the past. It cannot be a future timestamp. By design, imported messages do not stream to datafeed or firehose endpoints.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
V2ImportedMessage.FormatEnum
-
Constructor Summary
Constructors Constructor Description V2ImportedMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V2ImportedMessage
format(V2ImportedMessage.FormatEnum format)
String
getFormat()
Get formatLong
getIntendedMessageFromUserId()
The long integer userid of the Symphony user who you intend to show sent the message.Long
getIntendedMessageTimestamp()
The timestamp representing the time when the message was sent in the original system in milliseconds since Jan 1st 1970.String
getMessage()
Message text in MessageMLString
getOriginalMessageId()
The ID of the message in the original system.String
getOriginatingSystemId()
The ID of the system through which the message was originally sent.String
getStreamId()
Get streamIdV2ImportedMessage
intendedMessageFromUserId(Long intendedMessageFromUserId)
V2ImportedMessage
intendedMessageTimestamp(Long intendedMessageTimestamp)
V2ImportedMessage
message(String message)
V2ImportedMessage
originalMessageId(String originalMessageId)
V2ImportedMessage
originatingSystemId(String originatingSystemId)
void
setFormat(V2ImportedMessage.FormatEnum format)
void
setIntendedMessageFromUserId(Long intendedMessageFromUserId)
void
setIntendedMessageTimestamp(Long intendedMessageTimestamp)
void
setMessage(String message)
void
setOriginalMessageId(String originalMessageId)
void
setOriginatingSystemId(String originatingSystemId)
void
setStreamId(String streamId)
V2ImportedMessage
streamId(String streamId)
String
toString()
-
-
-
Method Detail
-
getMessage
public String getMessage()
Message text in MessageML- Returns:
- message
-
setMessage
public void setMessage(String message)
-
message
public V2ImportedMessage message(String message)
-
getFormat
public String getFormat()
Get format- Returns:
- format
-
setFormat
public void setFormat(V2ImportedMessage.FormatEnum format)
-
format
public V2ImportedMessage format(V2ImportedMessage.FormatEnum format)
-
getIntendedMessageTimestamp
public Long getIntendedMessageTimestamp()
The timestamp representing the time when the message was sent in the original system in milliseconds since Jan 1st 1970.- Returns:
- intendedMessageTimestamp
-
setIntendedMessageTimestamp
public void setIntendedMessageTimestamp(Long intendedMessageTimestamp)
-
intendedMessageTimestamp
public V2ImportedMessage intendedMessageTimestamp(Long intendedMessageTimestamp)
-
getIntendedMessageFromUserId
public Long getIntendedMessageFromUserId()
The long integer userid of the Symphony user who you intend to show sent the message.- Returns:
- intendedMessageFromUserId
-
setIntendedMessageFromUserId
public void setIntendedMessageFromUserId(Long intendedMessageFromUserId)
-
intendedMessageFromUserId
public V2ImportedMessage intendedMessageFromUserId(Long intendedMessageFromUserId)
-
getOriginatingSystemId
public String getOriginatingSystemId()
The ID of the system through which the message was originally sent.- Returns:
- originatingSystemId
-
setOriginatingSystemId
public void setOriginatingSystemId(String originatingSystemId)
-
originatingSystemId
public V2ImportedMessage originatingSystemId(String originatingSystemId)
-
getOriginalMessageId
public String getOriginalMessageId()
The ID of the message in the original system.- Returns:
- originalMessageId
-
setOriginalMessageId
public void setOriginalMessageId(String originalMessageId)
-
originalMessageId
public V2ImportedMessage originalMessageId(String originalMessageId)
-
getStreamId
public String getStreamId()
Get streamId- Returns:
- streamId
-
setStreamId
public void setStreamId(String streamId)
-
streamId
public V2ImportedMessage streamId(String streamId)
-
-