Codota Logo
CRepository.setProviderHint
Code IndexAdd Codota to your IDE (free)

How to use
setProviderHint
method
in
org.sonatype.nexus.configuration.model.CRepository

Best Java code snippets using org.sonatype.nexus.configuration.model.CRepository.setProviderHint (Showing top 20 results out of 315)

  • Common ways to obtain CRepository
private void myMethod () {
CRepository c =
  • Codota Iconnew DefaultCRepository()
  • Smart code suggestions by Codota
}
origin: org.sonatype.nexus.plugins/nexus-site-repository-plugin

for (final CRepository repository : repositories) {
 if ("maven-site".equals(repository.getProviderHint())) {
  repository.setProviderHint(SiteRepository.ID);
  modified = true;
origin: org.sonatype.nexus.plugins/nexus-site-repository-plugin

@Override
protected CRepositoryCoreConfiguration initCoreConfiguration() {
 CRepository repo = new DefaultCRepository();
 repo.setId("");
 repo.setProviderRole(WebSiteRepository.class.getName());
 repo.setProviderHint(SiteRepository.ID);
 Xpp3Dom ex = new Xpp3Dom(DefaultCRepository.EXTERNAL_CONFIGURATION_NODE_NAME);
 repo.setExternalConfiguration(ex);
 repo.setIndexable(false);
 repo.setWritePolicy(RepositoryWritePolicy.ALLOW_WRITE.name());
 repo.setNotFoundCacheTTL(1440);
 CRepositoryCoreConfiguration result = new CRepositoryCoreConfiguration(
   getTemplateProvider().getApplicationConfiguration(),
   repo,
   new CRepositoryExternalConfigurationHolderFactory<DefaultSiteRepositoryConfiguration>()
   {
    public DefaultSiteRepositoryConfiguration createExternalConfigurationHolder(CRepository config) {
     return new DefaultSiteRepositoryConfiguration((Xpp3Dom) config.getExternalConfiguration());
    }
   });
 return result;
}
origin: org.sonatype.nexus.plugins/nexus-p2-repository-plugin

repo.setProviderHint(providerHint);
origin: org.sonatype.nexus/nexus-app

repo.setProviderHint( "m1-m2-shadow" );
origin: org.sonatype.nexus/nexus-app

repo.setProviderHint( "m2-m1-shadow" );
origin: org.sonatype.nexus.plugins/nexus-ruby-plugin

repo.setProviderHint(DefaultRubyGroupRepository.ID);
origin: org.sonatype.nexus/nexus-app

repo.setProviderHint( "maven2" );
origin: org.sonatype.nexus/nexus-app

repo.setProviderHint( "maven1" );
origin: org.sonatype.nexus.plugins/nexus-ruby-plugin

repo.setProviderHint(DefaultHostedRubyRepository.ID);
origin: org.sonatype.nexus/nexus-app

repo.setProviderHint( "maven1" );
origin: org.sonatype.nexus/nexus-configuration-model

value.setProviderHint( cRepository.getProviderHint() );
origin: org.sonatype.nexus/nexus-app

repo.setProviderHint( "maven2" );
origin: org.sonatype.nexus.plugins/nexus-p2-repository-plugin

repo.setProviderHint(UpdateSiteProxyRepositoryImpl.ROLE_HINT);
origin: org.sonatype.nexus.plugins/nexus-p2-repository-plugin

repo.setProviderHint(P2ProxyRepositoryImpl.ROLE_HINT);
origin: org.sonatype.nexus.plugins/nexus-ruby-plugin

repo.setProviderHint(DefaultProxyRubyRepository.ID);
origin: org.sonatype.nexus/nexus-rest-api

appModel.setProviderHint( resource.getProvider() );
origin: org.sonatype.nexus.plugins/nexus-restlet1x-plugin

appModel.setProviderHint(resource.getProvider());
origin: org.sonatype.nexus/nexus-app

repo.setProviderHint( "maven1" );
origin: org.sonatype.nexus/nexus-app

repo.setProviderHint( "maven2" );
origin: org.sonatype.nexus/nexus-configuration-model

cRepository.setProviderHint( getTrimmedValue( parser.nextText() ) );
org.sonatype.nexus.configuration.modelCRepositorysetProviderHint

Javadoc

Set the implementation of repository.

Popular methods of CRepository

  • getExternalConfiguration
    Get repository implementation's own configuration.
  • getRemoteStorage
    Get the remote storage definition of repository.
  • setExternalConfiguration
    Set repository implementation's own configuration.
  • setId
    Set repository ID. It should uniquely identify this repository across Nexus.
  • setIndexable
    Set if true, repository will get indexed. If false, the files and artifacts from repository will NOT
  • setName
    Set human readable Repository name.
  • setNotFoundCacheTTL
    Set notFoundCache, the neg-cache records time to live in minutes. How long will misses be cached.
  • setRemoteStorage
    Set the remote storage definition of repository.
  • setWritePolicy
    Set the policy of the repositories write capability, i.e. (ALLOW_WRITE, ALLOW_WRITE_ONCE, READ_ONLY)
  • setNotFoundCacheActive
    Set if true, NFC will be used. If false, no miss caching will happen.
  • setProviderRole
    Set the type of repository.
  • getId
    Get repository ID. It should uniquely identify this repository across Nexus.
  • setProviderRole,
  • getId,
  • getLocalStorage,
  • getName,
  • setSearchable,
  • getLocalStatus,
  • getProviderHint,
  • getNotFoundCacheTTL,
  • setBrowseable

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JComboBox (javax.swing)
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now