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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user