Class RepositoryConfiguration
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- org.jvnet.hudson.plugins.repositoryconnector.RepositoryConfiguration
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension @Symbol("repository-connector") public class RepositoryConfiguration extends GlobalConfiguration
Global configuration for theRepository Connector
plugin.- Author:
- mrumpf
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description RepositoryConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
static AetherBuilderFactory
createAetherFactory()
FormValidation
doCheckLocalRepository(String localRepository)
static RepositoryConfiguration
get()
String
getLocalRepository()
Collection<Repository>
getRepositories()
boolean
hasMultipleRepositories()
void
load()
void
migrateCredentials()
void
setLocalRepository(String localRepository)
void
setRepositories(Collection<Repository> toAdd)
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
- Overrides:
configure
in classGlobalConfiguration
- Throws:
Descriptor.FormException
-
doCheckLocalRepository
public FormValidation doCheckLocalRepository(@QueryParameter String localRepository)
-
getLocalRepository
public String getLocalRepository()
-
getRepositories
public Collection<Repository> getRepositories()
-
hasMultipleRepositories
public boolean hasMultipleRepositories()
-
load
public void load()
- Overrides:
load
in classDescriptor<GlobalConfiguration>
-
migrateCredentials
@Initializer(after=JOB_LOADED) public void migrateCredentials()
-
setLocalRepository
@DataBoundSetter public void setLocalRepository(String localRepository)
-
setRepositories
@DataBoundSetter public void setRepositories(Collection<Repository> toAdd)
-
createAetherFactory
public static AetherBuilderFactory createAetherFactory()
-
get
public static RepositoryConfiguration get()
-
-