Package com.google.gerrit.entities
Class Project
java.lang.Object
com.google.gerrit.entities.Project
Projects match a source code repository managed by Gerrit
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classProject name key. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SubmitTypeDefault submit type for root project (All-Projects).static final SubmitTypeDefault submit type for new projects. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Project.Builderbuilder(Project.NameKey nameKey) getBooleanConfig(BooleanProjectConfig config) abstract com.google.common.collect.ImmutableMap<BooleanProjectConfig, InheritableBoolean> abstract StringTheObjectIdas 40 digit hex ofrefs/meta/config's HEAD.abstract Stringabstract Stringabstract Stringabstract StringgetName()abstract Project.NameKeyabstract Project.NameKeyName key of the parent project.getParent(Project.NameKey allProjectsName) Returns the name key of the parent project.abstract ProjectStategetState()abstract SubmitTypeSubmit type as configured inproject.config.static Project.NameKeyabstract Project.Builderfinal StringtoString()
-
Field Details
-
DEFAULT_SUBMIT_TYPE
Default submit type for new projects. -
DEFAULT_ALL_PROJECTS_SUBMIT_TYPE
Default submit type for root project (All-Projects).
-
-
Constructor Details
-
Project
public Project()
-
-
Method Details
-
nameKey
-
getNameKey
-
getDescription
-
getBooleanConfigs
public abstract com.google.common.collect.ImmutableMap<BooleanProjectConfig,InheritableBoolean> getBooleanConfigs() -
getSubmitType
Submit type as configured inproject.config.Does not take inheritance into account, i.e. may return
SubmitType.INHERIT. -
getState
-
getParent
Name key of the parent project.nullif this project is the wild project,nullor the name key of the wild project if this project is a direct child of the wild project. -
getMaxObjectSizeLimit
-
getDefaultDashboard
-
getLocalDefaultDashboard
-
getConfigRefState
TheObjectIdas 40 digit hex ofrefs/meta/config's HEAD. -
builder
-
getName
-
getBooleanConfig
-
getParent
Returns the name key of the parent project.- Parameters:
allProjectsName- name key of the wild project- Returns:
- name key of the parent project,
nullif this project is the All-Projects project
-
getParentName
-
toString
-
toBuilder
-