Package com.google.gerrit.pgm.init.api
Class AllProjectsConfig
- java.lang.Object
-
- com.google.gerrit.server.git.meta.VersionedMetaData
-
- com.google.gerrit.pgm.init.api.VersionedMetaDataOnInit
-
- com.google.gerrit.pgm.init.api.AllProjectsConfig
-
public class AllProjectsConfig extends VersionedMetaDataOnInit
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gerrit.server.git.meta.VersionedMetaData
VersionedMetaData.BatchMetaDataUpdate, VersionedMetaData.PathInfo
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.pgm.init.api.VersionedMetaDataOnInit
project
-
Fields inherited from class com.google.gerrit.server.git.meta.VersionedMetaData
inserter, newTree, projectName, reader, revision, rw
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jgit.lib.Config
getConfig()
GroupList
getGroups()
AllProjectsConfig
load()
protected void
onLoad()
Set up the metadata, parsing any state from the loaded revision.protected boolean
onSave(org.eclipse.jgit.lib.CommitBuilder commit)
Save any changes to the metadata in a commit.void
save(String pluginName, String message)
protected void
save(org.eclipse.jgit.lib.PersonIdent ident, String msg)
-
Methods inherited from class com.google.gerrit.pgm.init.api.VersionedMetaDataOnInit
getRefName, save
-
Methods inherited from class com.google.gerrit.server.git.meta.VersionedMetaData
commit, commitToNewRef, getObjectId, getPathInfos, getRevision, load, load, load, load, load, openUpdate, readConfig, readConfig, readFile, readTree, readUTF8, saveConfig, saveFile, saveUTF8, set, set, set
-
-
-
-
Method Detail
-
getConfig
public org.eclipse.jgit.lib.Config getConfig()
-
getGroups
public GroupList getGroups()
-
load
public AllProjectsConfig load() throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
- Overrides:
load
in classVersionedMetaDataOnInit
- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
onLoad
protected void onLoad() throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
Description copied from class:VersionedMetaData
Set up the metadata, parsing any state from the loaded revision.- Specified by:
onLoad
in classVersionedMetaData
- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
save
public void save(String pluginName, String message) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
save
protected void save(org.eclipse.jgit.lib.PersonIdent ident, String msg) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
- Overrides:
save
in classVersionedMetaDataOnInit
- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
onSave
protected boolean onSave(org.eclipse.jgit.lib.CommitBuilder commit) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
Description copied from class:VersionedMetaData
Save any changes to the metadata in a commit.- Specified by:
onSave
in classVersionedMetaData
- Returns:
- true if the commit should proceed, false to abort.
- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
-