public class VersionedAccountPreferences extends VersionedMetaData
VersionedMetaData.BatchMetaDataUpdate, VersionedMetaData.PathInfo
Modifier and Type | Field and Description |
---|---|
static String |
PREFERENCES |
inserter, newTree, reader, revision
Modifier and Type | Method and Description |
---|---|
static VersionedAccountPreferences |
forDefault() |
static VersionedAccountPreferences |
forUser(com.google.gerrit.reviewdb.client.Account.Id id) |
org.eclipse.jgit.lib.Config |
getConfig() |
protected String |
getRefName() |
boolean |
isDefaults() |
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.
|
commit, commitToNewRef, getObjectId, getPathInfos, getRevision, load, load, load, load, load, openUpdate, readConfig, readFile, readTree, readUTF8, saveConfig, saveFile, saveUTF8, set, set, set
public static final String PREFERENCES
public static VersionedAccountPreferences forUser(com.google.gerrit.reviewdb.client.Account.Id id)
public static VersionedAccountPreferences forDefault()
public boolean isDefaults()
protected String getRefName()
getRefName
in class VersionedMetaData
public org.eclipse.jgit.lib.Config getConfig()
protected void onLoad() throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
VersionedMetaData
onLoad
in class VersionedMetaData
IOException
org.eclipse.jgit.errors.ConfigInvalidException
protected boolean onSave(org.eclipse.jgit.lib.CommitBuilder commit) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
VersionedMetaData
onSave
in class VersionedMetaData
IOException
org.eclipse.jgit.errors.ConfigInvalidException