Package com.google.gerrit.server.account
Class AccountProperties
- java.lang.Object
-
- com.google.gerrit.server.account.AccountProperties
-
public class AccountProperties extends Object
Parses/writes account properties from/to aConfig
file.This is a low-level API. Read/write of account properties in a user branch should be done through
AccountsUpdate
orAccountConfig
.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 Modifier and Type Field Description static String
ACCOUNT
static String
ACCOUNT_CONFIG
static String
KEY_ACTIVE
static String
KEY_DISPLAY_NAME
static String
KEY_FULL_NAME
static String
KEY_PREFERRED_EMAIL
static String
KEY_STATUS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Instant
getRegisteredOn()
static void
writeToAccountConfig(AccountDelta accountDelta, org.eclipse.jgit.lib.Config cfg)
-
-
-
Field Detail
-
ACCOUNT_CONFIG
public static final String ACCOUNT_CONFIG
- See Also:
- Constant Field Values
-
ACCOUNT
public static final String ACCOUNT
- See Also:
- Constant Field Values
-
KEY_ACTIVE
public static final String KEY_ACTIVE
- See Also:
- Constant Field Values
-
KEY_FULL_NAME
public static final String KEY_FULL_NAME
- See Also:
- Constant Field Values
-
KEY_DISPLAY_NAME
public static final String KEY_DISPLAY_NAME
- See Also:
- Constant Field Values
-
KEY_PREFERRED_EMAIL
public static final String KEY_PREFERRED_EMAIL
- See Also:
- Constant Field Values
-
KEY_STATUS
public static final String KEY_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRegisteredOn
public Instant getRegisteredOn()
-
writeToAccountConfig
public static void writeToAccountConfig(AccountDelta accountDelta, org.eclipse.jgit.lib.Config cfg)
-
-