mirror of
https://github.com/google/nomulus.git
synced 2025-07-04 10:13:30 +02:00
Remove trailing whitespace in files
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=135386752
This commit is contained in:
parent
d02d30a4cd
commit
e864fedab1
60 changed files with 105 additions and 106 deletions
|
@ -41,7 +41,7 @@ public class BackupUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts the given {@link ImmutableObject} to a raw datastore entity and write it to an
|
* Converts the given {@link ImmutableObject} to a raw datastore entity and write it to an
|
||||||
* {@link OutputStream} in delimited protocol buffer format.
|
* {@link OutputStream} in delimited protocol buffer format.
|
||||||
*/
|
*/
|
||||||
static void serializeEntity(ImmutableObject entity, OutputStream stream) throws IOException {
|
static void serializeEntity(ImmutableObject entity, OutputStream stream) throws IOException {
|
||||||
|
|
|
@ -54,7 +54,7 @@ public class DnsQueue {
|
||||||
@Inject @Config("dnsWriteLockTimeout") Duration writeLockTimeout;
|
@Inject @Config("dnsWriteLockTimeout") Duration writeLockTimeout;
|
||||||
@Inject @Named(DNS_PULL_QUEUE_NAME) Queue queue;
|
@Inject @Named(DNS_PULL_QUEUE_NAME) Queue queue;
|
||||||
@Inject DnsQueue() {}
|
@Inject DnsQueue() {}
|
||||||
|
|
||||||
long writeBatchSize = QueueConstants.maxLeaseCount();
|
long writeBatchSize = QueueConstants.maxLeaseCount();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -98,7 +98,7 @@ public final class ReadDnsQueueAction implements Runnable {
|
||||||
.result();
|
.result();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Leases all tasks from the pull queue and creates per-tld update actions for them. */
|
/** Leases all tasks from the pull queue and creates per-tld update actions for them. */
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
|
@ -134,7 +134,7 @@ public class DnsUpdateWriter implements DnsWriter {
|
||||||
throw new RuntimeException("publishDomain failed: " + domainName, e);
|
throw new RuntimeException("publishDomain failed: " + domainName, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void publishDomain(String domainName) {
|
public void publishDomain(String domainName) {
|
||||||
publishDomain(domainName, null);
|
publishDomain(domainName, null);
|
||||||
|
|
|
@ -161,7 +161,7 @@ public class DomainCreateFlow extends DomainCreateOrAllocateFlow {
|
||||||
.setParent(historyEntry)
|
.setParent(historyEntry)
|
||||||
.build();
|
.build();
|
||||||
ofy().save().entity(createEvent);
|
ofy().save().entity(createEvent);
|
||||||
|
|
||||||
// Bill for EAP cost, if any.
|
// Bill for EAP cost, if any.
|
||||||
if (!commandOperations.getEapCost().isZero()) {
|
if (!commandOperations.getEapCost().isZero()) {
|
||||||
BillingEvent.OneTime eapEvent =
|
BillingEvent.OneTime eapEvent =
|
||||||
|
|
|
@ -32,7 +32,7 @@ public interface RegistryExtraFlowLogic {
|
||||||
public List<String> getExtensionFlags(
|
public List<String> getExtensionFlags(
|
||||||
DomainResource domainResource, String clientId, DateTime asOfDate);
|
DomainResource domainResource, String clientId, DateTime asOfDate);
|
||||||
|
|
||||||
/** Computes the expected creation fee, for use in fee challenges and the like. */
|
/** Computes the expected creation fee, for use in fee challenges and the like. */
|
||||||
public BaseFee getCreateFeeOrCredit(
|
public BaseFee getCreateFeeOrCredit(
|
||||||
String domainName,
|
String domainName,
|
||||||
String clientId,
|
String clientId,
|
||||||
|
@ -63,7 +63,7 @@ public interface RegistryExtraFlowLogic {
|
||||||
EppInput eppInput,
|
EppInput eppInput,
|
||||||
HistoryEntry historyEntry) throws EppException;
|
HistoryEntry historyEntry) throws EppException;
|
||||||
|
|
||||||
/** Computes the expected renewal fee, for use in fee challenges and the like. */
|
/** Computes the expected renewal fee, for use in fee challenges and the like. */
|
||||||
public BaseFee getRenewFeeOrCredit(
|
public BaseFee getRenewFeeOrCredit(
|
||||||
DomainResource domain,
|
DomainResource domain,
|
||||||
String clientId,
|
String clientId,
|
||||||
|
@ -106,7 +106,7 @@ public interface RegistryExtraFlowLogic {
|
||||||
EppInput eppInput,
|
EppInput eppInput,
|
||||||
HistoryEntry historyEntry) throws EppException;
|
HistoryEntry historyEntry) throws EppException;
|
||||||
|
|
||||||
/** Computes the expected update fee, for use in fee challenges and the like. */
|
/** Computes the expected update fee, for use in fee challenges and the like. */
|
||||||
public BaseFee getUpdateFeeOrCredit(
|
public BaseFee getUpdateFeeOrCredit(
|
||||||
DomainResource domain,
|
DomainResource domain,
|
||||||
String clientId,
|
String clientId,
|
||||||
|
|
|
@ -48,7 +48,7 @@ public class RegistryExtraFlowLogicProxy {
|
||||||
return newInstanceForTld(domain.getTld());
|
return newInstanceForTld(domain.getTld());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Optional<RegistryExtraFlowLogic>
|
public static Optional<RegistryExtraFlowLogic>
|
||||||
newInstanceForTld(String tld) throws EppException {
|
newInstanceForTld(String tld) throws EppException {
|
||||||
if (extraLogicOverrideMap.containsKey(tld)) {
|
if (extraLogicOverrideMap.containsKey(tld)) {
|
||||||
|
|
|
@ -256,7 +256,7 @@ public final class TldSpecificLogicProxy {
|
||||||
} else {
|
} else {
|
||||||
feeOrCredit = Fee.create(Money.zero(registry.getCurrency()).getAmount(), FeeType.UPDATE);
|
feeOrCredit = Fee.create(Money.zero(registry.getCurrency()).getAmount(), FeeType.UPDATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new EppCommandOperations(currency, feeOrCredit);
|
return new EppCommandOperations(currency, feeOrCredit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -268,7 +268,7 @@ public final class TldSpecificLogicProxy {
|
||||||
/**
|
/**
|
||||||
* Checks whether a {@link Create} command has a valid {@link LrpToken} for a particular TLD, and
|
* Checks whether a {@link Create} command has a valid {@link LrpToken} for a particular TLD, and
|
||||||
* return that token (wrapped in an {@link Optional}) if one exists.
|
* return that token (wrapped in an {@link Optional}) if one exists.
|
||||||
*
|
*
|
||||||
* <p>This method has no knowledge of whether or not an auth code (interpreted here as an LRP
|
* <p>This method has no knowledge of whether or not an auth code (interpreted here as an LRP
|
||||||
* token) has already been checked against the reserved list for QLP (anchor tenant), as auth
|
* token) has already been checked against the reserved list for QLP (anchor tenant), as auth
|
||||||
* codes are used for both types of registrations.
|
* codes are used for both types of registrations.
|
||||||
|
|
|
@ -134,7 +134,7 @@ public class DirectoryGroupsConnection implements GroupsConnection {
|
||||||
} while (!Strings.isNullOrEmpty(listRequest.getPageToken()));
|
} while (!Strings.isNullOrEmpty(listRequest.getPageToken()));
|
||||||
return allMembers.build();
|
return allMembers.build();
|
||||||
} catch (GoogleJsonResponseException e) {
|
} catch (GoogleJsonResponseException e) {
|
||||||
if (e.getDetails() != null
|
if (e.getDetails() != null
|
||||||
&& e.getDetails().getCode() == SC_NOT_FOUND
|
&& e.getDetails().getCode() == SC_NOT_FOUND
|
||||||
&& e.getDetails().getMessage().equals(GROUP_NOT_FOUND_MSG)) {
|
&& e.getDetails().getMessage().equals(GROUP_NOT_FOUND_MSG)) {
|
||||||
return ImmutableSet.of();
|
return ImmutableSet.of();
|
||||||
|
|
|
@ -103,7 +103,7 @@ public class Cursor extends ImmutableObject {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks that the type of the scoped object (or null) matches the required type for the specified
|
* Checks that the type of the scoped object (or null) matches the required type for the specified
|
||||||
* cursor (or null, if the cursor is a global cursor).
|
* cursor (or null, if the cursor is a global cursor).
|
||||||
*/
|
*/
|
||||||
private static void checkValidCursorTypeForScope(
|
private static void checkValidCursorTypeForScope(
|
||||||
CursorType cursorType, Key<? extends ImmutableObject> scope) {
|
CursorType cursorType, Key<? extends ImmutableObject> scope) {
|
||||||
|
@ -160,12 +160,12 @@ public class Cursor extends ImmutableObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the current time for a given cursor, or {@code START_OF_TIME} if the cursor is null.
|
* Returns the current time for a given cursor, or {@code START_OF_TIME} if the cursor is null.
|
||||||
*/
|
*/
|
||||||
public static DateTime getCursorTimeOrStartOfTime(Cursor cursor) {
|
public static DateTime getCursorTimeOrStartOfTime(Cursor cursor) {
|
||||||
return cursor != null ? cursor.getCursorTime() : START_OF_TIME;
|
return cursor != null ? cursor.getCursorTime() : START_OF_TIME;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DateTime getCursorTime() {
|
public DateTime getCursorTime() {
|
||||||
return cursorTime;
|
return cursorTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,7 @@ public class TimeOfYear extends ImmutableObject {
|
||||||
/**
|
/**
|
||||||
* Returns an {@link Iterable} of {@link DateTime}s of every recurrence of this particular
|
* Returns an {@link Iterable} of {@link DateTime}s of every recurrence of this particular
|
||||||
* time of year within a given {@link Range} (usually one spanning many years).
|
* time of year within a given {@link Range} (usually one spanning many years).
|
||||||
*
|
*
|
||||||
* <p>WARNING: This can return a potentially very large {@link Iterable} if {@code END_OF_TIME}
|
* <p>WARNING: This can return a potentially very large {@link Iterable} if {@code END_OF_TIME}
|
||||||
* is used as the upper endpoint of the range.
|
* is used as the upper endpoint of the range.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -171,7 +171,7 @@ public class TimedTransitionProperty<V, T extends TimedTransitionProperty.TimedT
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates a new set of transitions and returns the resulting TimedTransitionProperty map.
|
* Validates a new set of transitions and returns the resulting TimedTransitionProperty map.
|
||||||
*
|
*
|
||||||
* @param newTransitions map from date time to transition value
|
* @param newTransitions map from date time to transition value
|
||||||
* @param transitionClass the class of transitions in this map
|
* @param transitionClass the class of transitions in this map
|
||||||
* @param allowedTransitions optional map of all possible state-to-state transitions
|
* @param allowedTransitions optional map of all possible state-to-state transitions
|
||||||
|
|
|
@ -24,11 +24,11 @@ import google.registry.model.ImmutableObject;
|
||||||
public class DomainObjectSpec extends ImmutableObject {
|
public class DomainObjectSpec extends ImmutableObject {
|
||||||
|
|
||||||
final String name;
|
final String name;
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DomainObjectSpec(String name) {
|
public DomainObjectSpec(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,7 +116,7 @@ public class GracePeriod extends ImmutableObject {
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a GracePeriod for an (optional) OneTime billing event.
|
* Creates a GracePeriod for an (optional) OneTime billing event.
|
||||||
*
|
*
|
||||||
* <p>Normal callers should always use {@link #forBillingEvent} instead, assuming they do not
|
* <p>Normal callers should always use {@link #forBillingEvent} instead, assuming they do not
|
||||||
|
|
|
@ -25,7 +25,6 @@ import com.googlecode.objectify.annotation.Index;
|
||||||
import google.registry.model.BackupGroupRoot;
|
import google.registry.model.BackupGroupRoot;
|
||||||
import google.registry.model.Buildable;
|
import google.registry.model.Buildable;
|
||||||
import google.registry.model.reporting.HistoryEntry;
|
import google.registry.model.reporting.HistoryEntry;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
@ -89,7 +88,7 @@ public class LrpToken extends BackupGroupRoot implements Buildable {
|
||||||
public Map<String, String> getMetadata() {
|
public Map<String, String> getMetadata() {
|
||||||
return nullToEmptyImmutableCopy(metadata);
|
return nullToEmptyImmutableCopy(metadata);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Builder asBuilder() {
|
public Builder asBuilder() {
|
||||||
return new Builder(clone(this));
|
return new Builder(clone(this));
|
||||||
|
@ -112,7 +111,7 @@ public class LrpToken extends BackupGroupRoot implements Buildable {
|
||||||
getInstance().token = checkArgumentNotNull(token);
|
getInstance().token = checkArgumentNotNull(token);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Builder setRedemptionHistoryEntry(Key<HistoryEntry> redemptionHistoryEntry) {
|
public Builder setRedemptionHistoryEntry(Key<HistoryEntry> redemptionHistoryEntry) {
|
||||||
getInstance().redemptionHistoryEntry = checkArgumentNotNull(redemptionHistoryEntry);
|
getInstance().redemptionHistoryEntry = checkArgumentNotNull(redemptionHistoryEntry);
|
||||||
return this;
|
return this;
|
||||||
|
|
|
@ -41,7 +41,7 @@ public abstract class BaseFee extends ImmutableObject {
|
||||||
@XmlEnumValue("delayed")
|
@XmlEnumValue("delayed")
|
||||||
DELAYED
|
DELAYED
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Enum for the type of the fee. */
|
/** Enum for the type of the fee. */
|
||||||
public enum FeeType {
|
public enum FeeType {
|
||||||
CREATE("create"),
|
CREATE("create"),
|
||||||
|
@ -80,7 +80,7 @@ public abstract class BaseFee extends ImmutableObject {
|
||||||
|
|
||||||
@XmlTransient
|
@XmlTransient
|
||||||
FeeType type;
|
FeeType type;
|
||||||
|
|
||||||
@XmlTransient
|
@XmlTransient
|
||||||
Range<DateTime> validDateRange;
|
Range<DateTime> validDateRange;
|
||||||
|
|
||||||
|
@ -104,21 +104,21 @@ public abstract class BaseFee extends ImmutableObject {
|
||||||
* According to the fee extension specification, a fee must always be non-negative, while a credit
|
* According to the fee extension specification, a fee must always be non-negative, while a credit
|
||||||
* must always be negative. Essentially, they are the same thing, just with different sign.
|
* must always be negative. Essentially, they are the same thing, just with different sign.
|
||||||
* However, we need them to be separate classes for proper JAXB handling.
|
* However, we need them to be separate classes for proper JAXB handling.
|
||||||
*
|
*
|
||||||
* @see "https://tools.ietf.org/html/draft-brown-epp-fees-03#section-2.4"
|
* @see "https://tools.ietf.org/html/draft-brown-epp-fees-03#section-2.4"
|
||||||
*/
|
*/
|
||||||
public BigDecimal getCost() {
|
public BigDecimal getCost() {
|
||||||
return cost;
|
return cost;
|
||||||
}
|
}
|
||||||
|
|
||||||
public FeeType getType() {
|
public FeeType getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasValidDateRange() {
|
public boolean hasValidDateRange() {
|
||||||
return validDateRange != null;
|
return validDateRange != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Range<DateTime> getValidDateRange() {
|
public Range<DateTime> getValidDateRange() {
|
||||||
checkState(hasValidDateRange());
|
checkState(hasValidDateRange());
|
||||||
return validDateRange;
|
return validDateRange;
|
||||||
|
@ -128,7 +128,7 @@ public abstract class BaseFee extends ImmutableObject {
|
||||||
checkState(type != null);
|
checkState(type != null);
|
||||||
description = type.renderDescription(args);
|
description = type.renderDescription(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasZeroCost() {
|
public boolean hasZeroCost() {
|
||||||
return cost.signum() == 0;
|
return cost.signum() == 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ public interface FeeCheckCommandExtensionItem extends FeeQueryCommandExtensionIt
|
||||||
|
|
||||||
/** The domain name being checked; throws an exception if domain names are not supported. */
|
/** The domain name being checked; throws an exception if domain names are not supported. */
|
||||||
public String getDomainName() throws UnsupportedOperationException;
|
public String getDomainName() throws UnsupportedOperationException;
|
||||||
|
|
||||||
/** Create a builder for a matching fee check response item. */
|
/** Create a builder for a matching fee check response item. */
|
||||||
public FeeCheckResponseExtensionItem.Builder createResponseBuilder();
|
public FeeCheckResponseExtensionItem.Builder createResponseBuilder();
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,6 @@ public interface FeeCheckResponseExtension<F extends FeeCheckResponseExtensionIt
|
||||||
* extension, this function has not effect.
|
* extension, this function has not effect.
|
||||||
*/
|
*/
|
||||||
public void setCurrencyIfSupported(CurrencyUnit currency);
|
public void setCurrencyIfSupported(CurrencyUnit currency);
|
||||||
|
|
||||||
public ImmutableList<F> getItems();
|
public ImmutableList<F> getItems();
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ public class FeeExtensionCommandDescriptor extends ImmutableObject {
|
||||||
}
|
}
|
||||||
return CommandName.UNKNOWN;
|
return CommandName.UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static FeeExtensionCommandDescriptor
|
public static FeeExtensionCommandDescriptor
|
||||||
create(CommandName commandName, String phase, String subphase) {
|
create(CommandName commandName, String phase, String subphase) {
|
||||||
FeeExtensionCommandDescriptor commandDescriptor = new FeeExtensionCommandDescriptor();
|
FeeExtensionCommandDescriptor commandDescriptor = new FeeExtensionCommandDescriptor();
|
||||||
|
|
|
@ -42,13 +42,13 @@ public abstract class FeeQueryCommandExtensionItemImpl
|
||||||
public CommandName getCommandName() {
|
public CommandName getCommandName() {
|
||||||
return command.getCommand();
|
return command.getCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The command name before being parsed into an enum, for use in error strings. */
|
/** The command name before being parsed into an enum, for use in error strings. */
|
||||||
@Override
|
@Override
|
||||||
public String getUnparsedCommandName() {
|
public String getUnparsedCommandName() {
|
||||||
return command.getUnparsedCommandName();
|
return command.getUnparsedCommandName();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The phase of the command being checked. */
|
/** The phase of the command being checked. */
|
||||||
@Override
|
@Override
|
||||||
public String getPhase() {
|
public String getPhase() {
|
||||||
|
|
|
@ -58,11 +58,11 @@ public interface FeeQueryResponseExtensionItem {
|
||||||
public Builder setNotAfterDateIfSupported(DateTime notAfterDate);
|
public Builder setNotAfterDateIfSupported(DateTime notAfterDate);
|
||||||
|
|
||||||
public Builder setCommand(CommandName commandName, String phase, String subphase);
|
public Builder setCommand(CommandName commandName, String phase, String subphase);
|
||||||
|
|
||||||
public Builder setPeriod(Period period);
|
public Builder setPeriod(Period period);
|
||||||
|
|
||||||
public Builder setFees(List<Fee> fees);
|
public Builder setFees(List<Fee> fees);
|
||||||
|
|
||||||
public Builder setClass(String feeClass);
|
public Builder setClass(String feeClass);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ public class FeeQueryResponseExtensionItemImpl
|
||||||
public abstract static class
|
public abstract static class
|
||||||
Builder<T extends FeeQueryResponseExtensionItemImpl, B extends Builder<?, ?>>
|
Builder<T extends FeeQueryResponseExtensionItemImpl, B extends Builder<?, ?>>
|
||||||
extends GenericBuilder<T, B> implements FeeQueryResponseExtensionItem.Builder {
|
extends GenericBuilder<T, B> implements FeeQueryResponseExtensionItem.Builder {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public B setCommand(CommandName commandName, String phase, String subphase) {
|
public B setCommand(CommandName commandName, String phase, String subphase) {
|
||||||
getInstance().command = FeeExtensionCommandDescriptor.create(commandName, phase, subphase);
|
getInstance().command = FeeExtensionCommandDescriptor.create(commandName, phase, subphase);
|
||||||
|
|
|
@ -38,7 +38,7 @@ public class FeeTransformResponseExtensionImpl extends ImmutableObject
|
||||||
*/
|
*/
|
||||||
@XmlElement(name = "fee")
|
@XmlElement(name = "fee")
|
||||||
List<Fee> fees;
|
List<Fee> fees;
|
||||||
|
|
||||||
@XmlElement(name = "credit")
|
@XmlElement(name = "credit")
|
||||||
List<Credit> credits;
|
List<Credit> credits;
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ public class FeeTransformResponseExtensionImpl extends ImmutableObject
|
||||||
public abstract static class
|
public abstract static class
|
||||||
Builder<T extends FeeTransformResponseExtensionImpl, B extends Builder<?, ?>>
|
Builder<T extends FeeTransformResponseExtensionImpl, B extends Builder<?, ?>>
|
||||||
extends GenericBuilder<T, B> implements FeeTransformResponseExtension.Builder {
|
extends GenericBuilder<T, B> implements FeeTransformResponseExtension.Builder {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public B setCurrency(CurrencyUnit currency) {
|
public B setCurrency(CurrencyUnit currency) {
|
||||||
getInstance().currency = currency;
|
getInstance().currency = currency;
|
||||||
|
|
|
@ -40,12 +40,12 @@ public class FeeTransformResponseExtensionImplNoCredits extends ImmutableObject
|
||||||
*/
|
*/
|
||||||
@XmlElement(name = "fee")
|
@XmlElement(name = "fee")
|
||||||
List<Fee> fees;
|
List<Fee> fees;
|
||||||
|
|
||||||
/** Abstract builder for {@link FeeTransformResponseExtensionImplNoCredits}. */
|
/** Abstract builder for {@link FeeTransformResponseExtensionImplNoCredits}. */
|
||||||
public abstract static class
|
public abstract static class
|
||||||
Builder<T extends FeeTransformResponseExtensionImplNoCredits, B extends Builder<?, ?>>
|
Builder<T extends FeeTransformResponseExtensionImplNoCredits, B extends Builder<?, ?>>
|
||||||
extends GenericBuilder<T, B> implements FeeTransformResponseExtension.Builder {
|
extends GenericBuilder<T, B> implements FeeTransformResponseExtension.Builder {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public B setCurrency(CurrencyUnit currency) {
|
public B setCurrency(CurrencyUnit currency) {
|
||||||
getInstance().currency = currency;
|
getInstance().currency = currency;
|
||||||
|
|
|
@ -26,31 +26,31 @@ public class FeeCheckResponseExtensionItemV06
|
||||||
extends FeeQueryResponseExtensionItemImpl implements FeeCheckResponseExtensionItem {
|
extends FeeQueryResponseExtensionItemImpl implements FeeCheckResponseExtensionItem {
|
||||||
/** The name of the domain that was checked, with an attribute indicating if it is premium. */
|
/** The name of the domain that was checked, with an attribute indicating if it is premium. */
|
||||||
String name;
|
String name;
|
||||||
|
|
||||||
CurrencyUnit currency;
|
CurrencyUnit currency;
|
||||||
|
|
||||||
/** Builder for {@link FeeCheckResponseExtensionItemV06}. */
|
/** Builder for {@link FeeCheckResponseExtensionItemV06}. */
|
||||||
public static class Builder
|
public static class Builder
|
||||||
extends FeeQueryResponseExtensionItemImpl.Builder<FeeCheckResponseExtensionItemV06, Builder>
|
extends FeeQueryResponseExtensionItemImpl.Builder<FeeCheckResponseExtensionItemV06, Builder>
|
||||||
implements FeeCheckResponseExtensionItem.Builder {
|
implements FeeCheckResponseExtensionItem.Builder {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Builder setDomainNameIfSupported(String name) {
|
public Builder setDomainNameIfSupported(String name) {
|
||||||
getInstance().name = name;
|
getInstance().name = name;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Builder setCurrencyIfSupported(CurrencyUnit currency) {
|
public Builder setCurrencyIfSupported(CurrencyUnit currency) {
|
||||||
getInstance().currency = currency;
|
getInstance().currency = currency;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Builder setAvailIfSupported(boolean avail) {
|
public Builder setAvailIfSupported(boolean avail) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Builder setReasonIfSupported(String reason) {
|
public Builder setReasonIfSupported(String reason) {
|
||||||
return this;
|
return this;
|
||||||
|
|
|
@ -23,7 +23,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
||||||
import org.joda.money.CurrencyUnit;
|
import org.joda.money.CurrencyUnit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An XML data object that represents version 0.6 of the fee extension that may be present on the
|
* An XML data object that represents version 0.6 of the fee extension that may be present on the
|
||||||
* response to EPP domain check commands.
|
* response to EPP domain check commands.
|
||||||
*/
|
*/
|
||||||
@XmlRootElement(name = "chkData")
|
@XmlRootElement(name = "chkData")
|
||||||
|
@ -33,7 +33,7 @@ public class FeeCheckResponseExtensionV06
|
||||||
/** Check responses. */
|
/** Check responses. */
|
||||||
@XmlElement(name = "cd")
|
@XmlElement(name = "cd")
|
||||||
ImmutableList<FeeCheckResponseExtensionItemV06> items;
|
ImmutableList<FeeCheckResponseExtensionItemV06> items;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setCurrencyIfSupported(CurrencyUnit currency) {
|
public void setCurrencyIfSupported(CurrencyUnit currency) {
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
||||||
@XmlType(propOrder = {"currency", "fees"})
|
@XmlType(propOrder = {"currency", "fees"})
|
||||||
public class FeeCreateCommandExtensionV06
|
public class FeeCreateCommandExtensionV06
|
||||||
extends FeeTransformCommandExtensionImplNoCredits implements FeeTransformCommandExtension {
|
extends FeeTransformCommandExtensionImplNoCredits implements FeeTransformCommandExtension {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||||
return new FeeCreateResponseExtensionV06.Builder();
|
return new FeeCreateResponseExtensionV06.Builder();
|
||||||
|
|
|
@ -35,7 +35,7 @@ public class FeeInfoCommandExtensionV06
|
||||||
public CurrencyUnit getCurrency() {
|
public CurrencyUnit getCurrency() {
|
||||||
return currency;
|
return currency;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<DateTime> getEffectiveDate() {
|
public Optional<DateTime> getEffectiveDate() {
|
||||||
return Optional.absent();
|
return Optional.absent();
|
||||||
|
|
|
@ -30,18 +30,18 @@ import org.joda.time.DateTime;
|
||||||
@XmlType(propOrder = {"currency", "command", "period", "fee", "feeClass"})
|
@XmlType(propOrder = {"currency", "command", "period", "fee", "feeClass"})
|
||||||
public class FeeInfoResponseExtensionV06
|
public class FeeInfoResponseExtensionV06
|
||||||
extends FeeQueryResponseExtensionItemImpl implements ResponseExtension {
|
extends FeeQueryResponseExtensionItemImpl implements ResponseExtension {
|
||||||
|
|
||||||
CurrencyUnit currency;
|
CurrencyUnit currency;
|
||||||
|
|
||||||
/** Builder for {@link FeeInfoResponseExtensionV06}. */
|
/** Builder for {@link FeeInfoResponseExtensionV06}. */
|
||||||
public static class Builder
|
public static class Builder
|
||||||
extends FeeQueryResponseExtensionItemImpl.Builder<FeeInfoResponseExtensionV06, Builder> {
|
extends FeeQueryResponseExtensionItemImpl.Builder<FeeInfoResponseExtensionV06, Builder> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Builder setAvailIfSupported(boolean avail) {
|
public Builder setAvailIfSupported(boolean avail) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Builder setReasonIfSupported(String reason) {
|
public Builder setReasonIfSupported(String reason) {
|
||||||
return this;
|
return this;
|
||||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
||||||
@XmlType(propOrder = {"currency", "fees"})
|
@XmlType(propOrder = {"currency", "fees"})
|
||||||
public class FeeRenewCommandExtensionV06
|
public class FeeRenewCommandExtensionV06
|
||||||
extends FeeTransformCommandExtensionImplNoCredits implements FeeTransformCommandExtension {
|
extends FeeTransformCommandExtensionImplNoCredits implements FeeTransformCommandExtension {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||||
return new FeeRenewResponseExtensionV06.Builder();
|
return new FeeRenewResponseExtensionV06.Builder();
|
||||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
||||||
@XmlType(propOrder = {"currency", "fees"})
|
@XmlType(propOrder = {"currency", "fees"})
|
||||||
public class FeeTransferCommandExtensionV06
|
public class FeeTransferCommandExtensionV06
|
||||||
extends FeeTransformCommandExtensionImplNoCredits implements FeeTransformCommandExtension {
|
extends FeeTransformCommandExtensionImplNoCredits implements FeeTransformCommandExtension {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||||
return new FeeTransferResponseExtensionV06.Builder();
|
return new FeeTransferResponseExtensionV06.Builder();
|
||||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
||||||
@XmlType(propOrder = {"currency", "fees"})
|
@XmlType(propOrder = {"currency", "fees"})
|
||||||
public class FeeUpdateCommandExtensionV06
|
public class FeeUpdateCommandExtensionV06
|
||||||
extends FeeTransformCommandExtensionImplNoCredits implements FeeTransformCommandExtension {
|
extends FeeTransformCommandExtensionImplNoCredits implements FeeTransformCommandExtension {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||||
return new FeeUpdateResponseExtensionV06.Builder();
|
return new FeeUpdateResponseExtensionV06.Builder();
|
||||||
|
|
|
@ -66,7 +66,7 @@ public class FeeCheckCommandExtensionV11 extends ImmutableObject
|
||||||
// This version of the fee extension does not have any items, and although the currency is
|
// This version of the fee extension does not have any items, and although the currency is
|
||||||
// specified at the top level we've modeled it as a single fake item with the currency inside,
|
// specified at the top level we've modeled it as a single fake item with the currency inside,
|
||||||
// so there's no top level currency to return here.
|
// so there's no top level currency to return here.
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -138,7 +138,7 @@ public class FeeCheckCommandExtensionV11 extends ImmutableObject
|
||||||
public Builder createResponseBuilder() {
|
public Builder createResponseBuilder() {
|
||||||
return new FeeCheckResponseExtensionItemV11.Builder();
|
return new FeeCheckResponseExtensionItemV11.Builder();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Optional<DateTime> getEffectiveDate() {
|
public Optional<DateTime> getEffectiveDate() {
|
||||||
return Optional.absent();
|
return Optional.absent();
|
||||||
|
|
|
@ -33,35 +33,35 @@ public class FeeCheckResponseExtensionItemV11
|
||||||
|
|
||||||
/** The domain that was checked. */
|
/** The domain that was checked. */
|
||||||
DomainObjectSpec object;
|
DomainObjectSpec object;
|
||||||
|
|
||||||
CurrencyUnit currency;
|
CurrencyUnit currency;
|
||||||
|
|
||||||
/** The reason that the check item cannot be calculated. */
|
/** The reason that the check item cannot be calculated. */
|
||||||
String reason;
|
String reason;
|
||||||
|
|
||||||
/** Builder for {@link FeeCheckResponseExtensionItemV11}. */
|
/** Builder for {@link FeeCheckResponseExtensionItemV11}. */
|
||||||
public static class Builder
|
public static class Builder
|
||||||
extends FeeQueryResponseExtensionItemImpl.Builder<FeeCheckResponseExtensionItemV11, Builder>
|
extends FeeQueryResponseExtensionItemImpl.Builder<FeeCheckResponseExtensionItemV11, Builder>
|
||||||
implements FeeCheckResponseExtensionItem.Builder {
|
implements FeeCheckResponseExtensionItem.Builder {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Builder setDomainNameIfSupported(String name) {
|
public Builder setDomainNameIfSupported(String name) {
|
||||||
getInstance().object = new DomainObjectSpec(name);
|
getInstance().object = new DomainObjectSpec(name);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Builder setCurrencyIfSupported(CurrencyUnit currency) {
|
public Builder setCurrencyIfSupported(CurrencyUnit currency) {
|
||||||
getInstance().currency = currency;
|
getInstance().currency = currency;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Builder setAvailIfSupported(boolean avail) {
|
public Builder setAvailIfSupported(boolean avail) {
|
||||||
getInstance().avail = avail;
|
getInstance().avail = avail;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Builder setReasonIfSupported(String reason) {
|
public Builder setReasonIfSupported(String reason) {
|
||||||
getInstance().reason = reason;
|
getInstance().reason = reason;
|
||||||
|
|
|
@ -23,7 +23,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
||||||
import org.joda.money.CurrencyUnit;
|
import org.joda.money.CurrencyUnit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An XML data object that represents version 0.11 of the fee extension that may be present on the
|
* An XML data object that represents version 0.11 of the fee extension that may be present on the
|
||||||
* response to EPP domain check commands.
|
* response to EPP domain check commands.
|
||||||
*/
|
*/
|
||||||
@XmlRootElement(name = "chkData")
|
@XmlRootElement(name = "chkData")
|
||||||
|
@ -33,7 +33,7 @@ public class FeeCheckResponseExtensionV11
|
||||||
/** Check responses. */
|
/** Check responses. */
|
||||||
@XmlElement(name = "cd")
|
@XmlElement(name = "cd")
|
||||||
ImmutableList<FeeCheckResponseExtensionItemV11> items;
|
ImmutableList<FeeCheckResponseExtensionItemV11> items;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setCurrencyIfSupported(CurrencyUnit currency) {}
|
public void setCurrencyIfSupported(CurrencyUnit currency) {}
|
||||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
||||||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||||
public class FeeCreateCommandExtensionV11
|
public class FeeCreateCommandExtensionV11
|
||||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||||
return new FeeCreateResponseExtensionV11.Builder();
|
return new FeeCreateResponseExtensionV11.Builder();
|
||||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
||||||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||||
public class FeeRenewCommandExtensionV11
|
public class FeeRenewCommandExtensionV11
|
||||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||||
return new FeeRenewResponseExtensionV11.Builder();
|
return new FeeRenewResponseExtensionV11.Builder();
|
||||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
||||||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||||
public class FeeTransferCommandExtensionV11
|
public class FeeTransferCommandExtensionV11
|
||||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||||
return new FeeTransferResponseExtensionV11.Builder();
|
return new FeeTransferResponseExtensionV11.Builder();
|
||||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
||||||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||||
public class FeeUpdateCommandExtensionV11
|
public class FeeUpdateCommandExtensionV11
|
||||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||||
return new FeeUpdateResponseExtensionV11.Builder();
|
return new FeeUpdateResponseExtensionV11.Builder();
|
||||||
|
|
|
@ -62,7 +62,7 @@ public class FeeCheckResponseExtensionItemCommandV12 extends ImmutableObject {
|
||||||
*/
|
*/
|
||||||
@XmlElement(name = "class")
|
@XmlElement(name = "class")
|
||||||
String feeClass;
|
String feeClass;
|
||||||
|
|
||||||
/** The effective date that the check is to be performed on (if specified in the query). */
|
/** The effective date that the check is to be performed on (if specified in the query). */
|
||||||
@XmlElement(name = "date")
|
@XmlElement(name = "date")
|
||||||
DateTime effectiveDate;
|
DateTime effectiveDate;
|
||||||
|
|
|
@ -51,9 +51,9 @@ public class FeeCheckResponseExtensionItemV12
|
||||||
public static class Builder
|
public static class Builder
|
||||||
extends GenericBuilder<FeeCheckResponseExtensionItemV12, Builder>
|
extends GenericBuilder<FeeCheckResponseExtensionItemV12, Builder>
|
||||||
implements FeeCheckResponseExtensionItem.Builder {
|
implements FeeCheckResponseExtensionItem.Builder {
|
||||||
|
|
||||||
final FeeCheckResponseExtensionItemCommandV12.Builder commandBuilder;
|
final FeeCheckResponseExtensionItemCommandV12.Builder commandBuilder;
|
||||||
|
|
||||||
Builder() {
|
Builder() {
|
||||||
super();
|
super();
|
||||||
commandBuilder = new FeeCheckResponseExtensionItemCommandV12.Builder();
|
commandBuilder = new FeeCheckResponseExtensionItemCommandV12.Builder();
|
||||||
|
@ -96,12 +96,12 @@ public class FeeCheckResponseExtensionItemV12
|
||||||
public Builder setCurrencyIfSupported(CurrencyUnit currency) {
|
public Builder setCurrencyIfSupported(CurrencyUnit currency) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Builder setAvailIfSupported(boolean avail) {
|
public Builder setAvailIfSupported(boolean avail) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Builder setReasonIfSupported(String reason) {
|
public Builder setReasonIfSupported(String reason) {
|
||||||
return this;
|
return this;
|
||||||
|
|
|
@ -24,7 +24,7 @@ import javax.xml.bind.annotation.XmlType;
|
||||||
import org.joda.money.CurrencyUnit;
|
import org.joda.money.CurrencyUnit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An XML data object that represents version 0.12 of the fee extension that may be present on the
|
* An XML data object that represents version 0.12 of the fee extension that may be present on the
|
||||||
* response to EPP domain check commands.
|
* response to EPP domain check commands.
|
||||||
*/
|
*/
|
||||||
@XmlRootElement(name = "chkData")
|
@XmlRootElement(name = "chkData")
|
||||||
|
@ -33,7 +33,7 @@ public class FeeCheckResponseExtensionV12
|
||||||
extends ImmutableObject implements FeeCheckResponseExtension<FeeCheckResponseExtensionItemV12> {
|
extends ImmutableObject implements FeeCheckResponseExtension<FeeCheckResponseExtensionItemV12> {
|
||||||
|
|
||||||
CurrencyUnit currency;
|
CurrencyUnit currency;
|
||||||
|
|
||||||
/** Check responses. */
|
/** Check responses. */
|
||||||
@XmlElement(name = "cd")
|
@XmlElement(name = "cd")
|
||||||
ImmutableList<FeeCheckResponseExtensionItemV12> items;
|
ImmutableList<FeeCheckResponseExtensionItemV12> items;
|
||||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
||||||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||||
public class FeeCreateCommandExtensionV12
|
public class FeeCreateCommandExtensionV12
|
||||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||||
return new FeeCreateResponseExtensionV12.Builder();
|
return new FeeCreateResponseExtensionV12.Builder();
|
||||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
||||||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||||
public class FeeRenewCommandExtensionV12
|
public class FeeRenewCommandExtensionV12
|
||||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||||
return new FeeRenewResponseExtensionV12.Builder();
|
return new FeeRenewResponseExtensionV12.Builder();
|
||||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
||||||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||||
public class FeeTransferCommandExtensionV12
|
public class FeeTransferCommandExtensionV12
|
||||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||||
return new FeeTransferResponseExtensionV12.Builder();
|
return new FeeTransferResponseExtensionV12.Builder();
|
||||||
|
|
|
@ -25,7 +25,7 @@ import javax.xml.bind.annotation.XmlType;
|
||||||
@XmlType(propOrder = {"currency", "fees", "credits"})
|
@XmlType(propOrder = {"currency", "fees", "credits"})
|
||||||
public class FeeUpdateCommandExtensionV12
|
public class FeeUpdateCommandExtensionV12
|
||||||
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
extends FeeTransformCommandExtensionImpl implements FeeTransformCommandExtension {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
public FeeTransformResponseExtension.Builder createResponseBuilder() {
|
||||||
return new FeeUpdateResponseExtensionV12.Builder();
|
return new FeeUpdateResponseExtensionV12.Builder();
|
||||||
|
|
|
@ -30,7 +30,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
||||||
public class FlagsCreateCommandExtension implements CommandExtension {
|
public class FlagsCreateCommandExtension implements CommandExtension {
|
||||||
@XmlElement(name = "flag")
|
@XmlElement(name = "flag")
|
||||||
List<String> flags;
|
List<String> flags;
|
||||||
|
|
||||||
public List<String> getFlags() {
|
public List<String> getFlags() {
|
||||||
return flags;
|
return flags;
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ import javax.xml.bind.annotation.XmlValue;
|
||||||
*/
|
*/
|
||||||
@Embed
|
@Embed
|
||||||
public class LaunchPhase extends ImmutableObject {
|
public class LaunchPhase extends ImmutableObject {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The phase during which trademark holders can submit registrations or applications with
|
* The phase during which trademark holders can submit registrations or applications with
|
||||||
* trademark information that can be validated by the server.
|
* trademark information that can be validated by the server.
|
||||||
|
@ -65,8 +65,8 @@ public class LaunchPhase extends ImmutableObject {
|
||||||
public static final LaunchPhase CUSTOM = create("custom", null);
|
public static final LaunchPhase CUSTOM = create("custom", null);
|
||||||
|
|
||||||
private static final Map<String, LaunchPhase> LAUNCH_PHASES = initEnumMapping();
|
private static final Map<String, LaunchPhase> LAUNCH_PHASES = initEnumMapping();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a map of the static final fields to their values, case-converted.
|
* Returns a map of the static final fields to their values, case-converted.
|
||||||
*/
|
*/
|
||||||
private static final ImmutableMap<String, LaunchPhase> initEnumMapping() {
|
private static final ImmutableMap<String, LaunchPhase> initEnumMapping() {
|
||||||
|
@ -84,7 +84,7 @@ public class LaunchPhase extends ImmutableObject {
|
||||||
instance.subphase = subphase;
|
instance.subphase = subphase;
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
@XmlValue
|
@XmlValue
|
||||||
String phase;
|
String phase;
|
||||||
|
|
||||||
|
@ -94,15 +94,15 @@ public class LaunchPhase extends ImmutableObject {
|
||||||
*/
|
*/
|
||||||
@XmlAttribute(name = "name")
|
@XmlAttribute(name = "name")
|
||||||
String subphase;
|
String subphase;
|
||||||
|
|
||||||
public String getPhase() {
|
public String getPhase() {
|
||||||
return phase;
|
return phase;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSubphase() {
|
public String getSubphase() {
|
||||||
return subphase;
|
return subphase;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static LaunchPhase fromValue(String value) {
|
public static LaunchPhase fromValue(String value) {
|
||||||
return LAUNCH_PHASES.get(value);
|
return LAUNCH_PHASES.get(value);
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,7 +131,7 @@ public class EppInput extends ImmutableObject {
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SafeVarargs
|
@SafeVarargs
|
||||||
@Nullable
|
@Nullable
|
||||||
public final <E extends CommandExtension>
|
public final <E extends CommandExtension>
|
||||||
|
|
|
@ -181,7 +181,7 @@ public class EppResponse extends ImmutableObject implements ResponseOrGreeting {
|
||||||
public ImmutableList<? extends ResponseExtension> getExtensions() {
|
public ImmutableList<? extends ResponseExtension> getExtensions() {
|
||||||
return extensions;
|
return extensions;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public ResponseExtension getFirstExtensionOfType(Class<? extends ResponseExtension> clazz) {
|
public ResponseExtension getFirstExtensionOfType(Class<? extends ResponseExtension> clazz) {
|
||||||
return FluentIterable.from(extensions).filter(clazz).first().orNull();
|
return FluentIterable.from(extensions).filter(clazz).first().orNull();
|
||||||
|
@ -205,7 +205,7 @@ public class EppResponse extends ImmutableObject implements ResponseOrGreeting {
|
||||||
getFirstExtensionOfType(Class<? extends ResponseExtension>... classes) {
|
getFirstExtensionOfType(Class<? extends ResponseExtension>... classes) {
|
||||||
return getFirstExtensionOfType(ImmutableList.copyOf(classes));
|
return getFirstExtensionOfType(ImmutableList.copyOf(classes));
|
||||||
}
|
}
|
||||||
|
|
||||||
public Result getResult() {
|
public Result getResult() {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,7 +121,7 @@ public final class CreateLrpTokensCommand implements RemoteApiCommand {
|
||||||
/**
|
/**
|
||||||
* This function generates at MOST {@code count} tokens, after filtering out any token strings
|
* This function generates at MOST {@code count} tokens, after filtering out any token strings
|
||||||
* that already exist.
|
* that already exist.
|
||||||
*
|
*
|
||||||
* <p>Note that in the incredibly rare case that all generated tokens already exist, this function
|
* <p>Note that in the incredibly rare case that all generated tokens already exist, this function
|
||||||
* may return an empty set.
|
* may return an empty set.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -16,8 +16,8 @@ package google.registry.tools.params;
|
||||||
|
|
||||||
import google.registry.util.TypeUtils.TypeInstantiator;
|
import google.registry.util.TypeUtils.TypeInstantiator;
|
||||||
|
|
||||||
/** Base class for Enum-based parameters.
|
/** Base class for Enum-based parameters.
|
||||||
*
|
*
|
||||||
* <p>This is not necessary for single-value Enum parameters (i.e. arity = 1) as JCommander natively
|
* <p>This is not necessary for single-value Enum parameters (i.e. arity = 1) as JCommander natively
|
||||||
* supports them, but is necessary for variable-arity ({@code List<Enum>}) parameters.
|
* supports them, but is necessary for variable-arity ({@code List<Enum>}) parameters.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class PipelineUtils {
|
||||||
private static final String URL_PREFIX = "/_ah/pipeline/status.html?root=";
|
private static final String URL_PREFIX = "/_ah/pipeline/status.html?root=";
|
||||||
|
|
||||||
private PipelineUtils() {}
|
private PipelineUtils() {}
|
||||||
|
|
||||||
public static String createJobPath(String jobId) {
|
public static String createJobPath(String jobId) {
|
||||||
return URL_PREFIX + jobId;
|
return URL_PREFIX + jobId;
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ public final class TeeOutputStream extends OutputStream {
|
||||||
|
|
||||||
private final ImmutableList<? extends OutputStream> outputs;
|
private final ImmutableList<? extends OutputStream> outputs;
|
||||||
private boolean isClosed;
|
private boolean isClosed;
|
||||||
|
|
||||||
public TeeOutputStream(@WillNotClose Iterable<? extends OutputStream> outputs) {
|
public TeeOutputStream(@WillNotClose Iterable<? extends OutputStream> outputs) {
|
||||||
this.outputs = ImmutableList.copyOf(outputs);
|
this.outputs = ImmutableList.copyOf(outputs);
|
||||||
checkArgument(!this.outputs.isEmpty(), "must provide at least one output stream");
|
checkArgument(!this.outputs.isEmpty(), "must provide at least one output stream");
|
||||||
|
|
|
@ -70,7 +70,7 @@ public class EppLoginUserTest extends EppTestCase {
|
||||||
assertCommandAndResponse("logout.xml", "logout_response.xml");
|
assertCommandAndResponse("logout.xml", "logout_response.xml");
|
||||||
assertCommandAndResponse("login2_valid.xml", "login_response_unauthorized_role.xml");
|
assertCommandAndResponse("login2_valid.xml", "login_response_unauthorized_role.xml");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testLoginLogout_wrongPasswordStillWorks() throws Exception {
|
public void testLoginLogout_wrongPasswordStillWorks() throws Exception {
|
||||||
// For user-based logins the password in the epp xml is ignored.
|
// For user-based logins the password in the epp xml is ignored.
|
||||||
|
|
|
@ -368,7 +368,7 @@ public class RdeStagingActionTest extends MapreduceTestCase<RdeStagingAction> {
|
||||||
.containsExactly("New Registrar", "The Registrar");
|
.containsExactly("New Registrar", "The Registrar");
|
||||||
assertThat(mapifyCounts(header)).containsEntry(RdeResourceType.REGISTRAR.getUri(), 2L);
|
assertThat(mapifyCounts(header)).containsEntry(RdeResourceType.REGISTRAR.getUri(), 2L);
|
||||||
}
|
}
|
||||||
|
|
||||||
assertThat(
|
assertThat(
|
||||||
ofy().load().key(Cursor.createKey(RDE_STAGING, Registry.get("fop"))).now()
|
ofy().load().key(Cursor.createKey(RDE_STAGING, Registry.get("fop"))).now()
|
||||||
.getCursorTime())
|
.getCursorTime())
|
||||||
|
|
|
@ -27,7 +27,7 @@ import javax.inject.Named;
|
||||||
* A string generator that produces strings using sequential characters in its alphabet. This is
|
* A string generator that produces strings using sequential characters in its alphabet. This is
|
||||||
* most useful in tests as a "fake" password generator (which would otherwise use
|
* most useful in tests as a "fake" password generator (which would otherwise use
|
||||||
* {@link RandomStringGenerator}.
|
* {@link RandomStringGenerator}.
|
||||||
*
|
*
|
||||||
* <p>Note that consecutive calls to createString will continue where the last call left off in
|
* <p>Note that consecutive calls to createString will continue where the last call left off in
|
||||||
* the alphabet.
|
* the alphabet.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -142,7 +142,7 @@ public class CreateLrpTokensCommandTest extends CommandTestCase<CreateLrpTokensC
|
||||||
assertInStdout(String.format("domain%d.tld,LRP_%04d_abcdefghijklmnop", i, i));
|
assertInStdout(String.format("domain%d.tld,LRP_%04d_abcdefghijklmnop", i, i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testFailure_missingAssigneeOrFile() throws Exception {
|
public void testFailure_missingAssigneeOrFile() throws Exception {
|
||||||
thrown.expect(
|
thrown.expect(
|
||||||
|
@ -184,7 +184,7 @@ public class CreateLrpTokensCommandTest extends CommandTestCase<CreateLrpTokensC
|
||||||
.isEqualTo(expectedToken.getRedemptionHistoryEntry());
|
.isEqualTo(expectedToken.getRedemptionHistoryEntry());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private LrpToken createToken(
|
private LrpToken createToken(
|
||||||
String token,
|
String token,
|
||||||
String assignee,
|
String assignee,
|
||||||
|
|
|
@ -26,7 +26,7 @@ import org.junit.runners.JUnit4;
|
||||||
/** Unit tests for {@link EnumParameter}. */
|
/** Unit tests for {@link EnumParameter}. */
|
||||||
@RunWith(JUnit4.class)
|
@RunWith(JUnit4.class)
|
||||||
public class EnumParameterTest {
|
public class EnumParameterTest {
|
||||||
|
|
||||||
@Rule
|
@Rule
|
||||||
public final ExceptionRule thrown = new ExceptionRule();
|
public final ExceptionRule thrown = new ExceptionRule();
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ public class XmlTestUtils {
|
||||||
* key. We may have to update the key as well, to get the namespaces correct. A returned key of
|
* key. We may have to update the key as well, to get the namespaces correct. A returned key of
|
||||||
* null indicates that we should use the existing key. A non-null key indicates that we should
|
* null indicates that we should use the existing key. A non-null key indicates that we should
|
||||||
* replace the existing key.
|
* replace the existing key.
|
||||||
*
|
*
|
||||||
* @param elementName the name under which the current subtree was found, or null if the current
|
* @param elementName the name under which the current subtree was found, or null if the current
|
||||||
* subtree's name is nonexistent or irrelevant
|
* subtree's name is nonexistent or irrelevant
|
||||||
* @param obj the current subtree
|
* @param obj the current subtree
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue