Package com.google.gerrit.server.account
Class CachedAccountDetails
java.lang.Object
com.google.gerrit.server.account.CachedAccountDetails
Details of an account that are cached persistently in
AccountCache
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
Serializer used to read this entity from and write it to a persistent storage. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Account
account()
Essential attributes of the account, such as name or registration time.static CachedAccountDetails
create
(Account account, com.google.common.collect.ImmutableMap<ProjectWatches.ProjectWatchKey, com.google.common.collect.ImmutableSet<NotifyConfig.NotifyType>> projectWatches, CachedPreferences preferences) abstract CachedPreferences
Preferences that this user has.abstract com.google.common.collect.ImmutableMap<ProjectWatches.ProjectWatchKey,
com.google.common.collect.ImmutableSet<NotifyConfig.NotifyType>> Projects that the user has configured to watch.
-
Constructor Details
-
CachedAccountDetails
public CachedAccountDetails()
-
-
Method Details
-
account
Essential attributes of the account, such as name or registration time. -
projectWatches
public abstract com.google.common.collect.ImmutableMap<ProjectWatches.ProjectWatchKey,com.google.common.collect.ImmutableSet<NotifyConfig.NotifyType>> projectWatches()Projects that the user has configured to watch. -
preferences
Preferences that this user has. Serialized as Git-config style string. -
create
public static CachedAccountDetails create(Account account, com.google.common.collect.ImmutableMap<ProjectWatches.ProjectWatchKey, com.google.common.collect.ImmutableSet<NotifyConfig.NotifyType>> projectWatches, CachedPreferences preferences)
-