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 Summary
Nested classes/interfaces inherited from interface com.google.gerrit.server.mail.send.MessageIdGenerator
MessageIdGenerator.MessageId
-
Constructor Summary
ConstructorsConstructorDescriptionMessageIdGeneratorImpl
(GitRepositoryManager repositoryManager, AllUsersName allUsersName) -
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.
-
Constructor Details
-
MessageIdGeneratorImpl
@Inject public MessageIdGeneratorImpl(GitRepositoryManager repositoryManager, AllUsersName allUsersName)
-
-
Method Details
-
fromChangeUpdate
Description copied from interface:MessageIdGenerator
Create aMessageIdGenerator.MessageId
as a result of a change update.- Specified by:
fromChangeUpdate
in interfaceMessageIdGenerator
- Returns:
- MessageId that depends on the patchset.
-
fromChangeUpdateAndReason
public MessageIdGenerator.MessageId fromChangeUpdateAndReason(RepoView repoView, PatchSet.Id patchsetId, String reason) - Specified by:
fromChangeUpdateAndReason
in interfaceMessageIdGenerator
-
fromChangeUpdate
public MessageIdGenerator.MessageId fromChangeUpdate(Project.NameKey project, PatchSet.Id patchsetId) - Specified by:
fromChangeUpdate
in interfaceMessageIdGenerator
-
fromAccountUpdate
Description copied from interface:MessageIdGenerator
Create aMessageIdGenerator.MessageId
as a result of an account update- Specified by:
fromAccountUpdate
in interfaceMessageIdGenerator
- Returns:
MessageIdGenerator.MessageId
that depends on the account id.
-
fromMailMessage
Description copied from interface:MessageIdGenerator
Create aMessageIdGenerator.MessageId
from a mail message.- Specified by:
fromMailMessage
in interfaceMessageIdGenerator
- Parameters:
mailMessage
- The message that was sent but was rejected.- Returns:
- MessageId that depends on the MailMessage that was rejected.
-
fromReasonAccountIdAndTimestamp
public MessageIdGenerator.MessageId fromReasonAccountIdAndTimestamp(String reason, Account.Id accountId, Instant timestamp) Description copied from interface:MessageIdGenerator
Create aMessageIdGenerator.MessageId
from a reason, Account.Id, and timestamp.- Specified by:
fromReasonAccountIdAndTimestamp
in interfaceMessageIdGenerator
- Parameters:
reason
- for performing this account update- Returns:
- MessageId that depends on the reason, accountId, and timestamp.
-