public abstract class SCMSourceDescriptor extends hudson.model.Descriptor<SCMSource>
Descriptor for SCMSources.| Constructor and Description |
|---|
SCMSourceDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
static List<SCMSourceDescriptor> |
forOwner(Class<? extends SCMSourceOwner> clazz)
Returns the list of descriptors that are appropriate for a specified type of owner and
isUserInstantiable(). |
static List<SCMSourceDescriptor> |
forOwner(Class<? extends SCMSourceOwner> clazz,
boolean onlyUserInstantiable)
Returns the list of descriptors that are appropriate for a specified type of owner with the additional
filter by
isUserInstantiable(). |
static List<SCMSourceDescriptor> |
forOwner(SCMSourceOwner owner)
Returns the list of descriptors that are appropriate for a specified owner and
isUserInstantiable(). |
static List<SCMSourceDescriptor> |
forOwner(SCMSourceOwner owner,
boolean onlyUserInstantiable)
Returns the list of descriptors that are appropriate for a specified owner with the additional filter by
isUserInstantiable(). |
String |
getId(SCMSource source)
Return or generate the ID for a source instance.
|
boolean |
isApplicable(Class<? extends SCMSourceOwner> owner)
Returns
true if this source type is applicable to the given owner. |
boolean |
isUserInstantiable()
Returns
true if the source type is one that the user is permitted to configure. |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap@NonNull public String getId(@CheckForNull SCMSource source)
source - the source or null if a new source.public boolean isApplicable(Class<? extends SCMSourceOwner> owner)
true if this source type is applicable to the given owner.owner - the type of owner.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isUserInstantiable()
true if the source type is one that the user is permitted to configure. Where a source is
used to wrap or decorate another source it may make sense to return false.true if the source type is one that the user is permitted to configure via the UI.@NonNull public static List<SCMSourceDescriptor> forOwner(@CheckForNull SCMSourceOwner owner)
isUserInstantiable().owner - the owner.@NonNull public static List<SCMSourceDescriptor> forOwner(@CheckForNull SCMSourceOwner owner, boolean onlyUserInstantiable)
isUserInstantiable().owner - the owner.onlyUserInstantiable - true if only those descriptors that are isUserInstantiable().@NonNull public static List<SCMSourceDescriptor> forOwner(Class<? extends SCMSourceOwner> clazz)
isUserInstantiable().clazz - the type of owner.@NonNull public static List<SCMSourceDescriptor> forOwner(Class<? extends SCMSourceOwner> clazz, boolean onlyUserInstantiable)
isUserInstantiable().clazz - the type of owner.onlyUserInstantiable - true if only those descriptors that are isUserInstantiable().Copyright © 2004-2013. All Rights Reserved.