mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 16:37:13 +02:00
Add domain check and update registration type extensions
This completes the command extensions for the regType 0.2 extension. Up next will be the response extensions. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=123322887
This commit is contained in:
parent
510da196d7
commit
041b2c4116
11 changed files with 158 additions and 6 deletions
|
@ -17,7 +17,6 @@ package google.registry.model.domain.regtype;
|
|||
import com.google.common.base.Splitter;
|
||||
|
||||
import google.registry.model.ImmutableObject;
|
||||
import google.registry.model.eppinput.EppInput.CommandExtension;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
@ -29,7 +28,7 @@ import javax.xml.bind.annotation.XmlElement;
|
|||
*
|
||||
* @see "https://gitlab.centralnic.com/centralnic/epp-registration-type-extension/tree/master"
|
||||
*/
|
||||
public class BaseRegTypeCommand extends ImmutableObject implements CommandExtension {
|
||||
public class BaseRegTypeCommand extends ImmutableObject {
|
||||
|
||||
/** The registration type (which may be a comma-delimited list of values). */
|
||||
@XmlElement(name = "type")
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
// Copyright 2016 The Domain Registry Authors. All Rights Reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package google.registry.model.domain.regtype;
|
||||
|
||||
import google.registry.model.eppinput.EppInput.CommandExtension;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
* A registration type extension that may be present on domain check EPP commands.
|
||||
*/
|
||||
@XmlRootElement(name = "check")
|
||||
public class RegTypeCheckExtension extends BaseRegTypeCommand implements CommandExtension {}
|
|
@ -14,10 +14,12 @@
|
|||
|
||||
package google.registry.model.domain.regtype;
|
||||
|
||||
import google.registry.model.eppinput.EppInput.CommandExtension;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
* A registration type extension that may be present on EPP domain create commands.
|
||||
* A registration type extension that may be present on domain create EPP commands.
|
||||
*/
|
||||
@XmlRootElement(name = "create")
|
||||
public class RegTypeCreateExtension extends BaseRegTypeCommand {}
|
||||
public class RegTypeCreateExtension extends BaseRegTypeCommand implements CommandExtension {}
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
// Copyright 2016 The Domain Registry Authors. All Rights Reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package google.registry.model.domain.regtype;
|
||||
|
||||
import google.registry.model.ImmutableObject;
|
||||
import google.registry.model.eppinput.EppInput.CommandExtension;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
* A registration type extension that may be present on domain update EPP commands.
|
||||
*/
|
||||
@XmlRootElement(name = "update")
|
||||
public class RegTypeUpdateExtension extends ImmutableObject implements CommandExtension {
|
||||
|
||||
@XmlElement(name = "chg")
|
||||
protected BaseRegTypeCommand regTypeChg;
|
||||
|
||||
public List<String> getRegistrationTypes() {
|
||||
return regTypeChg.getRegistrationTypes();
|
||||
}
|
||||
}
|
|
@ -37,7 +37,9 @@ import google.registry.model.domain.launch.LaunchDeleteExtension;
|
|||
import google.registry.model.domain.launch.LaunchInfoExtension;
|
||||
import google.registry.model.domain.launch.LaunchUpdateExtension;
|
||||
import google.registry.model.domain.metadata.MetadataExtension;
|
||||
import google.registry.model.domain.regtype.RegTypeCheckExtension;
|
||||
import google.registry.model.domain.regtype.RegTypeCreateExtension;
|
||||
import google.registry.model.domain.regtype.RegTypeUpdateExtension;
|
||||
import google.registry.model.domain.rgp.RgpUpdateExtension;
|
||||
import google.registry.model.domain.secdns.SecDnsCreateExtension;
|
||||
import google.registry.model.domain.secdns.SecDnsUpdateExtension;
|
||||
|
@ -277,7 +279,9 @@ public class EppInput extends ImmutableObject {
|
|||
@XmlElementRef(type = LaunchInfoExtension.class),
|
||||
@XmlElementRef(type = LaunchUpdateExtension.class),
|
||||
@XmlElementRef(type = MetadataExtension.class),
|
||||
@XmlElementRef(type = RegTypeCheckExtension.class),
|
||||
@XmlElementRef(type = RegTypeCreateExtension.class),
|
||||
@XmlElementRef(type = RegTypeUpdateExtension.class),
|
||||
@XmlElementRef(type = RgpUpdateExtension.class),
|
||||
@XmlElementRef(type = SecDnsCreateExtension.class),
|
||||
@XmlElementRef(type = SecDnsUpdateExtension.class) })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue