Package com.google.gerrit.server.account
Class AccountLoader
java.lang.Object
com.google.gerrit.server.account.AccountLoader
AccountLoader is the class that populates properties of the AccountInfo provided to it.
The class is designed to be used in the following way:
- Call
get
to get AccountInfo for a given id that will be filled on next fill. - Call
put
to provide AccountInfo that will be filled on the next fill. - Call
fill
to populate properties of the AccountInfo. - Call
get
if needed again to get filled AccountInfo.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
fill()
void
fill
(Collection<? extends AccountInfo> infos) fillOne
(Account.Id id) Same asfill()
, but also create and populateAccountInfo
for provided id.get
(Account.Id id) Return AccountInfo for given id.void
put
(AccountInfo info) Provide AccountInfo that will be filled on the next fill.
-
Field Details
-
DETAILED_OPTIONS
-
-
Method Details
-
get
Return AccountInfo for given id.If called before
fill
the AccountInfo is unfilled and will be filled on next call to fill.If called after
fill
will return filled AccountInfo only if account with this id was specified in one ofget
orput
call before the call tofill
. Otherwise, returns unfilled AccountInfo. -
put
Provide AccountInfo that will be filled on the next fill. -
fill
- Throws:
PermissionBackendException
-
fill
- Throws:
PermissionBackendException
-
fillOne
Same asfill()
, but also create and populateAccountInfo
for provided id.- Throws:
PermissionBackendException
-