Class MessageIdGeneratorImpl
java.lang.Object
com.google.gerrit.server.mail.send.MessageIdGeneratorImpl
- All Implemented Interfaces:
- MessageIdGenerator
A generator class that creates a 
MessageIdGenerator.MessageId- 
Nested Class SummaryNested classes/interfaces inherited from interface com.google.gerrit.server.mail.send.MessageIdGeneratorMessageIdGenerator.MessageId
- 
Constructor SummaryConstructorsConstructorDescriptionMessageIdGeneratorImpl(GitRepositoryManager repositoryManager, AllUsersName allUsersName) 
- 
Method SummaryModifier and TypeMethodDescriptionfromAccountUpdate(Account.Id accountId) Create aMessageIdGenerator.MessageIdas a result of an account updatefromChangeUpdate(Project.NameKey project, PatchSet.Id patchsetId) fromChangeUpdate(RepoView repoView, PatchSet.Id patchsetId) Create aMessageIdGenerator.MessageIdas a result of a change update.fromChangeUpdateAndReason(RepoView repoView, PatchSet.Id patchsetId, String reason) fromMailMessage(com.google.gerrit.mail.MailMessage mailMessage) Create aMessageIdGenerator.MessageIdfrom a mail message.fromReasonAccountIdAndTimestamp(String reason, Account.Id accountId, Instant timestamp) Create aMessageIdGenerator.MessageIdfrom a reason, Account.Id, and timestamp.
- 
Constructor Details- 
MessageIdGeneratorImpl@Inject public MessageIdGeneratorImpl(GitRepositoryManager repositoryManager, AllUsersName allUsersName) 
 
- 
- 
Method Details- 
fromChangeUpdateDescription copied from interface:MessageIdGeneratorCreate aMessageIdGenerator.MessageIdas a result of a change update.- Specified by:
- fromChangeUpdatein interface- MessageIdGenerator
- Returns:
- MessageId that depends on the patchset.
 
- 
fromChangeUpdateAndReasonpublic MessageIdGenerator.MessageId fromChangeUpdateAndReason(RepoView repoView, PatchSet.Id patchsetId, String reason) - Specified by:
- fromChangeUpdateAndReasonin interface- MessageIdGenerator
 
- 
fromChangeUpdatepublic MessageIdGenerator.MessageId fromChangeUpdate(Project.NameKey project, PatchSet.Id patchsetId) - Specified by:
- fromChangeUpdatein interface- MessageIdGenerator
 
- 
fromAccountUpdateDescription copied from interface:MessageIdGeneratorCreate aMessageIdGenerator.MessageIdas a result of an account update- Specified by:
- fromAccountUpdatein interface- MessageIdGenerator
- Returns:
- MessageIdGenerator.MessageIdthat depends on the account id.
 
- 
fromMailMessageDescription copied from interface:MessageIdGeneratorCreate aMessageIdGenerator.MessageIdfrom a mail message.- Specified by:
- fromMailMessagein interface- MessageIdGenerator
- Parameters:
- mailMessage- The message that was sent but was rejected.
- Returns:
- MessageId that depends on the MailMessage that was rejected.
 
- 
fromReasonAccountIdAndTimestamppublic MessageIdGenerator.MessageId fromReasonAccountIdAndTimestamp(String reason, Account.Id accountId, Instant timestamp) Description copied from interface:MessageIdGeneratorCreate aMessageIdGenerator.MessageIdfrom a reason, Account.Id, and timestamp.- Specified by:
- fromReasonAccountIdAndTimestampin interface- MessageIdGenerator
- Parameters:
- reason- for performing this account update
- Returns:
- MessageId that depends on the reason, accountId, and timestamp.
 
 
-