public class LegacyIdFactory
extends java.lang.Object
| Constructor | Description |
|---|---|
LegacyIdFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
Hash |
deleteEventId(long requesterId,
byte[] deleteMessageId,
byte[] messageId) |
Create a 2.0 Hash (ID) for a DeleteEvent.
|
Hash |
deliveryReceiptId(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(long downloadedByUserId,
byte[] messageId) |
Create a 2.0 Hash (ID) for a DownloadAttachmentEvent.
|
Hash |
likeEventId(long liker,
byte[] likedMessageId,
byte[] messageId) |
Create a 2.0 Hash (ID) for a LikeEvent.
|
Hash |
maestroId(java.lang.String typeName,
java.lang.Integer fromPod,
byte[] messageId,
byte[] threadId) |
Create a 2.0 Hash (ID) for a MaestroMessage.
|
Hash |
messageId(byte[] messageId) |
Create a 2.0 Hash (ID) for the given messageId.
|
Hash |
offlineNoticeId(long toUserId,
byte[] messageId) |
Create a 2.0 Hash (ID) for an offline notification event.
|
Hash |
readReceiptId(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(byte[] threadId) |
Create a 2.0 Hash (ID) for the given threadId.
|
public Hash messageId(byte[] messageId)
messageId - A messageIdjava.lang.NullPointerException - if any parameter is null.public Hash threadId(byte[] threadId)
threadId - A threadIdjava.lang.NullPointerException - if any parameter is null.public Hash readReceiptId(long userId, byte[] messageId, byte[] threadId)
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.java.lang.NullPointerException - if any parameter is null.public Hash deliveryReceiptId(long userId, byte[] messageId, byte[] threadId)
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.java.lang.NullPointerException - if any parameter is null.public Hash maestroId(java.lang.String typeName, java.lang.Integer fromPod, byte[] messageId, @Nullable byte[] threadId)
typeName - The type of the MaestroPayload.fromPod - The originating pod id.messageId - The message ID.threadId - The thread ID.java.lang.NullPointerException - if any parameter is null.public Hash offlineNoticeId(long toUserId, byte[] messageId)
toUserId - The id of the offline user.messageId - The message ID.java.lang.NullPointerException - if any parameter is null.public Hash deleteEventId(long requesterId, byte[] deleteMessageId, byte[] messageId)
requesterId - The id of the requesting user.deleteMessageId - The message ID of the deleted message.messageId - The message ID of the event.java.lang.NullPointerException - if any parameter is null.public Hash downloadAttachmentEventId(long downloadedByUserId, byte[] messageId)
downloadedByUserId - The user ID of the user downloading the attachment.messageId - The message ID of the attachment.java.lang.NullPointerException - if any parameter is null.public Hash likeEventId(long liker, byte[] likedMessageId, byte[] messageId)
liker - The user ID of the user sending the like.likedMessageId - The message ID of liked message.messageId - The message ID of the event.java.lang.NullPointerException - if any parameter is null.Copyright © 2018 Symphony Software Foundation. All rights reserved.