Package hudson.model
Interface DescriptorByNameOwner
-
- All Superinterfaces:
ModelObject
- All Known Implementing Classes:
AbstractBuild,AbstractCIBase,AbstractCloudComputer,AbstractItem,AbstractProject,AbstractTopLevelItem,AllView,Build,Computer,FreeStyleBuild,FreeStyleProject,Hudson,Hudson.MasterComputer,Jenkins,Jenkins.MasterComputer,Job,ListView,MyView,Project,ProxyView,Run,SlaveComputer,User,View,ViewJob
public interface DescriptorByNameOwner extends ModelObject
AddsgetDescriptorByName(String)to bindDescriptors to URL. Binding them at some specific object (instead ofJenkins), allowsDescriptors to perform context-specific form field validation.Descriptor.getCheckUrl(String)finds an ancestor with this interface and generates URLs against it.- Since:
- 1.294
- Author:
- Kohsuke Kawaguchi
- See Also:
Descriptor.getCheckUrl(String)
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default DescriptorgetDescriptorByName(String id)Exposes allDescriptors by its name to URL.-
Methods inherited from interface hudson.model.ModelObject
getDisplayName
-
-
-
-
Method Detail
-
getDescriptorByName
default Descriptor getDescriptorByName(String id)
Exposes allDescriptors by its name to URL.Implementation should always delegate to
Jenkins.getDescriptorByName(String).- Parameters:
id- EitherDescriptor.getId()(recommended) or the short name.
-
-