Class FolderCredentialsProvider.FolderCredentialsProperty

java.lang.Object
hudson.model.AbstractDescribableImpl<AbstractFolderProperty<?>>
com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<AbstractFolder<?>>
com.cloudbees.hudson.plugins.folder.properties.FolderCredentialsProvider.FolderCredentialsProperty
All Implemented Interfaces:
ExtensionPoint, Describable<AbstractFolderProperty<?>>, ReconfigurableDescribable<AbstractFolderProperty<?>>
Enclosing class:
FolderCredentialsProvider

public static class FolderCredentialsProvider.FolderCredentialsProperty extends AbstractFolderProperty<AbstractFolder<?>>
Our property.
  • Constructor Details

    • FolderCredentialsProperty

      @Deprecated public FolderCredentialsProperty(List<com.cloudbees.plugins.credentials.Credentials> credentials)
      Deprecated.
      Backwards compatibility.
      Parameters:
      credentials - the credentials.
    • FolderCredentialsProperty

      @DataBoundConstructor public FolderCredentialsProperty(com.cloudbees.plugins.credentials.domains.DomainCredentials[] domainCredentials)
      Constructor for stapler.
      Parameters:
      domainCredentials - the credentials.
      Since:
      1.5
  • Method Details

    • getCredentials

      public <C extends com.cloudbees.plugins.credentials.Credentials> List<C> getCredentials(Class<C> type)
    • getCredentials

      public List<com.cloudbees.plugins.credentials.Credentials> getCredentials()
      Gets all the folder's credentials.
      Returns:
      all the folder's credentials.
    • getDomainCredentials

      public List<com.cloudbees.plugins.credentials.domains.DomainCredentials> getDomainCredentials()
      Returns the DomainCredentials
      Returns:
      the DomainCredentials
      Since:
      3.10
    • getDomainCredentialsMap

      @NonNull public Map<com.cloudbees.plugins.credentials.domains.Domain,List<com.cloudbees.plugins.credentials.Credentials>> getDomainCredentialsMap()
      The Map of domain credentials.
      Returns:
      The Map of domain credentials.
      Since:
      3.10
    • setDomainCredentialsMap

      public void setDomainCredentialsMap(Map<com.cloudbees.plugins.credentials.domains.Domain,List<com.cloudbees.plugins.credentials.Credentials>> domainCredentialsMap)
      Sets the map of domain credentials.
      Parameters:
      domainCredentialsMap - the map of domain credentials.
      Since:
      3.10
    • getStore

      @NonNull public com.cloudbees.hudson.plugins.folder.properties.FolderCredentialsProvider.FolderCredentialsProperty.StoreImpl getStore()
      Returns the FolderCredentialsProvider.FolderCredentialsProperty.StoreImpl.
      Returns:
      the FolderCredentialsProvider.FolderCredentialsProperty.StoreImpl.
    • reconfigure

      public AbstractFolderProperty<?> reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) throws Descriptor.FormException
      Specified by:
      reconfigure in interface ReconfigurableDescribable<AbstractFolderProperty<?>>
      Overrides:
      reconfigure in class AbstractFolderProperty<AbstractFolder<?>>
      Throws:
      Descriptor.FormException