Package com.google.gerrit.server.account
Class AccountProperties
java.lang.Object
com.google.gerrit.server.account.AccountProperties
Parses/writes account properties from/to a
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 displayName = John 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.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic void
writeToAccountConfig
(AccountDelta accountDelta, org.eclipse.jgit.lib.Config cfg)
-
Field Details
-
ACCOUNT_CONFIG
- See Also:
-
ACCOUNT
- See Also:
-
KEY_ACTIVE
- See Also:
-
KEY_FULL_NAME
- See Also:
-
KEY_DISPLAY_NAME
- See Also:
-
KEY_PREFERRED_EMAIL
- See Also:
-
KEY_STATUS
- See Also:
-
-
Method Details
-
getRegisteredOn
-
writeToAccountConfig
-