Package com.google.gerrit.entities
Class Project
- java.lang.Object
-
- com.google.gerrit.entities.Project
-
public abstract class Project extends Object
Projects match a source code repository managed by Gerrit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Project.Builder
static class
Project.NameKey
Project name key.
-
Field Summary
Fields Modifier and Type Field Description static SubmitType
DEFAULT_ALL_PROJECTS_SUBMIT_TYPE
Default submit type for root project (All-Projects).static SubmitType
DEFAULT_SUBMIT_TYPE
Default submit type for new projects.
-
Constructor Summary
Constructors Constructor Description Project()
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_SUBMIT_TYPE
public static final SubmitType DEFAULT_SUBMIT_TYPE
Default submit type for new projects.
-
DEFAULT_ALL_PROJECTS_SUBMIT_TYPE
public static final SubmitType DEFAULT_ALL_PROJECTS_SUBMIT_TYPE
Default submit type for root project (All-Projects).
-
-
Method Detail
-
nameKey
public static Project.NameKey nameKey(String name)
-
getNameKey
public abstract Project.NameKey getNameKey()
-
getDescription
public abstract String getDescription()
-
getBooleanConfigs
public abstract com.google.common.collect.ImmutableMap<BooleanProjectConfig,InheritableBoolean> getBooleanConfigs()
-
getSubmitType
public abstract SubmitType getSubmitType()
Submit type as configured inproject.config
.Does not take inheritance into account, i.e. may return
SubmitType.INHERIT
.
-
getState
public abstract ProjectState getState()
-
getParent
public abstract Project.NameKey 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
public abstract String getMaxObjectSizeLimit()
-
getDefaultDashboard
public abstract String getDefaultDashboard()
-
getLocalDefaultDashboard
public abstract String getLocalDefaultDashboard()
-
getConfigRefState
public abstract String getConfigRefState()
TheObjectId
as 40 digit hex ofrefs/meta/config
's HEAD.
-
builder
public static Project.Builder builder(Project.NameKey nameKey)
-
getName
public String getName()
-
getBooleanConfig
public InheritableBoolean getBooleanConfig(BooleanProjectConfig config)
-
getParent
public Project.NameKey getParent(Project.NameKey allProjectsName)
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
public String getParentName()
-
toBuilder
public abstract Project.Builder toBuilder()
-
-