public class AccountProperties
extends java.lang.Object
Config
file.
This is a low-level API. Read/write of account properties in a user branch should be done
through AccountsUpdate
or AccountConfig
.
The config file has one 'account' section with the properties of the account:
[account] active = false fullName = John Doe preferredEmail = [email protected] status = Overloaded with reviews
All keys are optional.
Not setting a key and setting a key to an empty string are treated the same way and result in
a null
value.
If no value for 'active' is specified, by default the account is considered as active.
The account is lazily parsed.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCOUNT |
static java.lang.String |
ACCOUNT_CONFIG |
static java.lang.String |
KEY_ACTIVE |
static java.lang.String |
KEY_FULL_NAME |
static java.lang.String |
KEY_PREFERRED_EMAIL |
static java.lang.String |
KEY_STATUS |
Modifier and Type | Method and Description |
---|---|
java.sql.Timestamp |
getRegisteredOn() |
static void |
writeToAccountConfig(InternalAccountUpdate accountUpdate,
org.eclipse.jgit.lib.Config cfg) |
public static final java.lang.String ACCOUNT_CONFIG
public static final java.lang.String ACCOUNT
public static final java.lang.String KEY_ACTIVE
public static final java.lang.String KEY_FULL_NAME
public static final java.lang.String KEY_PREFERRED_EMAIL
public static final java.lang.String KEY_STATUS
public java.sql.Timestamp getRegisteredOn()
public static void writeToAccountConfig(InternalAccountUpdate accountUpdate, org.eclipse.jgit.lib.Config cfg)