Package org.sonatype.nexus.proxy.registry

Examples of org.sonatype.nexus.proxy.registry.ContentClass


  }

  // ==

  protected Target convert(CRepositoryTarget target) {
    ContentClass contentClass = getContentClassById(target.getContentClass());

    // If content class is null, we have a target for a repo type that no longer exists
    // plugin was removed most likely, so we ignore in this case
    if (contentClass != null) {
      return new Target(target.getId(), target.getName(), contentClass, target.getPatterns());
View Full Code Here


  }

  protected Target getRestToNexusResource(RepositoryTargetResource resource)
      throws ConfigurationException, PatternSyntaxException
  {
    ContentClass cc = getRepositoryTypeRegistry().getContentClasses().get(resource.getContentClass());

    if (cc == null) {
      throw new ConfigurationException("Content class with ID=\"" + resource.getContentClass()
          + "\" does not exists!");
    }
View Full Code Here

  protected void createRepositoryGroup(RepositoryGroupResource model)
      throws ResourceException
  {
    try {
      ContentClass contentClass =
          repositoryTypeRegistry.getRepositoryContentClass(GroupRepository.class, model.getProvider());

      RepositoryTemplate template = (RepositoryTemplate) getRepositoryTemplates().getTemplates(
          GroupRepository.class, contentClass, new ProviderHint(model.getProvider())
      ).pick();
View Full Code Here

              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);
  }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.proxy.registry.ContentClass

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.