SipgateDeleteContactService.ktAnnotations: author, Autowired, Service, micromata
Classes: SipgateDeleteContactService
Functions (1): deleteContact
Properties (1): persistenceService
Imports: 3 packages
Package: org.projectforge.business.sipgate
package org.projectforge.business.sipgate
import org.projectforge.framework.persistence.jpa.PfPersistenceService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service
/**
* Used by AddressDao if addresses are forced to be deleted.
* @author K. Reinhard (k.reinhard@micromata.de)
*/
@Service
class SipgateDeleteContactService {
@Autowired
private lateinit var persistenceService: PfPersistenceService
fun deleteContact(addressId: Long) {
persistenceService.runInTransaction { ctx ->
ctx.executeNamedUpdate(
SipgateContactSyncDO.DELETE_BY_ADDRESS_ID,
Pair("addressId", addressId),
)
}
}
}
868d6abb7 2025 -> 2026 b7861b2ff Addresses: forced deletion fixed (after mgc migration): sipgate-contacts and history entries / attrs.