Class Project


  • public abstract class Project
    extends Object
    Projects match a source code repository managed by Gerrit
    • 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).
    • Constructor Detail

      • Project

        public Project()
    • Method Detail

      • getDescription

        public abstract String getDescription()
      • getSubmitType

        public abstract SubmitType getSubmitType()
        Submit type as configured in project.config.

        Does not take inheritance into account, i.e. may return SubmitType.INHERIT.

      • 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.
      • getName

        public String getName()
      • 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()