List all RepositoryConfigurations
1543
def list_repository_configurations(page_size=200, page_index=0, sort="", q=""):
    
    response = utils.checked_api_call(pnc_api.repositories, 'get_all', page_size=page_size, page_index=page_index, sort=sort, q=q)
    if response:
        return utils.format_json_list(response.content)
653510
private void registerActionRepositories(FeatureContext context, CrnkBoot boot) {
        ResourceRegistry resourceRegistry = boot.getResourceRegistry();
        Collection<RegistryEntry> registryEntries = resourceRegistry.getEntries();
        for (RegistryEntry registryEntry : registryEntries) {
            ResourceRepositoryInformation repositoryInformation = registryEntry.getRepositoryInformation();
            if (repositoryInformation != null && !repositoryInformation.getActions().isEmpty()) {
                ResourceRepositoryAdapter repositoryAdapter = registryEntry.getResourceRepository();
                Object resourceRepository = repositoryAdapter.getResourceRepository();
                context.register(resourceRepository);
            }
        }
    }
967205
private List<Resource> getConfigurations() {
		List<Resource> result = new ArrayList<Resource>();
		for (String delimitedConfigurationUrl : configurationUrls) {
			String[] tokens = StringUtils.commaDelimitedListToStringArray(delimitedConfigurationUrl);
			tokens = StringUtils.trimArrayElements(tokens);
			for (String configurationUrl : tokens) {
				configurationUrl = configurationUrl.trim();
				Resource configuration = resourceLoader.getResource(configurationUrl);
				if (configuration != null && configuration.exists()) {
					result.add(configuration);
				} else if (ignoreConfigurationNotFound) {
					logger.debug("Ignore missing configuration file {}", configuration);
				} else {
					throw new EmbeddedJmxTransException("Configuration file " + configuration + " not found");
				}
			}
		}
		return result;
	}
205379
def list_repos(self, envs=[], query='/repositories/'):
        
        juicer.utils.Log.log_debug(
                "List Repos In: %s", ", ".join(envs))

        repo_lists = {}
        for env in envs:
            repo_lists[env] = []

        for env in envs:
            _r = self.connectors[env].get(query)
            if _r.status_code == Constants.PULP_GET_OK:
                for repo in juicer.utils.load_json_str(_r.content):
                    if re.match(".*-{0}$".format(env), repo['id']):
                        repo_lists[env].append(repo['display_name'])
            else:
                _r.raise_for_status()
        return repo_lists
603763
public static Option repositories(final String... repositoryUrls) {
        validateNotEmptyContent(repositoryUrls, true, "Repository URLs");
        final List<RepositoryOption> options = new ArrayList<RepositoryOption>();
        for (String repositoryUrl : repositoryUrls) {
            options.add(repository(repositoryUrl));
        }
        return repositories(options.toArray(new RepositoryOption[options.size()]));
    }
246405
def list(self, opts):
        """"""

        argv = opts.args
        count = len(argv)

        # unflagged arguments are conf, stanza, key. In this order
        # but all are optional
        cpres = True if count > 0 else False
        spres = True if count > 1 else False
        kpres = True if count > 2 else False 
        
        if not cpres:
            # List out the available confs
            for conf in self.service.confs: 
                print(conf.name)
        else:
            # Print out detail on the requested conf
            # check for optional stanza, or key requested (or all)
            name = argv[0]
            conf = self.service.confs[name]
            
            for stanza in conf:
                if (spres and argv[1] == stanza.name) or not spres:
                    print("[%s]" % stanza.name)
                    for key, value in six.iteritems(stanza.content):
                        if (kpres and argv[2] == key) or not kpres:
                            print("%s = %s" % (key, value))
                print()
574554
public java.util.List<java.util.Map<String, String>> getConfigurations() {
        return configurations;
    }
169845
public function getRepositoryConfig()
    {
        // Takes configured repository as the reference, if it exists.
        // If not, the first configured repository is considered instead.
        $repositoryAlias = $this->configResolver->getParameter('repository');
        if ($repositoryAlias === null) {
            $aliases = array_keys($this->repositories);
            $repositoryAlias = array_shift($aliases);
        }

        if (empty($repositoryAlias) || !isset($this->repositories[$repositoryAlias])) {
            throw new InvalidRepositoryException(
                "Undefined repository '$repositoryAlias'. Did you forget to configure it in ezpublish_*.yml?"
            );
        }

        return array('alias' => $repositoryAlias) + $this->repositories[$repositoryAlias];
    }
577184
@Programmatic
    @SuppressWarnings({ "rawtypes", "unchecked" })
    public List<ApplicationSetting> listAll() {
        return (List)repositoryService.allMatches(
                new QueryDefault<>(ApplicationSettingJdo.class,
                        "findAll"));
    }
216905
@Programmatic
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public List<UserSetting> listAll() {
        return (List)repositoryService.allMatches(
                new QueryDefault<>(UserSettingJdo.class,
                        "findAll"));
    }
480077
@SuppressWarnings("unchecked")
  private Repository<Entity> decorateRepository(
      Repository<Entity> repository, DecoratorConfiguration configuration) {
    Map<String, Map<String, Object>> parameterMap = getParameterMap(configuration);
    List<DecoratorParameters> decoratorParameters =
        configuration.getDecoratorParameters().collect(toList());
    for (DecoratorParameters decoratorParam : decoratorParameters) {
      DynamicRepositoryDecoratorFactory factory =
          factories.get(decoratorParam.getDecorator().getId());
      if (factory != null) {
        repository =
            factory.createDecoratedRepository(repository, parameterMap.get(factory.getId()));
      }
    }
    return repository;
  }
247448
def list_plugins(directory=None):
    """"""
    repo = require_repo(directory)
    plugins = get_value(repo, 'plugins')
    if not plugins or not isinstance(plugins, dict):
        return None
    return plugins.keys()
1069923
@Override
    public synchronized List<Map<String, Object>> listResourceModelConfigurations(){
        Map propertiesMap = projectConfig.getProperties();
        Properties properties = new Properties();
        properties.putAll(propertiesMap);
        return listResourceModelConfigurations(properties);
    }
999276
def get_repository_configuration(id):
    

    response = utils.checked_api_call(pnc_api.repositories, 'get_specific', id=id)
    if response:
        return response.content
792172
@Override
    public Set<String> getJcrRepositoryNames() {
        try {
            return ((ModeshapeRepositoryFactory) repositoryFactory).getRepositoryNames();
        } catch (RepositoryException e) {
            LOGGER.error(WebJcrI18n.cannotLoadRepositoryNames.text(), e);
            return Collections.emptySet();
        }
    }
455059
static function systemRepositoryInformation()
    {
        $ini = eZINI::instance( 'package.ini' );
        $vendor = $ini->variable( 'RepositorySettings', 'Vendor' );
        return eZPackage::repositoryInformation( $vendor );
    }
421416
@Provides @Singleton
    public List<RemoteRepository> getRemoteRepositories(
            SettingsDecrypter decrypter,
            ExtensionList<RemoteRepositoryDecorator> decorators) {

        List<RemoteRepository> repositories = new ArrayList<RemoteRepository>();
        MavenDependencyResolverSettings resolverSettings = new MavenDependencyResolverSettings();
        resolverSettings.setUseMavenCentral(true);
        List<RemoteRepository> repos = resolverSettings.getRemoteRepositories();
        for (RemoteRepository remoteRepository : repos) {
            Server server = resolverSettings.getSettings().getServer(remoteRepository.getId());
            if (server != null) {
                server = decrypter.decrypt(new DefaultSettingsDecryptionRequest(server)).getServer();
                remoteRepository.setAuthentication(new Authentication(server.getUsername(), server.getPassword(), server.getPrivateKey(), server.getPassphrase()));
            }
            repositories.add(decorate(remoteRepository, decorators));
        }
        RemoteRepository r = new RemoteRepository("cloudbees-public-release", "default", "https://repository-cloudbees.forge.cloudbees.com/public-release/");
        repositories.add(decorate(r,decorators));
        return repositories;
    }