@Service public class MailOperationsImpl extends Object implements MailOperations
MailOperationsImpl.FEATURE_NAME| Constructor and Description |
|---|
MailOperationsImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext cContext) |
List<String> |
getAllServiceImpl(String currentService)
Get all the services implementations of the current project
|
String |
getName() |
void |
installReceiveEmailSupport(String host,
String port,
String protocol,
String username,
String password,
Boolean starttls,
String jndiName,
String profile,
org.springframework.roo.project.maven.Pom module,
org.springframework.roo.model.JavaType service,
boolean force)
Add support to obtain emails received into the configured account
|
void |
installSendEmailSupport(String host,
String port,
String protocol,
String username,
String password,
Boolean starttls,
String jndiName,
String profile,
org.springframework.roo.project.maven.Pom module,
org.springframework.roo.model.JavaType service,
boolean force)
Add support to send emails from the configured account
|
boolean |
isEmailInstallationPossible()
Indicates whether the command for adding mail support to the
user's project is available.
|
boolean |
isInstalledInModule(String moduleName) |
protected void activate(org.osgi.service.component.ComponentContext cContext)
public boolean isEmailInstallationPossible()
MailOperationsisEmailInstallationPossible in interface MailOperationspublic void installSendEmailSupport(String host, String port, String protocol, String username, String password, Boolean starttls, String jndiName, String profile, org.springframework.roo.project.maven.Pom module, org.springframework.roo.model.JavaType service, boolean force)
MailOperationsinstallSendEmailSupport in interface MailOperationshost - Server hostport - Server portprotocol - Protocol used to send emailsusername - Account usernamepassword - Account passwordstarttls - Enable or disable the use of the STARTTLS commandjndiName - Enable and set JNDI to send emailsprofile - Indicate the profile where the properties will be setmodule - Indicate the module where the properties will be setservice - Service implementantion where create an instance of JavaMailSenderforce - Indicate if the properties will be overwrittenpublic void installReceiveEmailSupport(String host, String port, String protocol, String username, String password, Boolean starttls, String jndiName, String profile, org.springframework.roo.project.maven.Pom module, org.springframework.roo.model.JavaType service, boolean force)
MailOperationsinstallReceiveEmailSupport in interface MailOperationshost - Server hostport - Server portprotocol - Protocol used to receive emailsusername - Account usernamepassword - Account passwordstarttls - Enable or disable the use of the STARTTLS commandjndiName - Enable and set JNDI to receive emailsprofile - Indicate the profile where the properties will be setmodule - Indicate the module where the properties will be setservice - Service implementantion where create an instance of MailReceiverServiceforce - Indicate if the properties will be overwrittenpublic List<String> getAllServiceImpl(String currentService)
MailOperationsgetAllServiceImpl in interface MailOperationscurrentService - String that represents a service selectedpublic String getName()
getName in interface org.springframework.roo.project.Featurepublic boolean isInstalledInModule(String moduleName)
isInstalledInModule in interface org.springframework.roo.project.FeatureCopyright © 2009–2018 Pivotal Software, Inc.. All rights reserved.