mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 08:27:14 +02: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:
parent
e55ed209c5
commit
0066a03709
18 changed files with 397 additions and 16 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue