@Profile(value="!ldap") @Component public class DnsZoneRepositoryMock extends Object implements DnsZoneRepository
| Constructor and Description |
|---|
DnsZoneRepositoryMock(DomainControllerProperties properties)
Instantiates a new dns zone repository mock.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(@NotNull String zoneName)
Delete dns zone.
|
boolean |
exists(@NotNull 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(@NotNull String zoneName)
Find dns zone.
|
void |
init()
Init.
|
boolean |
isDnsReverseZone(String dnsZoneName)
Determines whether the given zone is a reverse zone.
|
org.bremersee.dccon.model.DnsZone |
save(@NotNull String zoneName)
Save dns zone.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindDnsReverseZones, findNonDnsReverseZonespublic DnsZoneRepositoryMock(DomainControllerProperties properties)
properties - the properties@EventListener(value=org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()
public 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(@NotNull
@NotNull String zoneName)
DnsZoneRepositoryexists in interface DnsZoneRepositoryzoneName - the zone nametrue if the dns zone exists, otherwise falsepublic Optional<org.bremersee.dccon.model.DnsZone> findOne(@NotNull @NotNull String zoneName)
DnsZoneRepositoryfindOne in interface DnsZoneRepositoryzoneName - the zone namepublic org.bremersee.dccon.model.DnsZone save(@NotNull
@NotNull String zoneName)
DnsZoneRepositorysave in interface DnsZoneRepositoryzoneName - the zone namepublic boolean delete(@NotNull
@NotNull String zoneName)
DnsZoneRepositorydelete in interface DnsZoneRepositoryzoneName - the zone nametrue is the repository was deleted, otherwise falseCopyright © 2020 bremersee.org. All rights reserved.