Package com.google.gerrit.server.schema
Class ProjectConfigSchemaUpdate
- java.lang.Object
-
- com.google.gerrit.server.git.VersionedMetaData
-
- com.google.gerrit.server.schema.ProjectConfigSchemaUpdate
-
public class ProjectConfigSchemaUpdate extends VersionedMetaData
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gerrit.server.git.VersionedMetaData
VersionedMetaData.BatchMetaDataUpdate, VersionedMetaData.PathInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetRefName()booleanisUpdated()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.static ProjectConfigSchemaUpdateread(MetaDataUpdate update)voidremoveForceFromPermission(String name)voidsave(org.eclipse.jgit.lib.PersonIdent personIdent, String commitMessage)-
Methods inherited from class com.google.gerrit.server.git.VersionedMetaData
commit, commitToNewRef, getObjectId, getPathInfos, getRevision, load, load, load, load, load, openUpdate, readConfig, readFile, readTree, readUTF8, saveConfig, saveFile, saveUTF8, set, set, set
-
-
-
-
Method Detail
-
read
public static ProjectConfigSchemaUpdate read(MetaDataUpdate update) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
- Throws:
IOExceptionorg.eclipse.jgit.errors.ConfigInvalidException
-
getRefName
protected String getRefName()
- Specified by:
getRefNamein classVersionedMetaData- Returns:
- name of the reference storing this configuration.
-
onLoad
protected 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 classVersionedMetaData- Throws:
IOExceptionorg.eclipse.jgit.errors.ConfigInvalidException
-
removeForceFromPermission
public void removeForceFromPermission(String name)
-
onSave
protected 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 classVersionedMetaData- Returns:
- true if the commit should proceed, false to abort.
- Throws:
IOExceptionorg.eclipse.jgit.errors.ConfigInvalidException
-
save
public void save(org.eclipse.jgit.lib.PersonIdent personIdent, String commitMessage) throws com.google.gwtorm.server.OrmException- Throws:
com.google.gwtorm.server.OrmException
-
isUpdated
public boolean isUpdated()
-
-