当前位置: 首页>>代码示例>>Java>>正文


Java IdentifiedUser.GenericFactory方法代码示例

本文整理汇总了Java中com.google.gerrit.server.IdentifiedUser.GenericFactory方法的典型用法代码示例。如果您正苦于以下问题:Java IdentifiedUser.GenericFactory方法的具体用法?Java IdentifiedUser.GenericFactory怎么用?Java IdentifiedUser.GenericFactory使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.gerrit.server.IdentifiedUser的用法示例。


在下文中一共展示了IdentifiedUser.GenericFactory方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: CreateBatchUser

import com.google.gerrit.server.IdentifiedUser; //导入方法依赖的package包/类
@Inject
public CreateBatchUser(@PluginName String pluginName, SchemaFactory<ReviewDb> schema,
					   PluginConfigFactory configFactory, SshKeyCache sshKeyCache, VersionedAuthorizedKeys.Accessor authorizedKeys,
					   AccountCache accountCache, AccountByEmailCache byEmailCache, AccountLoader.Factory infoLoader,
					   GroupsCollection groupsCollection, WorkQueue queue, ThreadLocalRequestContext context,
					   IdentifiedUser.GenericFactory userFactory) {
	this.schema = schema;
	this.sshKeyCache = sshKeyCache;
	this.authorizedKeys = authorizedKeys;
	this.accountCache = accountCache;
	this.byEmailCache = byEmailCache;
	this.infoLoader = infoLoader;
	this.groupsCollection = groupsCollection;
	this.context = context;
	this.userFactory = userFactory;
	pluginConfig = configFactory.getFromGerritConfig(pluginName);
	username = pluginConfig.getString("username", "jenkins");
	sshKey = pluginConfig.getString("sshKey");
	name = pluginConfig.getString("name", "Batch user");
	executor = queue.getDefaultQueue();

	createBatchUserIfNotExistsYet();
}
 
开发者ID:atteo,项目名称:jfactory,代码行数:24,代码来源:CreateBatchUser.java

示例2: Context

import com.google.gerrit.server.IdentifiedUser; //导入方法依赖的package包/类
Context(
    SchemaFactory<ReviewDb> schemaFactory,
    IdentifiedUser.GenericFactory userFactory,
    Account.Id accountId,
    Project.NameKey project) {
  this.schemaFactory = schemaFactory;
  this.userFactory = userFactory;
  this.accountId = accountId;
  this.project = project;
  map = new HashMap<>();
  cleanup = new RequestCleanup();
  map.put(DB_KEY, new RequestScopedReviewDbProvider(schemaFactory, Providers.of(cleanup)));
  map.put(RC_KEY, cleanup);

  IdentifiedUser user = userFactory.create(accountId);
  user.setAccessPath(AccessPath.GIT);
  map.put(USER_KEY, user);
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:19,代码来源:InProcessProtocol.java

示例3: PullRequestCreateChange

import com.google.gerrit.server.IdentifiedUser; //导入方法依赖的package包/类
@Inject
PullRequestCreateChange(
    ChangeInserter.Factory changeInserterFactory,
    PatchSetInserter.Factory patchSetInserterFactory,
    ProjectControl.Factory projectControlFactory,
    IdentifiedUser.GenericFactory userFactory,
    Provider<InternalChangeQuery> queryProvider,
    BatchUpdate.Factory batchUpdateFactory,
    ChangeQueryProcessor qp,
    ChangeQueryBuilder changeQuery) {
  this.changeInserterFactory = changeInserterFactory;
  this.patchSetInserterFactory = patchSetInserterFactory;
  this.projectControlFactory = projectControlFactory;
  this.userFactory = userFactory;
  this.queryProvider = queryProvider;
  this.updateFactory = batchUpdateFactory;
  this.qp = qp;
  this.changeQuery = changeQuery;
}
 
开发者ID:GerritCodeReview,项目名称:plugins_github,代码行数:20,代码来源:PullRequestCreateChange.java

示例4: EmailMerge

import com.google.gerrit.server.IdentifiedUser; //导入方法依赖的package包/类
@Inject
EmailMerge(
    @SendEmailExecutor ExecutorService executor,
    MergedSender.Factory mergedSenderFactory,
    SchemaFactory<ReviewDb> schemaFactory,
    ThreadLocalRequestContext requestContext,
    IdentifiedUser.GenericFactory identifiedUserFactory,
    @Assisted Project.NameKey project,
    @Assisted Change.Id changeId,
    @Assisted @Nullable Account.Id submitter,
    @Assisted NotifyHandling notifyHandling,
    @Assisted ListMultimap<RecipientType, Account.Id> accountsToNotify) {
  this.sendEmailsExecutor = executor;
  this.mergedSenderFactory = mergedSenderFactory;
  this.schemaFactory = schemaFactory;
  this.requestContext = requestContext;
  this.identifiedUserFactory = identifiedUserFactory;
  this.project = project;
  this.changeId = changeId;
  this.submitter = submitter;
  this.notifyHandling = notifyHandling;
  this.accountsToNotify = accountsToNotify;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:24,代码来源:EmailMerge.java

示例5: SetAssigneeOp

import com.google.gerrit.server.IdentifiedUser; //导入方法依赖的package包/类
@Inject
SetAssigneeOp(
    ChangeMessagesUtil cmUtil,
    DynamicSet<AssigneeValidationListener> validationListeners,
    AssigneeChanged assigneeChanged,
    SetAssigneeSender.Factory setAssigneeSenderFactory,
    Provider<IdentifiedUser> user,
    IdentifiedUser.GenericFactory userFactory,
    @Assisted IdentifiedUser newAssignee) {
  this.cmUtil = cmUtil;
  this.validationListeners = validationListeners;
  this.assigneeChanged = assigneeChanged;
  this.setAssigneeSenderFactory = setAssigneeSenderFactory;
  this.user = user;
  this.userFactory = userFactory;
  this.newAssignee = checkNotNull(newAssignee, "assignee");
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:18,代码来源:SetAssigneeOp.java

示例6: MergeUtil

import com.google.gerrit.server.IdentifiedUser; //导入方法依赖的package包/类
@AssistedInject
MergeUtil(
    @GerritServerConfig Config serverConfig,
    Provider<ReviewDb> db,
    IdentifiedUser.GenericFactory identifiedUserFactory,
    @CanonicalWebUrl @Nullable Provider<String> urlProvider,
    ApprovalsUtil approvalsUtil,
    @Assisted ProjectState project,
    PluggableCommitMessageGenerator commitMessageGenerator,
    @Assisted boolean useContentMerge) {
  this.db = db;
  this.identifiedUserFactory = identifiedUserFactory;
  this.urlProvider = urlProvider;
  this.approvalsUtil = approvalsUtil;
  this.project = project;
  this.useContentMerge = useContentMerge;
  this.useRecursiveMerge = useRecursiveMerge(serverConfig);
  this.commitMessageGenerator = commitMessageGenerator;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:20,代码来源:MergeUtil.java

示例7: AccountsCollection

import com.google.gerrit.server.IdentifiedUser; //导入方法依赖的package包/类
@Inject
AccountsCollection(
    Provider<CurrentUser> self,
    AccountResolver resolver,
    AccountControl.Factory accountControlFactory,
    IdentifiedUser.GenericFactory userFactory,
    Provider<QueryAccounts> list,
    DynamicMap<RestView<AccountResource>> views,
    CreateAccount.Factory createAccountFactory) {
  this.self = self;
  this.resolver = resolver;
  this.accountControlFactory = accountControlFactory;
  this.userFactory = userFactory;
  this.list = list;
  this.views = views;
  this.createAccountFactory = createAccountFactory;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:18,代码来源:AccountsCollection.java

示例8: ListGroups

import com.google.gerrit.server.IdentifiedUser; //导入方法依赖的package包/类
@Inject
protected ListGroups(
    final GroupCache groupCache,
    final GroupControl.Factory groupControlFactory,
    final GroupControl.GenericFactory genericGroupControlFactory,
    final Provider<IdentifiedUser> identifiedUser,
    final IdentifiedUser.GenericFactory userFactory,
    final GetGroups accountGetGroups,
    final GroupsCollection groupsCollection,
    GroupJson json,
    GroupBackend groupBackend,
    Groups groups,
    Provider<ReviewDb> db) {
  this.groupCache = groupCache;
  this.groupControlFactory = groupControlFactory;
  this.genericGroupControlFactory = genericGroupControlFactory;
  this.identifiedUser = identifiedUser;
  this.userFactory = userFactory;
  this.accountGetGroups = accountGetGroups;
  this.json = json;
  this.groupBackend = groupBackend;
  this.groups = groups;
  this.groupsCollection = groupsCollection;
  this.db = db;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:26,代码来源:ListGroups.java

示例9: Accessor

import com.google.gerrit.server.IdentifiedUser; //导入方法依赖的package包/类
@Inject
Accessor(
    GitRepositoryManager repoManager,
    AllUsersName allUsersName,
    Provider<MetaDataUpdate.User> metaDataUpdateFactory,
    IdentifiedUser.GenericFactory userFactory) {
  this.repoManager = repoManager;
  this.allUsersName = allUsersName;
  this.metaDataUpdateFactory = metaDataUpdateFactory;
  this.userFactory = userFactory;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:12,代码来源:WatchConfig.java

示例10: CreateChangeSender

import com.google.gerrit.server.IdentifiedUser; //导入方法依赖的package包/类
@Inject
public CreateChangeSender(
    EmailArguments ea,
    IdentifiedUser.GenericFactory identifiedUserFactory,
    PermissionBackend permissionBackend,
    @Assisted Project.NameKey project,
    @Assisted Change.Id id)
    throws OrmException {
  super(ea, newChangeData(ea, project, id));
  this.identifiedUserFactory = identifiedUserFactory;
  this.permissionBackend = permissionBackend;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:13,代码来源:CreateChangeSender.java

示例11: AccountManager

import com.google.gerrit.server.IdentifiedUser; //导入方法依赖的package包/类
@Inject
AccountManager(
    SchemaFactory<ReviewDb> schema,
    Sequences sequences,
    @GerritServerConfig Config cfg,
    Accounts accounts,
    AccountsUpdate.Server accountsUpdateFactory,
    AccountCache byIdCache,
    Realm accountMapper,
    IdentifiedUser.GenericFactory userFactory,
    ChangeUserName.Factory changeUserNameFactory,
    ProjectCache projectCache,
    ExternalIds externalIds,
    ExternalIdsUpdate.Server externalIdsUpdateFactory,
    GroupsUpdate.Factory groupsUpdateFactory,
    SetInactiveFlag setInactiveFlag) {
  this.schema = schema;
  this.sequences = sequences;
  this.accounts = accounts;
  this.accountsUpdateFactory = accountsUpdateFactory;
  this.byIdCache = byIdCache;
  this.realm = accountMapper;
  this.userFactory = userFactory;
  this.changeUserNameFactory = changeUserNameFactory;
  this.projectCache = projectCache;
  this.awaitsFirstAccountCheck =
      new AtomicBoolean(cfg.getBoolean("capability", "makeFirstUserAdmin", true));
  this.externalIds = externalIds;
  this.externalIdsUpdateFactory = externalIdsUpdateFactory;
  this.groupsUpdateFactory = groupsUpdateFactory;
  this.autoUpdateAccountActiveStatus =
      cfg.getBoolean("auth", "autoUpdateAccountActiveStatus", false);
  this.setInactiveFlag = setInactiveFlag;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:35,代码来源:AccountManager.java

示例12: AccountControl

import com.google.gerrit.server.IdentifiedUser; //导入方法依赖的package包/类
AccountControl(
    PermissionBackend permissionBackend,
    ProjectCache projectCache,
    GroupControl.Factory groupControlFactory,
    CurrentUser user,
    IdentifiedUser.GenericFactory userFactory,
    AccountVisibility accountVisibility) {
  this.accountsSection = projectCache.getAllProjects().getConfig().getAccountsSection();
  this.groupControlFactory = groupControlFactory;
  this.perm = permissionBackend.user(user);
  this.user = user;
  this.userFactory = userFactory;
  this.accountVisibility = accountVisibility;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:15,代码来源:AccountControl.java

示例13: DeleteReviewerOp

import com.google.gerrit.server.IdentifiedUser; //导入方法依赖的package包/类
@Inject
DeleteReviewerOp(
    ApprovalsUtil approvalsUtil,
    PatchSetUtil psUtil,
    ChangeMessagesUtil cmUtil,
    IdentifiedUser.GenericFactory userFactory,
    ReviewerDeleted reviewerDeleted,
    Provider<IdentifiedUser> user,
    DeleteReviewerSender.Factory deleteReviewerSenderFactory,
    NotesMigration migration,
    NotifyUtil notifyUtil,
    RemoveReviewerControl removeReviewerControl,
    ProjectCache projectCache,
    @Assisted Account reviewerAccount,
    @Assisted DeleteReviewerInput input) {
  this.approvalsUtil = approvalsUtil;
  this.psUtil = psUtil;
  this.cmUtil = cmUtil;
  this.userFactory = userFactory;
  this.reviewerDeleted = reviewerDeleted;
  this.user = user;
  this.deleteReviewerSenderFactory = deleteReviewerSenderFactory;
  this.migration = migration;
  this.notifyUtil = notifyUtil;
  this.removeReviewerControl = removeReviewerControl;
  this.projectCache = projectCache;
  this.reviewer = reviewerAccount;
  this.input = input;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:30,代码来源:DeleteReviewerOp.java

示例14: Factory

import com.google.gerrit.server.IdentifiedUser; //导入方法依赖的package包/类
@Inject
Factory(
    PermissionBackend permissionBackend,
    ProjectCache projectCache,
    GroupControl.Factory groupControlFactory,
    Provider<CurrentUser> user,
    IdentifiedUser.GenericFactory userFactory,
    AccountVisibility accountVisibility) {
  this.permissionBackend = permissionBackend;
  this.projectCache = projectCache;
  this.groupControlFactory = groupControlFactory;
  this.user = user;
  this.userFactory = userFactory;
  this.accountVisibility = accountVisibility;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:16,代码来源:AccountControl.java

示例15: DeleteAssignee

import com.google.gerrit.server.IdentifiedUser; //导入方法依赖的package包/类
@Inject
DeleteAssignee(
    RetryHelper retryHelper,
    ChangeMessagesUtil cmUtil,
    Provider<ReviewDb> db,
    AssigneeChanged assigneeChanged,
    IdentifiedUser.GenericFactory userFactory,
    AccountLoader.Factory accountLoaderFactory) {
  super(retryHelper);
  this.cmUtil = cmUtil;
  this.db = db;
  this.assigneeChanged = assigneeChanged;
  this.userFactory = userFactory;
  this.accountLoaderFactory = accountLoaderFactory;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:16,代码来源:DeleteAssignee.java


注:本文中的com.google.gerrit.server.IdentifiedUser.GenericFactory方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。