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

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

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

origin: org.sonatype.nexus/nexus-proxy

public void setMirrors( List<Mirror> mirrors )
{
  if ( mirrors == null || mirrors.isEmpty() )
  {
    getConfiguration( true ).getMirrors().clear();
  }
  else
  {
    ArrayList<CMirror> modelMirrors = new ArrayList<CMirror>( mirrors.size() );
    for ( Mirror mirror : mirrors )
    {
      CMirror model = new CMirror();
      model.setId( mirror.getId() );
      model.setUrl( mirror.getUrl() );
      modelMirrors.add( model );
    }
    getConfiguration( true ).setMirrors( modelMirrors );
  }
}
origin: org.sonatype.nexus/nexus-configuration-model

  list.add( upgradeCMirror( v ) );
value.setMirrors( list );
origin: org.sonatype.nexus/nexus-configuration-model

cRepository.setMirrors( mirrors );
while ( parser.nextTag() == XmlPullParser.START_TAG )
org.sonatype.nexus.configuration.modelCRepositorysetMirrors

Javadoc

Set repository mirrors to publish downstream.

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,
  • getProviderHint,
  • getNotFoundCacheTTL,
  • setBrowseable

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 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