Class DefaultEmailFactories
java.lang.Object
com.google.gerrit.server.mail.send.DefaultEmailFactories
- All Implemented Interfaces:
EmailFactories
Default versions of Gerrit email notifications.
-
Field Summary
Fields inherited from interface com.google.gerrit.server.mail.EmailFactories
ATTENTION_SET_ADDED, ATTENTION_SET_REMOVED, CHANGE_ABANDONED, CHANGE_MERGED, CHANGE_RESTORED, CHANGE_REVERTED, COMMENTS_ADDED, INBOUND_EMAIL_REJECTED, KEY_ADDED, KEY_DELETED, NEW_EMAIL_REGISTERED, NEW_PATCHSET_ADDED, PASSWORD_UPDATED, REVIEW_REQUESTED, REVIEWER_DELETED, VOTE_DELETED
-
Method Summary
Modifier and TypeMethodDescriptionChangeEmail decorator that adds information about change being abandoned to the email.createAddKeyEmail
(IdentifiedUser user, AccountSshKey sshKey) Email decorator for adding a key to the account.createAddKeyEmail
(IdentifiedUser user, List<String> gpgKeys) Email decorator for adding gpg keys to the account.ChangeEmail decorator that adds information about attention set change to the email.createChangeEmail
(Project.NameKey project, Change.Id changeId, ChangeEmail.ChangeEmailDecorator changeEmailDecorator) Base email decorator for change-related emails.createCommentChangeEmail
(Project.NameKey project, Change.Id changeId, org.eclipse.jgit.lib.ObjectId preUpdateMetaId, Map<SubmitRequirement, SubmitRequirementResult> postUpdateSubmitRequirementResults) ChangeEmail decorator that adds information about an iteration of review to the email.createDeleteKeyEmail
(IdentifiedUser user, AccountSshKey sshKey) Email decorator for adding a key to the account.createDeleteKeyEmail
(IdentifiedUser user, List<String> gpgKeys) Email decorator for adding gpg keys to the account.ChangeEmail decorator that adds information about deleted reviewer to the email.ChangeEmail decorator that adds information about deleted vote to the email.createHttpPasswordUpdateEmail
(IdentifiedUser user, String operation) Email decorator for password modification operations.createInboundEmailRejectionEmail
(Address to, String threadId, InboundEmailRejectionEmailDecorator.InboundEmailError reason) Email decorator for inbound email errors.createMergedChangeEmail
(Optional<String> stickyApprovalDiff) ChangeEmail decorator that adds information about change being merged to the email.createOutgoingEmail
(String messageClass, OutgoingEmail.EmailDecorator emailDecorator) Base class for any outgoing email.createRegisterNewEmail
(String address) Email decorator for the "new email address added" notification.createReplacePatchSetChangeEmail
(Project.NameKey project, Change.Id changeId, ChangeKind changeKind, org.eclipse.jgit.lib.ObjectId preUpdateMetaId, Map<SubmitRequirement, SubmitRequirementResult> postUpdateSubmitRequirementResults) ChangeEmail decorator that adds information about a new patchset added to the change.ChangeEmail decorator that adds information about change being restored to the email.ChangeEmail decorator that adds information about change being reverted to the email.ChangeEmail decorator that adds information when change is uploaded or first sent to review.
-
Method Details
-
createAbandonedChangeEmail
Description copied from interface:EmailFactories
ChangeEmail decorator that adds information about change being abandoned to the email.- Specified by:
createAbandonedChangeEmail
in interfaceEmailFactories
-
createAttentionSetChangeEmail
Description copied from interface:EmailFactories
ChangeEmail decorator that adds information about attention set change to the email.- Specified by:
createAttentionSetChangeEmail
in interfaceEmailFactories
-
createCommentChangeEmail
public CommentChangeEmailDecorator createCommentChangeEmail(Project.NameKey project, Change.Id changeId, org.eclipse.jgit.lib.ObjectId preUpdateMetaId, Map<SubmitRequirement, SubmitRequirementResult> postUpdateSubmitRequirementResults) Description copied from interface:EmailFactories
ChangeEmail decorator that adds information about an iteration of review to the email.- Specified by:
createCommentChangeEmail
in interfaceEmailFactories
-
createDeleteReviewerChangeEmail
Description copied from interface:EmailFactories
ChangeEmail decorator that adds information about deleted reviewer to the email.- Specified by:
createDeleteReviewerChangeEmail
in interfaceEmailFactories
-
createDeleteVoteChangeEmail
Description copied from interface:EmailFactories
ChangeEmail decorator that adds information about deleted vote to the email.- Specified by:
createDeleteVoteChangeEmail
in interfaceEmailFactories
-
createMergedChangeEmail
public ChangeEmail.ChangeEmailDecorator createMergedChangeEmail(Optional<String> stickyApprovalDiff) Description copied from interface:EmailFactories
ChangeEmail decorator that adds information about change being merged to the email.- Specified by:
createMergedChangeEmail
in interfaceEmailFactories
-
createReplacePatchSetChangeEmail
public ReplacePatchSetChangeEmailDecorator createReplacePatchSetChangeEmail(Project.NameKey project, Change.Id changeId, ChangeKind changeKind, org.eclipse.jgit.lib.ObjectId preUpdateMetaId, Map<SubmitRequirement, SubmitRequirementResult> postUpdateSubmitRequirementResults) Description copied from interface:EmailFactories
ChangeEmail decorator that adds information about a new patchset added to the change.- Specified by:
createReplacePatchSetChangeEmail
in interfaceEmailFactories
-
createRestoredChangeEmail
Description copied from interface:EmailFactories
ChangeEmail decorator that adds information about change being restored to the email.- Specified by:
createRestoredChangeEmail
in interfaceEmailFactories
-
createRevertedChangeEmail
Description copied from interface:EmailFactories
ChangeEmail decorator that adds information about change being reverted to the email.- Specified by:
createRevertedChangeEmail
in interfaceEmailFactories
-
createStartReviewChangeEmail
Description copied from interface:EmailFactories
ChangeEmail decorator that adds information when change is uploaded or first sent to review.- Specified by:
createStartReviewChangeEmail
in interfaceEmailFactories
-
createChangeEmail
public ChangeEmail createChangeEmail(Project.NameKey project, Change.Id changeId, ChangeEmail.ChangeEmailDecorator changeEmailDecorator) Description copied from interface:EmailFactories
Base email decorator for change-related emails.- Specified by:
createChangeEmail
in interfaceEmailFactories
-
createAddKeyEmail
Description copied from interface:EmailFactories
Email decorator for adding a key to the account.- Specified by:
createAddKeyEmail
in interfaceEmailFactories
-
createAddKeyEmail
Description copied from interface:EmailFactories
Email decorator for adding gpg keys to the account.- Specified by:
createAddKeyEmail
in interfaceEmailFactories
-
createDeleteKeyEmail
Description copied from interface:EmailFactories
Email decorator for adding a key to the account.- Specified by:
createDeleteKeyEmail
in interfaceEmailFactories
-
createDeleteKeyEmail
Description copied from interface:EmailFactories
Email decorator for adding gpg keys to the account.- Specified by:
createDeleteKeyEmail
in interfaceEmailFactories
-
createHttpPasswordUpdateEmail
public OutgoingEmail.EmailDecorator createHttpPasswordUpdateEmail(IdentifiedUser user, String operation) Description copied from interface:EmailFactories
Email decorator for password modification operations.- Specified by:
createHttpPasswordUpdateEmail
in interfaceEmailFactories
-
createInboundEmailRejectionEmail
public OutgoingEmail.EmailDecorator createInboundEmailRejectionEmail(Address to, String threadId, InboundEmailRejectionEmailDecorator.InboundEmailError reason) Description copied from interface:EmailFactories
Email decorator for inbound email errors.- Specified by:
createInboundEmailRejectionEmail
in interfaceEmailFactories
-
createRegisterNewEmail
Description copied from interface:EmailFactories
Email decorator for the "new email address added" notification.- Specified by:
createRegisterNewEmail
in interfaceEmailFactories
-
createOutgoingEmail
public OutgoingEmail createOutgoingEmail(String messageClass, OutgoingEmail.EmailDecorator emailDecorator) Description copied from interface:EmailFactories
Base class for any outgoing email.- Specified by:
createOutgoingEmail
in interfaceEmailFactories
-