Examples of DnsZoneData


Examples of io.fathom.cloud.protobuf.DnsModel.DnsZoneData

        }
        if (backendId != null) {
            data.setBackendId(backendId);
        }

        DnsZoneData created = repository.getDnsZones(project.getId()).create(data);

        DnsZone dnsDomain = new DnsZone(created);
        backend.updateDomain(project, dnsDomain);
        return dnsDomain;
    }
View Full Code Here

Examples of io.fathom.cloud.protobuf.DnsModel.DnsZoneData

    // }

    @Override
    public DnsZone findZoneByName(Project project, String zoneName) throws CloudException {
        NumberedItemCollection<DnsZoneData> dnsDomains = repository.getDnsZones(project.getId());
        DnsZoneData data = dnsDomains.findByKey(zoneName);
        if (data == null) {
            return null;
        }
        return new DnsZone(data);
    }
View Full Code Here

Examples of io.fathom.cloud.protobuf.DnsModel.DnsZoneData

        return new DnsZone(data);
    }

    @Override
    public DnsZone findDomain(Project project, long id) throws CloudException {
        DnsZoneData data = repository.getDnsZones(project.getId()).find(id);
        if (data == null) {
            return null;
        }
        return new DnsZone(data);
    }
View Full Code Here

Examples of io.fathom.cloud.protobuf.DnsModel.DnsZoneData

        b.setTld(true);
        return store.create(b);
    }

    public DnsSuffixData createShared(Zone zone) throws CloudException, DuplicateValueException {
        DnsZoneData data = ((DnsZone) zone).getData();

        NamedItemCollection<DnsSuffixData> store = repository.getDnsSuffixes();
        String key = zone.getName();
        key = key.toLowerCase();

        DnsSuffixData.Builder b = DnsSuffixData.newBuilder();
        b.setKey(key);
        b.setSharedDomain(true);
        b.setOwnerProject(zone.getProjectId());
        if (data.hasBackend()) {
            b.setBackend(data.getBackend());
        }
        return store.create(b);
    }
View Full Code Here

Examples of io.fathom.cloud.protobuf.DnsModel.DnsZoneData

    public boolean deleteZone(Project project, DnsZone zone) throws CloudException {
        // TODO: Verify no children
        // TODO: Delete from backend?

        NumberedItemCollection<DnsZoneData> store = repository.getDnsZones(project.getId());
        DnsZoneData found = store.find(zone.getId());
        if (found == null) {
            return false;
        }
        store.delete(zone.getId());
        return true;
View Full Code Here

Examples of io.fathom.cloud.protobuf.DnsModel.DnsZoneData

        while (true) {
            if (Strings.isNullOrEmpty(name)) {
                return null;
            }

            DnsZoneData data = store.findByKey(name);
            if (data != null) {
                return new DnsZone(data);
            }

            int dotIndex = name.indexOf('.');
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.