/** * Get the SMTP settings with the default ID. * * @return <code>null</code> if no such settings are contained. */ @Nullable public ISMTPSettings getDefaultSMTPSettings () { final NamedSMTPSettings aSettings = getDefaultSettings (); return aSettings == null ? null : aSettings.getSMTPSettings (); }
@Nonnull public IMicroElement convertToMicroElement (@Nonnull final NamedSMTPSettings aNamedSMTPSettings, @Nullable final String sNamespaceURI, @Nonnull final String sTagName) { final IMicroElement eSMTPSettings = new MicroElement (sNamespaceURI, sTagName); eSMTPSettings.setAttribute (ATTR_ID, aNamedSMTPSettings.getID ()); eSMTPSettings.appendElement (sNamespaceURI, ELEMENT_NAME).appendText (aNamedSMTPSettings.getName ()); eSMTPSettings.appendChild (MicroTypeConverter.convertToMicroElement (aNamedSMTPSettings.getSMTPSettings (), sNamespaceURI, ELEMENT_SMTPSETTINGS)); return eSMTPSettings; }
sPassword = aSelectedObject.getSMTPSettings ().getPassword ();
sPassword = aSelectedObject.getSMTPSettings ().getPassword ();
final ISMTPSettings aSettings = aSelectedObject.getSMTPSettings ();
final ISMTPSettings aSettings = aSelectedObject.getSMTPSettings ();
final ISMTPSettings aSettings = aSelectedObject == null ? null : aSelectedObject.getSMTPSettings ();
final ISMTPSettings aSettings = aSelectedObject == null ? null : aSelectedObject.getSMTPSettings ();
for (final NamedSMTPSettings aCurObject : m_aMgr.getAllSettings ().values ()) final ISMTPSettings aSettings = aCurObject.getSMTPSettings (); final ISimpleURL aViewLink = createViewURL (aWPEC, aCurObject);
for (final NamedSMTPSettings aCurObject : m_aMgr.getAllSettings ().values ()) final ISMTPSettings aSettings = aCurObject.getSMTPSettings (); final ISimpleURL aViewLink = createViewURL (aWPEC, aCurObject);
aMailData.setSubject (sSubject); aMailData.setBody (sBody); ScopedMailAPI.getInstance ().queueMail (aSelectedObject.getSMTPSettings (), aMailData);
aMailData.setSubject (sSubject); aMailData.setBody (sBody); ScopedMailAPI.getInstance ().queueMail (aSelectedObject.getSMTPSettings (), aMailData);