congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
PackageMetadataStore.hasOption
Code IndexAdd Tabnine to your IDE (free)

How to use
hasOption
method
in
com.thoughtworks.go.plugin.access.packagematerial.PackageMetadataStore

Best Java code snippets using com.thoughtworks.go.plugin.access.packagematerial.PackageMetadataStore.hasOption (Showing top 2 results out of 315)

origin: gocd/gocd

public void applyPackagePluginMetadata(String pluginId) {
  for (ConfigurationProperty configurationProperty : configuration) {
    PackageMetadataStore packageMetadataStore = PackageMetadataStore.getInstance();
    if (packageMetadataStore.getMetadata(pluginId) != null) {
      boolean isSecureProperty = packageMetadataStore.hasOption(pluginId, configurationProperty.getConfigurationKey().getName(), PackageConfiguration.SECURE);
      configurationProperty.handleSecureValueConfiguration(isSecureProperty);
    }
  }
}
origin: gocd/gocd

public void performPluginValidationsFor(final PackageDefinition packageDefinition) {
  String pluginId = packageDefinition.getRepository().getPluginConfiguration().getId();
  ValidationResult validationResult = packageRepositoryExtension.isPackageConfigurationValid(pluginId, buildPackageConfigurations(packageDefinition), buildRepositoryConfigurations(packageDefinition.getRepository()));
  for (ValidationError error : validationResult.getErrors()) {
    packageDefinition.addConfigurationErrorFor(error.getKey(), error.getMessage());
  }
  for (ConfigurationProperty configurationProperty : packageDefinition.getConfiguration()) {
    String key = configurationProperty.getConfigurationKey().getName();
    if (PackageMetadataStore.getInstance().hasOption(packageDefinition.getRepository().getPluginConfiguration().getId(), key, PackageConfiguration.REQUIRED)) {
      if (configurationProperty.getValue().isEmpty() && configurationProperty.doesNotHaveErrorsAgainstConfigurationValue()) {
        configurationProperty.addErrorAgainstConfigurationValue("Field: '" + configurationProperty.getConfigurationKey().getName() + "' is required");
      }
    }
  }
}
com.thoughtworks.go.plugin.access.packagematerialPackageMetadataStorehasOption

Popular methods of PackageMetadataStore

  • getInstance
  • addMetadataFor
  • getMetadata
  • removeMetadata
  • clear
  • getPackageMetadata
  • hasPlugin

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • getApplicationContext (Context)
  • String (java.lang)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Reference (javax.naming)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • 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