Package jenkins.scm.api
Class SCMNavigatorDescriptor
- java.lang.Object
-
- hudson.model.Descriptor<SCMNavigator>
-
- jenkins.scm.api.SCMNavigatorDescriptor
-
- Direct Known Subclasses:
SingleSCMNavigator.DescriptorImpl
public abstract class SCMNavigatorDescriptor extends Descriptor<SCMNavigator> implements IconSpec
Definition of a kind ofSCMNavigator
.- Since:
- 0.3-beta-1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<SCMSourceCategory>
categories
The set ofSCMSourceCategory
singletons for this type ofSCMNavigator
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SCMNavigatorDescriptor()
protected
SCMNavigatorDescriptor(Class<? extends SCMNavigator> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected SCMSourceCategory[]
createCategories()
Creates the singletonSCMSourceCategory
instances that this type ofSCMNavigator
is capable of producing.Set<SCMSourceCategory>
getCategories()
Returns the set ofSCMSourceCategory
that thisSCMNavigator
supports.String
getCategoryId()
Deprecated.No longer used.String
getDescription()
Deprecated.No longer used.String
getIconClassName()
Get the Item's Icon class specification e.g.String
getIconFilePathPattern()
Deprecated.No longer used.String
getPronoun()
Get the term used in the UI to represent this kind ofSCMNavigator
.List<SCMTrait<? extends SCMTrait<?>>>
getTraitsDefaults()
Returns the default traits for thisSCMSource
.SCMNavigator
newInstance(String name)
Deprecated.No longer used.-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Field Detail
-
categories
protected transient Set<SCMSourceCategory> categories
The set ofSCMSourceCategory
singletons for this type ofSCMNavigator
- Since:
- 2.0
- See Also:
getCategories()
-
-
Constructor Detail
-
SCMNavigatorDescriptor
protected SCMNavigatorDescriptor()
-
SCMNavigatorDescriptor
protected SCMNavigatorDescriptor(Class<? extends SCMNavigator> clazz)
-
-
Method Detail
-
getTraitsDefaults
@NonNull public List<SCMTrait<? extends SCMTrait<?>>> getTraitsDefaults()
Returns the default traits for thisSCMSource
.- Returns:
- An empty list if not overridden.
-
getDescription
@Deprecated @NonNull public String getDescription()
Deprecated.No longer used.
-
getCategoryId
@Deprecated @NonNull public String getCategoryId()
Deprecated.No longer used.
-
getIconFilePathPattern
@Deprecated @CheckForNull public String getIconFilePathPattern()
Deprecated.No longer used.
-
getIconClassName
@CheckForNull public String getIconClassName()
Get the Item's Icon class specification e.g. 'icon-notepad'. Note: do NOT include icon size specifications (such as 'icon-sm').- Specified by:
getIconClassName
in interfaceIconSpec
- Returns:
- The Icon class specification e.g. 'icon-notepad'.
-
getPronoun
@CheckForNull public String getPronoun()
Get the term used in the UI to represent this kind ofSCMNavigator
. Must start with a capital letter.- Returns:
- the term or
null
to fall back to the calling context's default. - Since:
- 2.0
-
getCategories
@NonNull public final Set<SCMSourceCategory> getCategories()
Returns the set ofSCMSourceCategory
that thisSCMNavigator
supports. There will always be exactly oneSCMCategory.isUncategorized()
instance in the returned set.- Returns:
- the set of
SCMSourceCategory
that thisSCMNavigator
supports. - Since:
- 2.0
- See Also:
createCategories()
-
createCategories
@NonNull protected SCMSourceCategory[] createCategories()
Creates the singletonSCMSourceCategory
instances that this type ofSCMNavigator
is capable of producing.- Returns:
- the singleton
SCMSourceCategory
instances for this type ofSCMNavigator
- Since:
- 2.0
- See Also:
getCategories()
-
newInstance
@Deprecated @CheckForNull public SCMNavigator newInstance(@CheckForNull String name)
Deprecated.No longer used.
-
-