Codota Logo
CRepository.setWritePolicy
Code IndexAdd Codota 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)

  • Common ways to obtain CRepository
private void myMethod () {
CRepository c =
  • Codota Iconnew DefaultCRepository()
  • Smart code suggestions by Codota
}
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

  • Start an intent from android
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now