Package com.google.gerrit.server.project
Class ProjectLevelConfig
- java.lang.Object
- 
- com.google.gerrit.server.git.meta.VersionedMetaData
- 
- com.google.gerrit.server.project.ProjectLevelConfig
 
 
- 
 public class ProjectLevelConfig extends VersionedMetaData Configuration file in the projects refs/meta/config branch.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.google.gerrit.server.git.meta.VersionedMetaDataVersionedMetaData.BatchMetaDataUpdate, VersionedMetaData.PathInfo
 
- 
 - 
Field Summary- 
Fields inherited from class com.google.gerrit.server.git.meta.VersionedMetaDatainserter, newTree, projectName, reader, revision, rw
 
- 
 - 
Constructor SummaryConstructors Constructor Description ProjectLevelConfig(String fileName, ProjectState project)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jgit.lib.Configget()protected StringgetRefName()org.eclipse.jgit.lib.ConfiggetWithInheritance()org.eclipse.jgit.lib.ConfiggetWithInheritance(boolean merge)Get a Config that includes the values from all parent projects.protected voidonLoad()Set up the metadata, parsing any state from the loaded revision.protected booleanonSave(org.eclipse.jgit.lib.CommitBuilder commit)Save any changes to the metadata in a commit.- 
Methods inherited from class com.google.gerrit.server.git.meta.VersionedMetaDatacommit, commitToNewRef, getObjectId, getPathInfos, getRevision, load, load, load, load, load, openUpdate, readConfig, readConfig, readFile, readTree, readUTF8, saveConfig, saveFile, saveUTF8, set, set, set
 
- 
 
- 
- 
- 
Constructor Detail- 
ProjectLevelConfigpublic ProjectLevelConfig(String fileName, ProjectState project) 
 
- 
 - 
Method Detail- 
getRefNameprotected String getRefName() - Specified by:
- getRefNamein class- VersionedMetaData
- Returns:
- name of the reference storing this configuration.
 
 - 
onLoadprotected void onLoad() throws IOException, org.eclipse.jgit.errors.ConfigInvalidExceptionDescription copied from class:VersionedMetaDataSet up the metadata, parsing any state from the loaded revision.- Specified by:
- onLoadin class- VersionedMetaData
- Throws:
- IOException
- org.eclipse.jgit.errors.ConfigInvalidException
 
 - 
getpublic org.eclipse.jgit.lib.Config get() 
 - 
getWithInheritancepublic org.eclipse.jgit.lib.Config getWithInheritance() 
 - 
getWithInheritancepublic org.eclipse.jgit.lib.Config getWithInheritance(boolean merge) Get a Config that includes the values from all parent projects.Merging means that matching sections/subsection will be merged to include the values from both parent and child config. No merging means that matching sections/subsections in the child project will replace the corresponding value from the parent. - Parameters:
- merge- whether to merge parent values with child values or not.
- Returns:
- a combined config.
 
 - 
onSaveprotected boolean onSave(org.eclipse.jgit.lib.CommitBuilder commit) throws IOException, org.eclipse.jgit.errors.ConfigInvalidExceptionDescription copied from class:VersionedMetaDataSave any changes to the metadata in a commit.- Specified by:
- onSavein class- VersionedMetaData
- Returns:
- true if the commit should proceed, false to abort.
- Throws:
- IOException
- org.eclipse.jgit.errors.ConfigInvalidException
 
 
- 
 
-