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

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

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

origin: org.sonatype.nexus/nexus-proxy

public void setWritePolicy( RepositoryWritePolicy writePolicy )
{
  getCurrentConfiguration( true ).setWritePolicy( writePolicy.name() );
}    

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.setWritePolicy(RepositoryWritePolicy.READ_ONLY.name());
origin: org.sonatype.nexus/nexus-app

repo.externalConfigurationImple = exConf;
repo.setWritePolicy( RepositoryWritePolicy.READ_ONLY.name() );
origin: org.sonatype.nexus/nexus-app

repo.externalConfigurationImple = exConf;
repo.setWritePolicy( RepositoryWritePolicy.READ_ONLY.name() );
origin: org.sonatype.nexus.plugins/nexus-ruby-plugin

repo.externalConfigurationImple = exConf;
repo.setWritePolicy(RepositoryWritePolicy.READ_ONLY.name());
origin: org.sonatype.nexus/nexus-app

repo.externalConfigurationImple = exConf;
repo.setWritePolicy( RepositoryWritePolicy.READ_ONLY.name() );
origin: org.sonatype.nexus/nexus-app

repo.externalConfigurationImple = exConf;
repo.setWritePolicy( RepositoryWritePolicy.READ_ONLY.name() );
origin: org.sonatype.nexus.plugins/nexus-ruby-plugin

repo.externalConfigurationImple = exConf;
repo.setWritePolicy(RepositoryWritePolicy.ALLOW_WRITE_ONCE.name());
repo.setNotFoundCacheTTL(1440);
repo.setIndexable(true);
origin: org.sonatype.nexus/nexus-app

repo.setWritePolicy( RepositoryWritePolicy.ALLOW_WRITE_ONCE.name() );
repo.setNotFoundCacheTTL( 1440 );
origin: org.sonatype.nexus/nexus-configuration-model

value.setWritePolicy( cRepository.getWritePolicy() );
origin: org.sonatype.nexus/nexus-app

repo.setWritePolicy( RepositoryWritePolicy.ALLOW_WRITE_ONCE.name() );
repo.setNotFoundCacheTTL( 1440 );
repo.setIndexable( true );
origin: org.sonatype.nexus.plugins/nexus-p2-repository-plugin

repo.setWritePolicy(RepositoryWritePolicy.READ_ONLY.name());
repo.setNotFoundCacheActive(true);
repo.setNotFoundCacheTTL(1440);
origin: org.sonatype.nexus.plugins/nexus-p2-repository-plugin

repo.setWritePolicy(RepositoryWritePolicy.READ_ONLY.name());
repo.setNotFoundCacheActive(true);
repo.setNotFoundCacheTTL(1440);
origin: org.sonatype.nexus.plugins/nexus-ruby-plugin

repo.externalConfigurationImple = exConf;
repo.setWritePolicy(RepositoryWritePolicy.READ_ONLY.name());
repo.setNotFoundCacheActive(true);
repo.setNotFoundCacheTTL(1440);
origin: org.sonatype.nexus.plugins/nexus-restlet1x-plugin

appModel.setWritePolicy(repoResource.getWritePolicy());
origin: org.sonatype.nexus/nexus-rest-api

appModel.setWritePolicy( repoResource.getWritePolicy() );
origin: org.sonatype.nexus/nexus-app

repo.setWritePolicy( RepositoryWritePolicy.READ_ONLY.name() );
repo.setNotFoundCacheActive( true );
repo.setNotFoundCacheTTL( 1440 );
origin: org.sonatype.nexus/nexus-app

repo.setWritePolicy( RepositoryWritePolicy.READ_ONLY.name() );
repo.setNotFoundCacheActive( true );
repo.setNotFoundCacheTTL( 1440 );
origin: org.sonatype.nexus/nexus-configuration-model

cRepository.setWritePolicy( getTrimmedValue( parser.nextText() ) );
org.sonatype.nexus.configuration.modelCRepositorysetWritePolicy

Javadoc

Set the policy of the repositories write capability, i.e. (ALLOW_WRITE, ALLOW_WRITE_ONCE, READ_ONLY).

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.
  • 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.
  • getId
    Get repository ID. It should uniquely identify this repository across Nexus.
  • setProviderRole,
  • getId,
  • getLocalStorage,
  • getName,
  • setSearchable,
  • getLocalStatus,
  • getProviderHint,
  • getNotFoundCacheTTL,
  • setBrowseable

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JLabel (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for Android Studio
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