use of com.helger.peppol.smp.SMPTransportProfile in project phoss-smp by phax.
the class SMPTransportProfileManagerXML method deleteSMPTransportProfile.
@Nonnull
public EChange deleteSMPTransportProfile(@Nullable final String sSMPTransportProfileID) {
if (StringHelper.hasNoText(sSMPTransportProfileID))
return EChange.UNCHANGED;
m_aRWLock.writeLock().lock();
try {
final SMPTransportProfile aSMPTransportProfile = internalDeleteItem(sSMPTransportProfileID);
if (aSMPTransportProfile == null) {
AuditHelper.onAuditDeleteFailure(SMPTransportProfile.OT, sSMPTransportProfileID, "no-such-id");
return EChange.UNCHANGED;
}
} finally {
m_aRWLock.writeLock().unlock();
}
AuditHelper.onAuditDeleteSuccess(SMPTransportProfile.OT, sSMPTransportProfileID);
return EChange.CHANGED;
}
Aggregations