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 class
static class
Project name key. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SubmitType
Default submit type for root project (All-Projects).static final SubmitType
Default submit type for new projects. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Project.Builder
builder
(Project.NameKey nameKey) getBooleanConfig
(BooleanProjectConfig config) abstract com.google.common.collect.ImmutableMap
<BooleanProjectConfig, InheritableBoolean> abstract String
TheObjectId
as 40 digit hex ofrefs/meta/config
's HEAD.abstract String
abstract String
abstract String
abstract String
getName()
abstract Project.NameKey
abstract Project.NameKey
Name key of the parent project.getParent
(Project.NameKey allProjectsName) Returns the name key of the parent project.abstract ProjectState
getState()
abstract SubmitType
Submit type as configured inproject.config
.static Project.NameKey
abstract Project.Builder
final String
toString()
-
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.null
if this project is the wild project,null
or the name key of the wild project if this project is a direct child of the wild project. -
getMaxObjectSizeLimit
-
getDefaultDashboard
-
getLocalDefaultDashboard
-
getConfigRefState
TheObjectId
as 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,
null
if this project is the All-Projects project
-
getParentName
-
toString
-
toBuilder
-