public interface CommentEmailBuilder
CommentEmailBuilder
builds Email
s based on the given ResourceResolver
s,
SocialActivity
and recipient user id. As well builder uses EmailContent
of the unsuccessful reply
emails to build failure notification email. The builder is OSGi service that is looked up as service references
while sending an email for an occurring notification.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TRACKER_ID_PROPERTY
Property unique tracker id of comment resource to which comment parsed from email is to be added.
|
Modifier and Type | Method and Description |
---|---|
Email |
build(java.lang.String emailConfigurationName,
ResourceResolver ugcWriterResourceResolver,
ResourceResolver userReaderResourceResolver,
ResourceResolver utilityReaderResourceResolver,
java.util.Map<java.lang.String,java.lang.Object> templateValues,
java.lang.String emailTemplateResourceRootPath,
java.lang.String recipient)
Builds an email message from the given resource resolvers, social activity, recipient user id and reply-to
email address.
|
Email |
build(java.lang.String emailConfigurationName,
ResourceResolver ugcWriterResourceResolver,
ResourceResolver userReaderResourceResolver,
ResourceResolver utilityReaderResourceResolver,
SocialActivity socialActivity,
java.lang.String recipientUserId)
Builds an email message from the given resource resolvers, social activity, recipient user id and reply-to
email address.
|
Email |
buildFailure(java.lang.String emailConfigurationName,
ResourceResolver userReaderResourceResolver,
ResourceResolver utilityReaderResourceResolver,
EmailContent replyEmailContent)
Builds an email failure message from the given resource resolvers and reply email content.
|
static final java.lang.String TRACKER_ID_PROPERTY
Email build(java.lang.String emailConfigurationName, ResourceResolver ugcWriterResourceResolver, ResourceResolver userReaderResourceResolver, ResourceResolver utilityReaderResourceResolver, SocialActivity socialActivity, java.lang.String recipientUserId)
emailConfigurationName
- name of EmailReplyConfiguration
to build emailugcWriterResourceResolver
- the resource resolver used to obtain the resource in the JCRuserReaderResourceResolver
- the resource resolver used to obtain access to the users directoryutilityReaderResourceResolver
- the resource resolver used to obtain access to the email templates
directorysocialActivity
- social activity based on any subscribable comment eventrecipientUserId
- recipient user idEmail buildFailure(java.lang.String emailConfigurationName, ResourceResolver userReaderResourceResolver, ResourceResolver utilityReaderResourceResolver, EmailContent replyEmailContent)
emailConfigurationName
- name of EmailReplyConfiguration
to build emailuserReaderResourceResolver
- the resource resolver used to obtain access to the users directoryutilityReaderResourceResolver
- the resource resolver used to obtain access to the email templates
directoryreplyEmailContent
- the content of the unsuccessful reply emailEmail build(java.lang.String emailConfigurationName, ResourceResolver ugcWriterResourceResolver, ResourceResolver userReaderResourceResolver, ResourceResolver utilityReaderResourceResolver, java.util.Map<java.lang.String,java.lang.Object> templateValues, java.lang.String emailTemplateResourceRootPath, java.lang.String recipient)
emailConfigurationName
- name of EmailReplyConfiguration
to build emailugcWriterResourceResolver
- the resource resolver used to obtain the resource in the JCRuserReaderResourceResolver
- the resource resolver used to obtain access to the users directoryutilityReaderResourceResolver
- the resource resolver used to obtain access to the email templates
directorytemplateValues
- the email template valuesemailTemplateResourceRootPath
- the email template Resourcerecipient
- the recipient user id"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"