Package hudson.maven
Class MavenModuleSet.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<TopLevelItem>
-
- hudson.model.TopLevelItemDescriptor
-
- hudson.model.AbstractProject.AbstractProjectDescriptor
-
- hudson.maven.MavenModuleSet.DescriptorImpl
-
- Enclosing class:
- MavenModuleSet
public static final class MavenModuleSet.DescriptorImpl extends AbstractProject.AbstractProjectDescriptor implements IconSpec
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
-
Methods inherited from class hudson.model.AbstractProject.AbstractProjectDescriptor
doAutoCompleteAssignedLabelString, doAutoCompleteLabel, doAutoCompleteUpstreamProjects, doCheckAssignedLabelString, doCheckCustomWorkspace, doCheckLabel, getApplicableSCMCheckoutStrategyDescriptors, validateLabelExpression
-
Methods inherited from class hudson.model.TopLevelItemDescriptor
all, checkApplicableIn, getIconFilePath, isApplicableIn, newInstance, newInstance, testInstance
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getHelpFile
public String getHelpFile(String fieldName)
- Overrides:
getHelpFile
in classDescriptor<TopLevelItem>
-
getSettingsProviders
public List<SettingsProviderDescriptor> getSettingsProviders()
-
getGlobalSettingsProviders
public List<GlobalSettingsProviderDescriptor> getGlobalSettingsProviders()
-
getGlobalMavenOpts
public String getGlobalMavenOpts()
-
setGlobalMavenOpts
public void setGlobalMavenOpts(String globalMavenOpts)
-
getLocalRepository
public LocalRepositoryLocator getLocalRepository()
- Returns:
- never null.
-
setLocalRepository
public void setLocalRepository(LocalRepositoryLocator localRepository)
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classTopLevelItemDescriptor
-
getCategoryId
public String getCategoryId()
Needed if it wants Maven projects are categorized in Jenkins 2.x. TODO: Override when the baseline is upgraded to 2.x- Overrides:
getCategoryId
in classTopLevelItemDescriptor
- Returns:
- A string it represents a ItemCategory identifier.
-
getDescription
public String getDescription()
Needed if it wants Maven projects are categorized in Jenkins 2.x. TODO: Override when the baseline is upgraded to 2.x- Overrides:
getDescription
in classTopLevelItemDescriptor
- Returns:
- A string with the Item description.
-
getIconFilePathPattern
public String getIconFilePathPattern()
Needed if it wants Maven projects are categorized in Jenkins 2.x. TODO: Override when the baseline is upgraded to 2.x- Overrides:
getIconFilePathPattern
in classTopLevelItemDescriptor
- Returns:
- A string it represents a URL pattern to get the Item icon in different sizes.
-
getIconClassName
public String getIconClassName()
- Specified by:
getIconClassName
in interfaceIconSpec
- Overrides:
getIconClassName
in classTopLevelItemDescriptor
-
newInstance
public MavenModuleSet newInstance(ItemGroup parent, String name)
- Specified by:
newInstance
in classTopLevelItemDescriptor
-
getMavenDescriptor
public Maven.DescriptorImpl getMavenDescriptor()
-
getMavenValidationLevels
public Map<String,Integer> getMavenValidationLevels()
- Returns:
- a Map of label/validation level
- Since:
- 1.394
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject o)
- Overrides:
configure
in classDescriptor<TopLevelItem>
-
isApplicable
public boolean isApplicable(Descriptor descriptor)
- Overrides:
isApplicable
in classAbstractProject.AbstractProjectDescriptor
-
-