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 String
getRefName()
boolean
isUpdated()
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.static ProjectConfigSchemaUpdate
read(MetaDataUpdate update)
void
removeForceFromPermission(String name)
void
save(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:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
getRefName
protected String getRefName()
- Specified by:
getRefName
in classVersionedMetaData
- Returns:
- name of the reference storing this configuration.
-
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
-
removeForceFromPermission
public void removeForceFromPermission(String name)
-
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
-
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()
-
-