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
  • Field Details

    • 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).
  • Constructor Details

    • Project

      public Project()
  • Method Details

    • 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 in project.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()
      The ObjectId as 40 digit hex of refs/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()
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • toBuilder

      public abstract Project.Builder toBuilder()