1
0
mirror of https://github.com/google/nomulus synced 2026-01-03 19:54:18 +00:00

Add extra flow logic hooks for info and update

This CL adds the hooks necessary to implement TLD-specific flow info and update flow logic. Usage of the hooks follows in a separate CL.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=130108832
This commit is contained in:
mountford
2016-08-12 09:41:48 -07:00
committed by Ben McIlwain
parent e55ed209c5
commit 0066a03709
18 changed files with 397 additions and 16 deletions

View File

@@ -30,4 +30,10 @@ import javax.xml.bind.annotation.XmlRootElement;
public class FlagsInfoResponseExtension implements ResponseExtension {
@XmlElement(name = "flag")
List<String> flags;
public static FlagsInfoResponseExtension create(List<String> flags) {
FlagsInfoResponseExtension extension = new FlagsInfoResponseExtension();
extension.flags = flags;
return extension;
}
}

View File

@@ -24,4 +24,8 @@ import javax.xml.bind.annotation.XmlElement;
public class FlagsList {
@XmlElement(name = "flag")
List<String> flags;
public List<String> getFlags() {
return flags;
}
}

View File

@@ -30,4 +30,12 @@ import javax.xml.bind.annotation.XmlType;
public class FlagsUpdateCommandExtension implements CommandExtension {
FlagsList add; // list of flags to be added (turned on)
FlagsList rem; // list of flags to be removed (turned off)
public FlagsList getAddFlags() {
return add;
}
public FlagsList getRemoveFlags() {
return rem;
}
}