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.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
OurCredentialsStoreAction
.static class
Our constructorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
owner
-
Constructor Summary
ConstructorDescriptionFolderCredentialsProperty
(com.cloudbees.plugins.credentials.domains.DomainCredentials[] domainCredentials) Constructor for stapler.FolderCredentialsProperty
(List<com.cloudbees.plugins.credentials.Credentials> credentials) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionList<com.cloudbees.plugins.credentials.Credentials>
Gets all the folder's credentials.<C extends com.cloudbees.plugins.credentials.Credentials>
List<C>getCredentials
(Class<C> type) List<com.cloudbees.plugins.credentials.domains.DomainCredentials>
Returns theDomainCredentials
Map<com.cloudbees.plugins.credentials.domains.Domain,
List<com.cloudbees.plugins.credentials.Credentials>> The Map of domain credentials.com.cloudbees.hudson.plugins.folder.properties.FolderCredentialsProvider.FolderCredentialsProperty.StoreImpl
getStore()
Returns theFolderCredentialsProvider.FolderCredentialsProperty.StoreImpl
.reconfigure
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) void
setDomainCredentialsMap
(Map<com.cloudbees.plugins.credentials.domains.Domain, List<com.cloudbees.plugins.credentials.Credentials>> domainCredentialsMap) Sets the map of domain credentials.Methods inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
getDescriptor, getHealthMetrics, getHealthReports, getItemContainerOverrides, getOwner, setOwner
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.ReconfigurableDescribable
reconfigure
-
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
-
getCredentials
Gets all the folder's credentials.- Returns:
- all the folder's credentials.
-
getDomainCredentials
Returns theDomainCredentials
- 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 theFolderCredentialsProvider.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 interfaceReconfigurableDescribable<AbstractFolderProperty<?>>
- Overrides:
reconfigure
in classAbstractFolderProperty<AbstractFolder<?>>
- Throws:
Descriptor.FormException
-