mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 16:37:13 +02:00
Remove regtype extension since we won't be using it
If we do end up needing it we can simply revert this commit. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=127094676
This commit is contained in:
parent
cd23ece924
commit
0e511f0178
23 changed files with 5 additions and 414 deletions
|
@ -1,41 +0,0 @@
|
|||
// 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 com.google.common.base.Splitter;
|
||||
|
||||
import google.registry.model.ImmutableObject;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
|
||||
/**
|
||||
* Base class for general domain commands with registration types (create, update, check, and
|
||||
* info).
|
||||
*
|
||||
* @see "https://gitlab.centralnic.com/centralnic/epp-registration-type-extension/tree/master"
|
||||
*/
|
||||
public class BaseRegTypeCommand extends ImmutableObject {
|
||||
|
||||
/** The registration type (which may be a comma-delimited list of values). */
|
||||
@XmlElement(name = "type")
|
||||
String regType;
|
||||
|
||||
public List<String> getRegistrationTypes() {
|
||||
return Splitter.on(',').splitToList(regType);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
// 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 {}
|
|
@ -1,25 +0,0 @@
|
|||
// 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 create EPP commands.
|
||||
*/
|
||||
@XmlRootElement(name = "create")
|
||||
public class RegTypeCreateExtension extends BaseRegTypeCommand implements CommandExtension {}
|
|
@ -1,39 +0,0 @@
|
|||
// 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 com.google.common.base.Joiner;
|
||||
|
||||
import google.registry.model.eppoutput.EppResponse.ResponseExtension;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
* An XML data object that represents a registration type extension that may be present on the
|
||||
* response to EPP domain info EPP commands.
|
||||
*/
|
||||
@XmlRootElement(name = "infData")
|
||||
public class RegTypeInfoResponseExtension extends BaseRegTypeCommand implements ResponseExtension {
|
||||
|
||||
public static RegTypeInfoResponseExtension create(List<String> registrationTypes) {
|
||||
RegTypeInfoResponseExtension instance = new RegTypeInfoResponseExtension();
|
||||
instance.regType = Joiner.on(",").join(registrationTypes);
|
||||
return instance;
|
||||
}
|
||||
|
||||
private RegTypeInfoResponseExtension() {}
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
// 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();
|
||||
}
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
// 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.
|
||||
|
||||
@XmlSchema(
|
||||
namespace = "urn:ietf:params:xml:ns:regtype-0.2",
|
||||
xmlns = @XmlNs(prefix = "regType", namespaceURI = "urn:ietf:params:xml:ns:regtype-0.2"),
|
||||
elementFormDefault = XmlNsForm.QUALIFIED)
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
|
||||
package google.registry.model.domain.regtype;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlNs;
|
||||
import javax.xml.bind.annotation.XmlNsForm;
|
||||
import javax.xml.bind.annotation.XmlSchema;
|
|
@ -26,7 +26,6 @@ import google.registry.model.domain.allocate.AllocateCreateExtension;
|
|||
import google.registry.model.domain.fee.FeeCheckExtension;
|
||||
import google.registry.model.domain.launch.LaunchCreateExtension;
|
||||
import google.registry.model.domain.metadata.MetadataExtension;
|
||||
import google.registry.model.domain.regtype.RegTypeCreateExtension;
|
||||
import google.registry.model.domain.rgp.RgpUpdateExtension;
|
||||
import google.registry.model.domain.secdns.SecDnsCreateExtension;
|
||||
import google.registry.model.eppinput.EppInput.CommandExtension;
|
||||
|
@ -54,8 +53,7 @@ public class ProtocolDefinition {
|
|||
SECURE_DNS_1_1(SecDnsCreateExtension.class, true),
|
||||
FEE_0_6(FeeCheckExtension.class, true),
|
||||
ALLOCATE_1_0(AllocateCreateExtension.class, false),
|
||||
METADATA_1_0(MetadataExtension.class, false),
|
||||
REGTYPE_0_2(RegTypeCreateExtension.class, true);
|
||||
METADATA_1_0(MetadataExtension.class, false);
|
||||
|
||||
private String uri;
|
||||
private boolean visible;
|
||||
|
|
|
@ -37,9 +37,6 @@ 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;
|
||||
|
@ -279,9 +276,6 @@ 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) })
|
||||
|
|
|
@ -32,7 +32,6 @@ import google.registry.model.domain.fee.FeeUpdateResponseExtension;
|
|||
import google.registry.model.domain.launch.LaunchCheckResponseExtension;
|
||||
import google.registry.model.domain.launch.LaunchCreateResponseExtension;
|
||||
import google.registry.model.domain.launch.LaunchInfoResponseExtension;
|
||||
import google.registry.model.domain.regtype.RegTypeInfoResponseExtension;
|
||||
import google.registry.model.domain.rgp.RgpInfoExtension;
|
||||
import google.registry.model.domain.secdns.SecDnsInfoExtension;
|
||||
import google.registry.model.eppcommon.Trid;
|
||||
|
@ -133,7 +132,6 @@ public class EppResponse extends ImmutableObject implements ResponseOrGreeting {
|
|||
@XmlElementRef(type = LaunchCheckResponseExtension.class),
|
||||
@XmlElementRef(type = LaunchCreateResponseExtension.class),
|
||||
@XmlElementRef(type = LaunchInfoResponseExtension.class),
|
||||
@XmlElementRef(type = RegTypeInfoResponseExtension.class),
|
||||
@XmlElementRef(type = RgpInfoExtension.class),
|
||||
@XmlElementRef(type = SecDnsInfoExtension.class) })
|
||||
@XmlElementWrapper(name = "extension")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue