@CTAware
public class MailServiceImpl
extends Object
implements com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.mail.kernel.service.MailService
Constructor and Description |
---|
MailServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clearSession() |
void |
clearSession(long companyId) |
String |
getOSGiServiceIdentifier() |
javax.mail.Session |
getSession() |
javax.mail.Session |
getSession(com.liferay.mail.kernel.model.Account account) |
javax.mail.Session |
getSession(long companyId) |
void |
sendEmail(com.liferay.mail.kernel.model.MailMessage mailMessage) |
@Clusterable public void clearSession()
clearSession
in interface com.liferay.mail.kernel.service.MailService
@Clusterable public void clearSession(long companyId)
clearSession
in interface com.liferay.mail.kernel.service.MailService
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
public javax.mail.Session getSession()
getSession
in interface com.liferay.mail.kernel.service.MailService
public javax.mail.Session getSession(com.liferay.mail.kernel.model.Account account)
getSession
in interface com.liferay.mail.kernel.service.MailService
public javax.mail.Session getSession(long companyId)
getSession
in interface com.liferay.mail.kernel.service.MailService
public void sendEmail(com.liferay.mail.kernel.model.MailMessage mailMessage)
sendEmail
in interface com.liferay.mail.kernel.service.MailService