Class EmailService
- java.lang.Object
-
- org.craftercms.social.services.system.EmailService
-
public class EmailService extends Object
Created by Carlos Ortiz on 10/28/14.
-
-
Constructor Summary
Constructors Constructor Description EmailService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
getEmailSettings(String contextId)
org.springframework.mail.javamail.JavaMailSender
getSender(String contextId)
void
sendEmail(org.craftercms.profile.api.Profile toSend, StringWriter writer, String subject, String contextId)
void
setContextPreferences(ContextPreferencesService contextPreferences)
void
setEmailConfigCache(com.google.common.cache.Cache<String,Object> emailConfigCache)
void
updateContextEmailCache(String contextId)
-
-
-
Method Detail
-
sendEmail
public void sendEmail(org.craftercms.profile.api.Profile toSend, StringWriter writer, String subject, String contextId) throws SocialException
- Throws:
SocialException
-
updateContextEmailCache
public void updateContextEmailCache(String contextId) throws SocialException
- Throws:
SocialException
-
getEmailSettings
protected Map<String,Object> getEmailSettings(String contextId) throws SocialException
- Throws:
SocialException
-
getSender
public org.springframework.mail.javamail.JavaMailSender getSender(String contextId) throws SocialException
- Throws:
SocialException
-
setEmailConfigCache
public void setEmailConfigCache(com.google.common.cache.Cache<String,Object> emailConfigCache)
-
setContextPreferences
public void setContextPreferences(ContextPreferencesService contextPreferences)
-
-