public class ProjectConfigEntry extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProjectConfigEntry.Type |
static class |
ProjectConfigEntry.UpdateChecker |
Constructor and Description |
---|
ProjectConfigEntry(String displayName,
boolean defaultValue) |
ProjectConfigEntry(String displayName,
boolean defaultValue,
String description) |
ProjectConfigEntry(String displayName,
int defaultValue) |
ProjectConfigEntry(String displayName,
int defaultValue,
boolean inheritable) |
ProjectConfigEntry(String displayName,
int defaultValue,
boolean inheritable,
String description) |
ProjectConfigEntry(String displayName,
long defaultValue) |
ProjectConfigEntry(String displayName,
long defaultValue,
boolean inheritable) |
ProjectConfigEntry(String displayName,
long defaultValue,
boolean inheritable,
String description) |
ProjectConfigEntry(String displayName,
String defaultValue) |
ProjectConfigEntry(String displayName,
String defaultValue,
boolean inheritable) |
ProjectConfigEntry(String displayName,
String defaultValue,
boolean inheritable,
String description) |
ProjectConfigEntry(String displayName,
String defaultValue,
List<String> permittedValues) |
ProjectConfigEntry(String displayName,
String defaultValue,
List<String> permittedValues,
boolean inheritable) |
ProjectConfigEntry(String displayName,
String defaultValue,
List<String> permittedValues,
boolean inheritable,
String description) |
ProjectConfigEntry(String displayName,
String defaultValue,
ProjectConfigEntry.Type type,
List<String> permittedValues,
boolean inheritable,
String description) |
ProjectConfigEntry(String displayName,
T defaultValue,
Class<T> permittedValues) |
ProjectConfigEntry(String displayName,
T defaultValue,
Class<T> permittedValues,
boolean inheritable) |
ProjectConfigEntry(String displayName,
T defaultValue,
Class<T> permittedValues,
boolean inheritable,
String description) |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultValue() |
String |
getDescription() |
String |
getDisplayName() |
List<String> |
getPermittedValues() |
ProjectConfigEntry.Type |
getType() |
String |
getWarning(ProjectState project) |
boolean |
isEditable(ProjectState project) |
boolean |
isInheritable() |
void |
onUpdate(com.google.gerrit.reviewdb.client.Project.NameKey project,
Boolean oldValue,
Boolean newValue)
Called after a project config is updated.
|
void |
onUpdate(com.google.gerrit.reviewdb.client.Project.NameKey project,
Integer oldValue,
Integer newValue)
Called after a project config is updated.
|
void |
onUpdate(com.google.gerrit.reviewdb.client.Project.NameKey project,
Long oldValue,
Long newValue)
Called after a project config is updated.
|
void |
onUpdate(com.google.gerrit.reviewdb.client.Project.NameKey project,
String oldValue,
String newValue)
Called after a project config is updated.
|
public ProjectConfigEntry(String displayName, String defaultValue, boolean inheritable)
public ProjectConfigEntry(String displayName, String defaultValue, boolean inheritable, String description)
public ProjectConfigEntry(String displayName, int defaultValue)
public ProjectConfigEntry(String displayName, int defaultValue, boolean inheritable)
public ProjectConfigEntry(String displayName, int defaultValue, boolean inheritable, String description)
public ProjectConfigEntry(String displayName, long defaultValue)
public ProjectConfigEntry(String displayName, long defaultValue, boolean inheritable)
public ProjectConfigEntry(String displayName, long defaultValue, boolean inheritable, String description)
public ProjectConfigEntry(String displayName, boolean defaultValue)
public ProjectConfigEntry(String displayName, boolean defaultValue, String description)
public ProjectConfigEntry(String displayName, String defaultValue, List<String> permittedValues)
public ProjectConfigEntry(String displayName, String defaultValue, List<String> permittedValues, boolean inheritable)
public ProjectConfigEntry(String displayName, String defaultValue, List<String> permittedValues, boolean inheritable, String description)
public ProjectConfigEntry(String displayName, T defaultValue, Class<T> permittedValues)
public ProjectConfigEntry(String displayName, T defaultValue, Class<T> permittedValues, boolean inheritable)
public ProjectConfigEntry(String displayName, T defaultValue, Class<T> permittedValues, boolean inheritable, String description)
public String getDisplayName()
public String getDescription()
public boolean isInheritable()
public String getDefaultValue()
public ProjectConfigEntry.Type getType()
public boolean isEditable(ProjectState project)
project
- project state.public String getWarning(ProjectState project)
project
- project state.public void onUpdate(com.google.gerrit.reviewdb.client.Project.NameKey project, String oldValue, String newValue)
project
- project name.oldValue
- old entry value.newValue
- new entry value.public void onUpdate(com.google.gerrit.reviewdb.client.Project.NameKey project, Boolean oldValue, Boolean newValue)
project
- project name.oldValue
- old entry value.newValue
- new entry value.public void onUpdate(com.google.gerrit.reviewdb.client.Project.NameKey project, Integer oldValue, Integer newValue)
project
- project name.oldValue
- old entry value.newValue
- new entry value.