public static class RegistryHandler.RegistryZones
extends java.lang.Object
RegistryZones
stores the set of registry zone information. The
registry zones are keyed by the zone name, which is normalized in upper
case. A zone contains zone information and a list of policy extensions, as
defined by RegistryHandler.RegistryZone
.Constructor and Description |
---|
RegistryZones()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
deleteZone(java.lang.String aName) |
RegistryHandler.RegistryZone |
getZone(java.lang.String aName)
Gets zone by name
|
java.util.Set<java.lang.String> |
getZoneNames()
Gets the set of zone names.
|
void |
setZone(java.lang.String aName,
RegistryHandler.RegistryZone aZone)
Sets a zone, which add add it if it does not exist or update it if it
does exist.
|
boolean |
setZoneInfo(java.lang.String aName,
EPPRegistryZone aZoneInfo)
Sets the zone info for an existing zone.
|
void |
setZonePolicyExt(java.lang.String aName,
EPPRegistryZoneInterface aZonePolicy)
Sets the zone policy extension for an existing zone.
|
void |
setZonePolicyExts(java.lang.String aName,
java.util.List<EPPRegistryZoneInterface> aZonePolicies)
Sets the zone policy extensions for an existing zone.
|
boolean |
zoneExists(java.lang.String aName)
Does the zone exist by name?
|
public boolean zoneExists(java.lang.String aName)
aName
- Zone name to search for.true
if zone exists; false
otherwise.public java.util.Set<java.lang.String> getZoneNames()
null
otherwise.public RegistryHandler.RegistryZone getZone(java.lang.String aName)
aName
- Name of zone to search fornull
otherwise.public void setZone(java.lang.String aName, RegistryHandler.RegistryZone aZone)
aName
- Name of zone to setaZone
- Zone data to setpublic boolean setZoneInfo(java.lang.String aName, EPPRegistryZone aZoneInfo)
aName
- Naming of existing zoneaZoneInfo
- Zone information to set for the existing zonetrue
if the zone information was set; false
otherwise.public void setZonePolicyExt(java.lang.String aName, EPPRegistryZoneInterface aZonePolicy)
setZonePolicyExt
will add it.aName
- Naming of existing zoneaZonePolicy
- Zone policy extension to set for the existing zonepublic void setZonePolicyExts(java.lang.String aName, java.util.List<EPPRegistryZoneInterface> aZonePolicies)
setZonePolicyExt
will add it.aName
- Naming of existing zoneaZonePolicies
- Zone policy extensions to set for the existing zonepublic void deleteZone(java.lang.String aName)