/** * Remove the SMTP settings with the specified ID. * * @param sID * The ID to be removed. May be <code>null</code>. * @return {@link EChange#CHANGED} if a removal was performed. */ @Nullable public EChange removeSettings (@Nullable final String sID) { return m_aRWLock.writeLocked ( () -> { final EChange eChange = EChange.valueOf (m_aMap.remove (sID) != null); if (eChange.isChanged ()) { markAsChanged (); AuditHelper.onAuditDeleteSuccess (NamedSMTPSettings.OT, sID); } else AuditHelper.onAuditDeleteFailure (NamedSMTPSettings.OT, sID, "no-such-id"); return eChange; }); }
if (eChange.isUnchanged ()) return EChange.UNCHANGED; markAsChanged (); AuditHelper.onAuditModifySuccess (NamedSMTPSettings.OT, aNamedSettings.getID (),