RRSetReplaceService
class RRSetReplaceService (View source)
Replaces every record of one name and type with a new set: validate all, delete the old set, insert the new one.
Methods
__construct(TransactionInterface $transaction, ConfigurationInterface $config, BackendCapabilitiesInterface $backend, DnsRecordValidationServiceInterface $validationService, RecordListingInterface $recordRepository, RecordManagerInterface $recordManager, SOARecordManagerInterface $soaRecordManager, AuditLoggerInterface $audit)
No description
array
replace(int $zoneId, string $zoneName, string $fqdn, string $type, int $ttl, array $records)
Validation runs before the old set is touched so a refused record never costs the caller its RRSet.
Details
__construct(TransactionInterface $transaction, ConfigurationInterface $config, BackendCapabilitiesInterface $backend, DnsRecordValidationServiceInterface $validationService, RecordListingInterface $recordRepository, RecordManagerInterface $recordManager, SOARecordManagerInterface $soaRecordManager, AuditLoggerInterface $audit)
No description
array
replace(int $zoneId, string $zoneName, string $fqdn, string $type, int $ttl, array $records)
Validation runs before the old set is touched so a refused record never costs the caller its RRSet.
The serial bump shares the transaction; the rectify runs after the commit.