public class LegacyIdFactory extends Object
| Constructor and Description |
|---|
LegacyIdFactory() |
| Modifier and Type | Method and Description |
|---|---|
Hash |
deleteEventId(String tenantId,
long requesterId,
byte[] deleteMessageId)
Create a 2.0 Hash (ID) for a DeleteEvent.
|
Hash |
deliveryReceiptId(String tenantId,
long userId,
byte[] messageId,
byte[] threadId)
Create a 2.0 Hash (ID) for the delivery receipt of the given messageId for the given userId.
|
Hash |
downloadAttachmentEventId(String tenantId,
long downloadedByUserId,
byte[] messageId,
String fileId)
Create a 2.0 Hash (ID) for a DownloadAttachmentEvent.
|
Hash |
likeEventId(String tenantId,
long liker,
byte[] likedMessageId)
Create a 2.0 Hash (ID) for a LikeEvent.
|
Hash |
maestroId(String tenantId,
byte[] messageId,
byte[] threadId)
Create a 2.0 Hash (ID) for a MaestroMessage.
|
Hash |
messageId(String tenantId,
byte[] messageId)
Create a 2.0 Hash (ID) for the given messageId.
|
Hash |
offlineNoticeId(String tenantId,
long toUserId,
byte[] messageId)
Create a 2.0 Hash (ID) for an offline notification event.
|
Hash |
readReceiptId(String tenantId,
long userId,
byte[] messageId,
byte[] threadId)
Create a 2.0 Hash (ID) for the read receipt of the given messageId for the given userId.
|
Hash |
threadId(String tenantId,
byte[] threadId)
Create a 2.0 Hash (ID) for the given threadId.
|
Hash |
userId(long userId)
Create a 2.0 Hash (ID) for the given userId.
|
public Hash userId(long userId)
userId - An external userIdpublic Hash messageId(String tenantId, byte[] messageId)
tenantId - The tenant ID of the pod where this event originated.messageId - A messageIdNullPointerException - if any parameter is null.public Hash threadId(String tenantId, byte[] threadId)
tenantId - The tenant ID of the pod where this event originated.threadId - A threadIdNullPointerException - if any parameter is null.public Hash readReceiptId(String tenantId, long userId, byte[] messageId, byte[] threadId)
tenantId - The tenant ID of the pod where this event originated.userId - The external (globally unique) user ID or the user who read the message.messageId - The id of the message read.threadId - The threadId of the message read.NullPointerException - if any parameter is null.public Hash deliveryReceiptId(String tenantId, long userId, byte[] messageId, byte[] threadId)
tenantId - The tenant ID of the pod where this event originated.userId - The external (globally unique) user ID or the user who read the message.messageId - The id of the message read.threadId - The threadId of the message read.NullPointerException - if any parameter is null.public Hash maestroId(String tenantId, byte[] messageId, @Nullable byte[] threadId)
tenantId - The tenant ID of the pod where this event originated.messageId - The message ID.threadId - The thread ID.NullPointerException - if any parameter is null.public Hash offlineNoticeId(String tenantId, long toUserId, byte[] messageId)
tenantId - The tenant ID of the pod where this event originated.
This event means that a user was offline when a message was delivered and an email
was sent to them.toUserId - The id of the offline user.messageId - The message ID.NullPointerException - if any parameter is null.public Hash deleteEventId(String tenantId, long requesterId, byte[] deleteMessageId)
tenantId - The tenant ID of the pod where this event originated.requesterId - The id of the requesting user.deleteMessageId - The message ID of the deleted message.NullPointerException - if any parameter is null.public Hash downloadAttachmentEventId(String tenantId, long downloadedByUserId, byte[] messageId, String fileId)
tenantId - The tenant ID of the pod where this event originated.downloadedByUserId - The user ID of the user downloading the attachment.messageId - The message ID of the attachment.fileId - The file ID of the attachment.NullPointerException - if any parameter is null.public Hash likeEventId(String tenantId, long liker, byte[] likedMessageId)
tenantId - The tenant ID of the pod where this event originated.liker - The user ID of the user sending the like.likedMessageId - The message ID of liked message.NullPointerException - if any parameter is null.Copyright © 2018 Symphony Software Foundation. All rights reserved.