Tabnine Logo
RepositoryKind.getMainFacet
Code IndexAdd Tabnine to your IDE (free)

How to use
getMainFacet
method
in
org.sonatype.nexus.proxy.repository.RepositoryKind

Best Java code snippets using org.sonatype.nexus.proxy.repository.RepositoryKind.getMainFacet (Showing top 6 results out of 315)

origin: org.sonatype.nexus/nexus-proxy

public Class<?> getMainFacet()
{
  return getActualRepositoryKind().getMainFacet();
}
origin: org.sonatype.nexus/nexus-api

  public static String getFullHumanizedNameString( final Repository repository )
  {
    return String.format( "%s[contentClass=%s][mainFacet=%s]", getHumanizedNameString( repository ),
      repository.getRepositoryContentClass().getName(), repository.getRepositoryKind().getMainFacet().getName() );
  }
}
origin: org.sonatype.nexus.plugins/nexus-indexer-lucene-plugin

 protected String extractRepositoryKind(Repository repository) {
  RepositoryKind kind = repository.getRepositoryKind();

  if (kind.isFacetAvailable(HostedRepository.class)) {
   return "hosted";
  }
  else if (kind.isFacetAvailable(ProxyRepository.class)) {
   return "proxy";
  }
  else if (kind.isFacetAvailable(GroupRepository.class)) {
   return "group";
  }
  else if (kind.isFacetAvailable(ShadowRepository.class)) {
   return "virtual";
  }
  else {
   // huh?
   return repository.getRepositoryKind().getMainFacet().getName();
  }
 }
}
origin: org.sonatype.nexus/nexus-indexer-lucene-rest-api

  protected String extractRepositoryKind( Repository repository )
  {
    RepositoryKind kind = repository.getRepositoryKind();

    if ( kind.isFacetAvailable( HostedRepository.class ) )
    {
      return "hosted";
    }
    else if ( kind.isFacetAvailable( ProxyRepository.class ) )
    {
      return "proxy";
    }
    else if ( kind.isFacetAvailable( GroupRepository.class ) )
    {
      return "group";
    }
    else if ( kind.isFacetAvailable( ShadowRepository.class ) )
    {
      return "virtual";
    }
    else
    {
      // huh?
      return repository.getRepositoryKind().getMainFacet().getName();
    }
  }
}
origin: org.sonatype.nexus.plugins/nexus-restlet1x-plugin

item.getRepositoryItemUid().getRepository().getRepositoryKind().getMainFacet().getName());
origin: org.sonatype.nexus/nexus-rest-api

result.setOriginatingRepositoryMainFacet( item.getRepositoryItemUid().getRepository().getRepositoryKind().getMainFacet().getName() );
org.sonatype.nexus.proxy.repositoryRepositoryKindgetMainFacet

Popular methods of RepositoryKind

  • isFacetAvailable

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • getSharedPreferences (Context)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JPanel (javax.swing)
  • Top 12 Jupyter Notebook extensions
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