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


Java GroupCache类代码示例

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


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

示例1: AccountCreator

import com.google.gerrit.server.account.GroupCache; //导入依赖的package包/类
@Inject
AccountCreator(
    SchemaFactory<ReviewDb> schema,
    Sequences sequences,
    AccountsUpdate.Server accountsUpdate,
    VersionedAuthorizedKeys.Accessor authorizedKeys,
    GroupCache groupCache,
    @ServerInitiated Provider<GroupsUpdate> groupsUpdateProvider,
    SshKeyCache sshKeyCache,
    ExternalIdsUpdate.Server externalIdsUpdate,
    @SshEnabled boolean sshEnabled) {
  accounts = new HashMap<>();
  reviewDbProvider = schema;
  this.sequences = sequences;
  this.accountsUpdate = accountsUpdate;
  this.authorizedKeys = authorizedKeys;
  this.groupCache = groupCache;
  this.groupsUpdateProvider = groupsUpdateProvider;
  this.sshKeyCache = sshKeyCache;
  this.externalIdsUpdate = externalIdsUpdate;
  this.sshEnabled = sshEnabled;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:23,代码来源:AccountCreator.java

示例2: ListGroups

import com.google.gerrit.server.account.GroupCache; //导入依赖的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

示例3: LuceneGroupIndex

import com.google.gerrit.server.account.GroupCache; //导入依赖的package包/类
@Inject
LuceneGroupIndex(
    @GerritServerConfig Config cfg,
    SitePaths sitePaths,
    Provider<GroupCache> groupCache,
    @Assisted Schema<InternalGroup> schema)
    throws IOException {
  super(
      schema,
      sitePaths,
      dir(schema, cfg, sitePaths),
      GROUPS,
      null,
      new GerritIndexWriterConfig(cfg, GROUPS),
      new SearcherFactory());
  this.groupCache = groupCache;

  indexWriterConfig = new GerritIndexWriterConfig(cfg, GROUPS);
  queryBuilder = new QueryBuilder<>(schema, indexWriterConfig.getAnalyzer());
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:21,代码来源:LuceneGroupIndex.java

示例4: AccountsImpl

import com.google.gerrit.server.account.GroupCache; //导入依赖的package包/类
@Inject
public AccountsImpl(
    AccountResolver resolver,
    AccountCache byId,
    ReviewDb db,
    GroupCache groupCache,
    GroupMembers.Factory groupMembersFactory,
    OneOffRequestContext oneOffRequestContext,
    IdentifiedUser.GenericFactory userFactory) {
  this.resolver = resolver;
  this.byId = byId;
  this.db = db;
  this.groupCache = groupCache;
  this.groupMembers = groupMembersFactory;
  this.adminUser = userFactory.create(new Account.Id(1000000));
  this.oneOffRequestContext = oneOffRequestContext;
}
 
开发者ID:GerritCodeReview,项目名称:plugins_owners,代码行数:18,代码来源:AccountsImpl.java

示例5: configure

import com.google.gerrit.server.account.GroupCache; //导入依赖的package包/类
@Override
protected void configure() {
  // The AccountIndex implementations (LuceneAccountIndex and
  // ElasticAccountIndex) need AccountCache only for reading from the index.
  // On init we only want to write to the index, hence we don't need the
  // account cache.
  bind(AccountCache.class).toProvider(Providers.of(null));

  // AccountIndexDefinition wants to have AllAccountsIndexer but it is only
  // used by the Reindex program and the OnlineReindexer which are both not
  // used during init, hence we don't need AllAccountsIndexer.
  bind(AllAccountsIndexer.class).toProvider(Providers.of(null));

  bind(AccountIndexCollection.class);

  // The GroupIndex implementations (LuceneGroupIndex and ElasticGroupIndex)
  // need GroupCache only for reading from the index. On init we only want to
  // write to the index, hence we don't need the group cache.
  bind(GroupCache.class).toProvider(Providers.of(null));

  // GroupIndexDefinition wants to have AllGroupsIndexer but it is only used
  // by the Reindex program and the OnlineReindexer which are both not used
  // during init, hence we don't need AllGroupsIndexer.
  bind(AllGroupsIndexer.class).toProvider(Providers.of(null));

  bind(GroupIndexCollection.class);

  bind(new TypeLiteral<Map<String, Integer>>() {})
      .annotatedWith(Names.named(SingleVersionModule.SINGLE_VERSIONS))
      .toInstance(ImmutableMap.<String, Integer>of());
  bind(LifecycleListener.class)
      .annotatedWith(Names.named(INDEX_MANAGER))
      .to(SingleVersionListener.class);
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:35,代码来源:IndexModuleOnInit.java

示例6: ListMembersCommandImpl

import com.google.gerrit.server.account.GroupCache; //导入依赖的package包/类
@Inject
protected ListMembersCommandImpl(
    GroupCache groupCache,
    GroupControl.Factory groupControlFactory,
    AccountLoader.Factory accountLoaderFactory) {
  super(groupCache, groupControlFactory, accountLoaderFactory);
  this.groupCache = groupCache;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:9,代码来源:ListMembersCommand.java

示例7: Arguments

import com.google.gerrit.server.account.GroupCache; //导入依赖的package包/类
@Inject
Arguments(
    GroupIndexCollection groupIndexCollection,
    GroupCache groupCache,
    GroupBackend groupBackend,
    AccountResolver accountResolver) {
  this.groupIndex = groupIndexCollection.getSearchIndex();
  this.groupCache = groupCache;
  this.groupBackend = groupBackend;
  this.accountResolver = accountResolver;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:12,代码来源:GroupQueryBuilder.java

示例8: GetAuditLog

import com.google.gerrit.server.account.GroupCache; //导入依赖的package包/类
@Inject
public GetAuditLog(
    Provider<ReviewDb> db,
    AccountLoader.Factory accountLoaderFactory,
    GroupCache groupCache,
    GroupJson groupJson,
    GroupBackend groupBackend,
    Groups groups) {
  this.db = db;
  this.accountLoaderFactory = accountLoaderFactory;
  this.groupCache = groupCache;
  this.groupJson = groupJson;
  this.groupBackend = groupBackend;
  this.groups = groups;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:16,代码来源:GetAuditLog.java

示例9: ListMembers

import com.google.gerrit.server.account.GroupCache; //导入依赖的package包/类
@Inject
protected ListMembers(
    GroupCache groupCache,
    GroupControl.Factory groupControlFactory,
    AccountLoader.Factory accountLoaderFactory) {
  this.groupCache = groupCache;
  this.groupControlFactory = groupControlFactory;
  this.accountLoader = accountLoaderFactory.create(true);
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:10,代码来源:ListMembers.java

示例10: CreateGroup

import com.google.gerrit.server.account.GroupCache; //导入依赖的package包/类
@Inject
CreateGroup(
    Provider<IdentifiedUser> self,
    @GerritPersonIdent PersonIdent serverIdent,
    ReviewDb db,
    @UserInitiated Provider<GroupsUpdate> groupsUpdateProvider,
    GroupCache groupCache,
    GroupsCollection groups,
    GroupJson json,
    DynamicSet<GroupCreationValidationListener> groupCreationValidationListeners,
    AddMembers addMembers,
    SystemGroupBackend systemGroupBackend,
    @GerritServerConfig Config cfg,
    @Assisted String name,
    Sequences sequences) {
  this.self = self;
  this.serverIdent = serverIdent;
  this.db = db;
  this.groupsUpdateProvider = groupsUpdateProvider;
  this.groupCache = groupCache;
  this.groups = groups;
  this.json = json;
  this.groupCreationValidationListeners = groupCreationValidationListeners;
  this.addMembers = addMembers;
  this.systemGroupBackend = systemGroupBackend;
  this.defaultVisibleToAll = cfg.getBoolean("groups", "newGroupsVisibleToAll", false);
  this.name = name;
  this.sequences = sequences;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:30,代码来源:CreateGroup.java

示例11: DbGroupMemberAuditListener

import com.google.gerrit.server.account.GroupCache; //导入依赖的package包/类
@Inject
DbGroupMemberAuditListener(
    SchemaFactory<ReviewDb> schema,
    AccountCache accountCache,
    GroupCache groupCache,
    UniversalGroupBackend groupBackend) {
  this.schema = schema;
  this.accountCache = accountCache;
  this.groupCache = groupCache;
  this.groupBackend = groupBackend;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:12,代码来源:DbGroupMemberAuditListener.java

示例12: GroupIndexerImpl

import com.google.gerrit.server.account.GroupCache; //导入依赖的package包/类
@AssistedInject
GroupIndexerImpl(
    GroupCache groupCache,
    DynamicSet<GroupIndexedListener> indexedListener,
    @Assisted GroupIndexCollection indexes) {
  this.groupCache = groupCache;
  this.indexedListener = indexedListener;
  this.indexes = indexes;
  this.index = null;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:11,代码来源:GroupIndexerImpl.java

示例13: AllGroupsIndexer

import com.google.gerrit.server.account.GroupCache; //导入依赖的package包/类
@Inject
AllGroupsIndexer(
    SchemaFactory<ReviewDb> schemaFactory,
    @IndexExecutor(BATCH) ListeningExecutorService executor,
    GroupCache groupCache,
    Groups groups) {
  this.schemaFactory = schemaFactory;
  this.executor = executor;
  this.groupCache = groupCache;
  this.groups = groups;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:12,代码来源:AllGroupsIndexer.java

示例14: AccountGroupIdHandler

import com.google.gerrit.server.account.GroupCache; //导入依赖的package包/类
@Inject
public AccountGroupIdHandler(
    final GroupCache groupCache,
    @Assisted final CmdLineParser parser,
    @Assisted final OptionDef option,
    @Assisted final Setter<AccountGroup.Id> setter) {
  super(parser, option, setter);
  this.groupCache = groupCache;
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:10,代码来源:AccountGroupIdHandler.java

示例15: ElasticGroupIndex

import com.google.gerrit.server.account.GroupCache; //导入依赖的package包/类
@Inject
ElasticGroupIndex(
    @GerritServerConfig Config cfg,
    SitePaths sitePaths,
    Provider<GroupCache> groupCache,
    JestClientBuilder clientBuilder,
    @Assisted Schema<InternalGroup> schema) {
  super(cfg, sitePaths, schema, clientBuilder, GROUPS_PREFIX);
  this.groupCache = groupCache;
  this.mapping = new GroupMapping(schema);
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:12,代码来源:ElasticGroupIndex.java


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