@Profile(value="ldap") @Component(value="dnsZoneRepository") public class DnsZoneRepositoryImpl extends Object implements DnsZoneRepository
| Constructor and Description |
|---|
DnsZoneRepositoryImpl(DomainControllerProperties properties,
org.springframework.beans.factory.ObjectProvider<org.bremersee.data.ldaptive.LdaptiveTemplate> ldapTemplateProvider)
Instantiates a new dns zone repository.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(String zoneName)
Delete dns zone.
|
boolean |
exists(String zoneName)
Check whether dns zone exists or not.
|
Stream<org.bremersee.dccon.model.DnsZone> |
findAll()
Find all dns zones.
|
Optional<org.bremersee.dccon.model.DnsZone> |
findOne(String zoneName)
Find dns zone.
|
boolean |
isDnsReverseZone(String dnsZoneName)
Determines whether the given zone is a reverse zone.
|
org.bremersee.dccon.model.DnsZone |
save(String zoneName)
Save dns zone.
|
void |
setDnsZoneLdapMapper(org.bremersee.data.ldaptive.LdaptiveEntryMapper<org.bremersee.dccon.model.DnsZone> dnsZoneLdapMapper)
Sets dns zone ldap mapper.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindDnsReverseZones, findNonDnsReverseZonespublic DnsZoneRepositoryImpl(DomainControllerProperties properties, org.springframework.beans.factory.ObjectProvider<org.bremersee.data.ldaptive.LdaptiveTemplate> ldapTemplateProvider)
properties - the propertiesldapTemplateProvider - the ldap template providerpublic void setDnsZoneLdapMapper(org.bremersee.data.ldaptive.LdaptiveEntryMapper<org.bremersee.dccon.model.DnsZone> dnsZoneLdapMapper)
dnsZoneLdapMapper - the dns zone ldap mapperpublic boolean isDnsReverseZone(String dnsZoneName)
DnsZoneRepositoryisDnsReverseZone in interface DnsZoneRepositorydnsZoneName - the dns zone namepublic Stream<org.bremersee.dccon.model.DnsZone> findAll()
DnsZoneRepositoryfindAll in interface DnsZoneRepositorypublic boolean exists(String zoneName)
DnsZoneRepositoryexists in interface DnsZoneRepositoryzoneName - the zone nametrue if the dns zone exists, otherwise falsepublic Optional<org.bremersee.dccon.model.DnsZone> findOne(String zoneName)
DnsZoneRepositoryfindOne in interface DnsZoneRepositoryzoneName - the zone namepublic org.bremersee.dccon.model.DnsZone save(String zoneName)
DnsZoneRepositorysave in interface DnsZoneRepositoryzoneName - the zone namepublic boolean delete(String zoneName)
DnsZoneRepositorydelete in interface DnsZoneRepositoryzoneName - the zone nametrue is the repository was deleted, otherwise falseCopyright © 2020 bremersee.org. All rights reserved.