org.guvnor.structure.repositories.Repository.getScheme()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(99)

本文整理了Java中org.guvnor.structure.repositories.Repository.getScheme方法的一些代码示例,展示了Repository.getScheme的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.getScheme方法的具体详情如下:
包路径:org.guvnor.structure.repositories.Repository
类名称:Repository
方法名:getScheme

Repository.getScheme介绍

暂无

代码示例

代码示例来源:origin: org.kie/kie-config-cli

@Override
public String execute(CliContext context) {
  StringBuffer result = new StringBuffer();
  WeldContainer container = context.getContainer();
  RepositoryService repositoryService = container.instance().select(RepositoryService.class).get();
  Collection<Repository> repositories = repositoryService.getRepositories();
  result.append("Currently available repositories: \n");
  for (Repository config : repositories) {
    result.append("\tRepository " + config.getAlias() + "\n");
    result.append("\t scheme: " + config.getScheme() + "\n");
    result.append("\t uri: " + config.getUri() + "\n");
    result.append("\t environment: " + printEnvironment(config.getEnvironment()) + "\n");
    result.append("\t groups: " + config.getGroups() + "\n");
  }
  return result.toString();
}

代码示例来源:origin: org.uberfire/uberfire-project-backend

@Override
  public Repository answer(InvocationOnMock invocationOnMock) throws Throwable {
    final Repository newRepository = mock(Repository.class);
    doReturn(invocationOnMock.getArguments()[2]).when(newRepository).getAlias();
    doReturn(SpacesAPI.Scheme.FILE).when(newRepository).getScheme();
    doReturn(space).when(newRepository).getSpace();
    return newRepository;
  }
}).when(repositoryService).createRepository(eq(organizationalUnit),

代码示例来源:origin: kiegroup/appformer

@Override
  public Repository answer(InvocationOnMock invocationOnMock) throws Throwable {
    final Repository newRepository = mock(Repository.class);
    doReturn(invocationOnMock.getArguments()[2]).when(newRepository).getAlias();
    doReturn(SpacesAPI.Scheme.FILE).when(newRepository).getScheme();
    doReturn(space).when(newRepository).getSpace();
    return newRepository;
  }
}).when(repositoryService).createRepository(eq(organizationalUnit),

代码示例来源:origin: org.kie/kie-config-cli

@Override
public String execute( CliContext context ) {
  StringBuffer result = new StringBuffer();
  WeldContainer container = context.getContainer();
  OrganizationalUnitService organizationalUnitService = container.instance().select( OrganizationalUnitService.class ).get();
  Collection<OrganizationalUnit> groups = organizationalUnitService.getOrganizationalUnits();
  result.append( "Currently available Organizational Units: \n" );
  for ( OrganizationalUnit config : groups ) {
    result.append( "\tOrganizational Unit " + config.getName() + "\n" );
    result.append( "\towner: " + config.getOwner() + "\n" );
    result.append( "\tgroups: " + config.getGroups() + "\n" );
    result.append( "\trepositories: \n" );
    for ( Repository repository : config.getRepositories() ) {
      result.append( "\t\tRepository " + repository.getAlias() + "\n" );
      result.append( "\t\t\t scheme: " + repository.getScheme() + "\n" );
      result.append( "\t\t\t uri: " + repository.getUri() + "\n" );
      result.append( "\t\t\t environment: " + printEnvironment(repository.getEnvironment()) + "\n" );
      result.append( "\t\t\t repository groups: " + repository.getGroups() + "\n" );
    }
  }
  return result.toString();
}

代码示例来源:origin: kiegroup/appformer

if (newlyCreatedRepo != null) {
  result.setStatus(JobStatus.SUCCESS);
  result.setResult("Alias: " + newlyCreatedRepo.getAlias() + ", Scheme: " + newlyCreatedRepo.getScheme() + ", Uri: " + newlyCreatedRepo.getUri());
} else {
  result.setStatus(JobStatus.FAIL);

相关文章