Package com.google.gerrit.server.mail
Interface EmailFactories
- All Known Implementing Classes:
DefaultEmailFactories
public interface EmailFactories
Set of factories for default email notifications.
To send a change related email, first ChangeEmail.ChangeEmailDecorator
needs to be constructed and
configured. The decorator is then passed in createChangeEmail(NameKey, Change.Id, ChangeEmailDecorator)
and finally the result to createOutgoingEmail(String, EmailDecorator)
to be sent.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
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.
-
Field Details
-
CHANGE_ABANDONED
- See Also:
-
ATTENTION_SET_ADDED
- See Also:
-
ATTENTION_SET_REMOVED
- See Also:
-
COMMENTS_ADDED
- See Also:
-
REVIEWER_DELETED
- See Also:
-
VOTE_DELETED
- See Also:
-
CHANGE_MERGED
- See Also:
-
NEW_PATCHSET_ADDED
- See Also:
-
CHANGE_RESTORED
- See Also:
-
CHANGE_REVERTED
- See Also:
-
REVIEW_REQUESTED
- See Also:
-
KEY_ADDED
- See Also:
-
KEY_DELETED
- See Also:
-
PASSWORD_UPDATED
- See Also:
-
INBOUND_EMAIL_REJECTED
- See Also:
-
NEW_EMAIL_REGISTERED
- See Also:
-
-
Method Details
-
createAbandonedChangeEmail
ChangeEmail.ChangeEmailDecorator createAbandonedChangeEmail()ChangeEmail decorator that adds information about change being abandoned to the email. -
createAttentionSetChangeEmail
AttentionSetChangeEmailDecorator createAttentionSetChangeEmail()ChangeEmail decorator that adds information about attention set change to the email. -
createCommentChangeEmail
CommentChangeEmailDecorator 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. -
createDeleteReviewerChangeEmail
DeleteReviewerChangeEmailDecorator createDeleteReviewerChangeEmail()ChangeEmail decorator that adds information about deleted reviewer to the email. -
createDeleteVoteChangeEmail
ChangeEmail.ChangeEmailDecorator createDeleteVoteChangeEmail()ChangeEmail decorator that adds information about deleted vote to the email. -
createMergedChangeEmail
ChangeEmail decorator that adds information about change being merged to the email. -
createReplacePatchSetChangeEmail
ReplacePatchSetChangeEmailDecorator 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. -
createRestoredChangeEmail
ChangeEmail.ChangeEmailDecorator createRestoredChangeEmail()ChangeEmail decorator that adds information about change being restored to the email. -
createRevertedChangeEmail
ChangeEmail.ChangeEmailDecorator createRevertedChangeEmail()ChangeEmail decorator that adds information about change being reverted to the email. -
createStartReviewChangeEmail
StartReviewChangeEmailDecorator createStartReviewChangeEmail()ChangeEmail decorator that adds information when change is uploaded or first sent to review. -
createChangeEmail
ChangeEmail createChangeEmail(Project.NameKey project, Change.Id changeId, ChangeEmail.ChangeEmailDecorator changeEmailDecorator) Base email decorator for change-related emails. -
createAddKeyEmail
Email decorator for adding a key to the account. -
createAddKeyEmail
Email decorator for adding gpg keys to the account. -
createDeleteKeyEmail
Email decorator for adding a key to the account. -
createDeleteKeyEmail
Email decorator for adding gpg keys to the account. -
createHttpPasswordUpdateEmail
Email decorator for password modification operations. -
createInboundEmailRejectionEmail
OutgoingEmail.EmailDecorator createInboundEmailRejectionEmail(Address to, String threadId, InboundEmailRejectionEmailDecorator.InboundEmailError reason) Email decorator for inbound email errors. -
createRegisterNewEmail
Email decorator for the "new email address added" notification. -
createOutgoingEmail
Base class for any outgoing email.
-