Interface MessageIdGenerator
- All Known Implementing Classes:
MessageIdGeneratorImpl
public interface MessageIdGenerator
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A unique id used which is a part of the header of all emails sent through by Gerrit. -
Method Summary
Modifier and TypeMethodDescriptionfromAccountUpdate
(Account.Id accountId) Create aMessageIdGenerator.MessageId
as a result of an account updatefromChangeUpdate
(Project.NameKey project, PatchSet.Id patchsetId) fromChangeUpdate
(RepoView repoView, PatchSet.Id patchsetId) Create aMessageIdGenerator.MessageId
as a result of a change update.fromChangeUpdateAndReason
(RepoView repoView, PatchSet.Id patchsetId, String reason) fromMailMessage
(com.google.gerrit.mail.MailMessage mailMessage) Create aMessageIdGenerator.MessageId
from a mail message.fromReasonAccountIdAndTimestamp
(String reason, Account.Id accountId, Instant timestamp) Create aMessageIdGenerator.MessageId
from a reason, Account.Id, and timestamp.
-
Method Details
-
fromChangeUpdate
Create aMessageIdGenerator.MessageId
as a result of a change update.- Returns:
- MessageId that depends on the patchset.
-
fromChangeUpdateAndReason
MessageIdGenerator.MessageId fromChangeUpdateAndReason(RepoView repoView, PatchSet.Id patchsetId, String reason) -
fromChangeUpdate
-
fromAccountUpdate
Create aMessageIdGenerator.MessageId
as a result of an account update- Returns:
MessageIdGenerator.MessageId
that depends on the account id.
-
fromMailMessage
Create aMessageIdGenerator.MessageId
from a mail message.- Parameters:
mailMessage
- The message that was sent but was rejected.- Returns:
- MessageId that depends on the MailMessage that was rejected.
-
fromReasonAccountIdAndTimestamp
MessageIdGenerator.MessageId fromReasonAccountIdAndTimestamp(String reason, Account.Id accountId, Instant timestamp) Create aMessageIdGenerator.MessageId
from a reason, Account.Id, and timestamp.- Parameters:
reason
- for performing this account update- Returns:
- MessageId that depends on the reason, accountId, and timestamp.
-