Create ChangeUpdates with IdentifiedUsers rather than Accounts

Allows the user to be passed into MetaDataUpdate.create() so we can
create updates by arbitrary users, e.g. when posting a review on
behalf of someone else.

Change-Id: I71968d252e04651d7b597034fa17273e9749d0b0
This commit is contained in:
Dave Borowitz
2014-01-07 14:46:03 -08:00
parent be84639566
commit 4ceec6ebec
5 changed files with 240 additions and 134 deletions

View File

@@ -74,13 +74,14 @@ public class IdentifiedUser extends CurrentUser {
private final GroupBackend groupBackend;
@Inject
GenericFactory(
CapabilityControl.Factory capabilityControlFactory,
final AuthConfig authConfig,
final @AnonymousCowardName String anonymousCowardName,
final @CanonicalWebUrl Provider<String> canonicalUrl,
final Realm realm, final AccountCache accountCache,
final GroupBackend groupBackend) {
public GenericFactory(
@Nullable CapabilityControl.Factory capabilityControlFactory,
AuthConfig authConfig,
@AnonymousCowardName String anonymousCowardName,
@CanonicalWebUrl Provider<String> canonicalUrl,
Realm realm,
AccountCache accountCache,
GroupBackend groupBackend) {
this.capabilityControlFactory = capabilityControlFactory;
this.authConfig = authConfig;
this.anonymousCowardName = anonymousCowardName;