Tabnine Logo
CRepository.getProviderHint
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.sonatype.nexus/nexus-proxy

public String getProviderHint()
{
  return getCurrentConfiguration( false ).getProviderHint();
}

origin: org.sonatype.nexus/nexus-app

public String getRepositoryProviderHint()
{
  return getCoreConfiguration().getConfiguration( false ).getProviderHint();
}
origin: org.sonatype.nexus/nexus-app

@Override
public Repository createRepositoryFromModel( final Configuration configuration, final CRepository repoConf )
  throws ConfigurationException
{
  Repository repository = createRepository( repoConf.getProviderRole(), repoConf.getProviderHint() );
  repository.configure( repoConf );
  return repository;
}
origin: org.sonatype.nexus.plugins/nexus-site-repository-plugin

if (repositories != null && repositories.size() > 0) {
 for (final CRepository repository : repositories) {
  if ("maven-site".equals(repository.getProviderHint())) {
   repository.setProviderHint(SiteRepository.ID);
   modified = true;
origin: org.sonatype.nexus/nexus-app

  public ManuallyConfiguredRepositoryTemplate createManuallyTemplate( CRepositoryCoreConfiguration configuration )
    throws ConfigurationException
  {
    final CRepository repoConfig = configuration.getConfiguration( false );

    RepositoryTypeDescriptor rtd =
      repositoryTypeRegistry.getRepositoryTypeDescriptor( repoConfig.getProviderRole(),
        repoConfig.getProviderHint() );

    if ( rtd == null )
    {
      final String msg =
        String.format(
          "Repository being created \"%s\" (repoId=%s) has corresponding type that is not registered in Core: Repository type %s:%s is unknown to Nexus Core. It is probably contributed by an old Nexus plugin. Please contact plugin developers to upgrade the plugin, and register the new repository type(s) properly!",
          repoConfig.getName(), repoConfig.getId(), repoConfig.getProviderRole(),
          repoConfig.getProviderHint() );

      throw new ConfigurationException( msg );
    }

    ContentClass contentClass = repositoryTypeRegistry.getRepositoryContentClass( rtd.getRole(), rtd.getHint() );

    return new ManuallyConfiguredRepositoryTemplate( this, "manual", "Manually created template", contentClass,
      null, configuration );
  }
}
origin: org.sonatype.nexus/nexus-app

repositoryModel.getProviderHint() );
  "Repository \"%s\" (repoId=%s) corresponding type is not registered in Core, hence it's maxInstace check cannot be performed: Repository type %s:%s is unknown to Nexus Core. It is probably contributed by an old Nexus plugin. Please contact plugin developers to upgrade the plugin, and register the new repository type(s) properly!",
  repositoryModel.getName(), repositoryModel.getId(), repositoryModel.getProviderRole(),
  repositoryModel.getProviderHint() );
origin: org.sonatype.nexus/nexus-configuration

if ( cfg.isIndexable() && ( !"maven2".equals( cfg.getProviderHint() ) ) )
    + cfg.getProviderHint() + "\" repositories, only Maven2 repositories are indexable!" ) );
if ( "maven2".equals( cfg.getProviderHint() ) || "maven1".equals( cfg.getProviderHint() ) )
origin: org.sonatype.nexus/nexus-configuration-model

if ( cRepository.getProviderHint() != null )
  serializer.startTag( NAMESPACE, "providerHint" ).text( cRepository.getProviderHint() ).endTag( NAMESPACE, "providerHint" );
org.sonatype.nexus.configuration.modelCRepositorygetProviderHint

Javadoc

Get 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.
  • setProviderHint
    Set the implementation of repository.
  • setProviderRole
    Set the type of repository.
  • setProviderHint,
  • setProviderRole,
  • getId,
  • getLocalStorage,
  • getName,
  • setSearchable,
  • getLocalStatus,
  • getNotFoundCacheTTL,
  • setBrowseable

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Permission (java.security)
    Legacy security code; do not use.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now