public class LegacyIdFactory extends Object
| Constructor and Description |
|---|
LegacyIdFactory() |
| Modifier and Type | Method and 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(String typeName,
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 messageIdNullPointerException - if any parameter is null.public Hash threadId(byte[] threadId)
threadId - A threadIdNullPointerException - 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.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.NullPointerException - if any parameter is null.public Hash maestroId(String typeName, 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.NullPointerException - if any parameter is null.public Hash offlineNoticeId(long toUserId, byte[] messageId)
toUserId - The id of the offline user.messageId - The message ID.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.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.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.NullPointerException - if any parameter is null.Copyright © 2017 Symphony Software Foundation. All rights reserved.