Package com.google.gerrit.entities
Enum BooleanProjectConfig
- java.lang.Object
-
- java.lang.Enum<BooleanProjectConfig>
-
- com.google.gerrit.entities.BooleanProjectConfig
-
- All Implemented Interfaces:
Serializable
,Comparable<BooleanProjectConfig>
public enum BooleanProjectConfig extends Enum<BooleanProjectConfig>
Contains all inheritable boolean project configs and maps internal representations to API objects.Perform the following steps for adding a new inheritable boolean project config:
- Add a field to
ConfigInput
- Add a field to
ConfigInfo
- Add the config to this enum
- Add API mappers to
BooleanProjectConfigTransformations
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
String
getSection()
String
getSubSection()
static BooleanProjectConfig
valueOf(String name)
Returns the enum constant of this type with the specified name.static BooleanProjectConfig[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USE_CONTRIBUTOR_AGREEMENTS
public static final BooleanProjectConfig USE_CONTRIBUTOR_AGREEMENTS
-
USE_SIGNED_OFF_BY
public static final BooleanProjectConfig USE_SIGNED_OFF_BY
-
USE_CONTENT_MERGE
public static final BooleanProjectConfig USE_CONTENT_MERGE
-
REQUIRE_CHANGE_ID
public static final BooleanProjectConfig REQUIRE_CHANGE_ID
-
CREATE_NEW_CHANGE_FOR_ALL_NOT_IN_TARGET
public static final BooleanProjectConfig CREATE_NEW_CHANGE_FOR_ALL_NOT_IN_TARGET
-
ENABLE_SIGNED_PUSH
public static final BooleanProjectConfig ENABLE_SIGNED_PUSH
-
REQUIRE_SIGNED_PUSH
public static final BooleanProjectConfig REQUIRE_SIGNED_PUSH
-
REJECT_IMPLICIT_MERGES
public static final BooleanProjectConfig REJECT_IMPLICIT_MERGES
-
PRIVATE_BY_DEFAULT
public static final BooleanProjectConfig PRIVATE_BY_DEFAULT
-
ENABLE_REVIEWER_BY_EMAIL
public static final BooleanProjectConfig ENABLE_REVIEWER_BY_EMAIL
-
MATCH_AUTHOR_TO_COMMITTER_DATE
public static final BooleanProjectConfig MATCH_AUTHOR_TO_COMMITTER_DATE
-
REJECT_EMPTY_COMMIT
public static final BooleanProjectConfig REJECT_EMPTY_COMMIT
-
WORK_IN_PROGRESS_BY_DEFAULT
public static final BooleanProjectConfig WORK_IN_PROGRESS_BY_DEFAULT
-
-
Method Detail
-
values
public static BooleanProjectConfig[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BooleanProjectConfig c : BooleanProjectConfig.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BooleanProjectConfig valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getSection
public String getSection()
-
getSubSection
public String getSubSection()
-
getName
public String getName()
-
-