Package jenkins.model
Class SimplePageDecorator
- All Implemented Interfaces:
ExtensionPoint,Describable<SimplePageDecorator>,Saveable,Loadable,OnMaster
- Direct Known Subclasses:
DefaultSimplePageDecorator
public class SimplePageDecorator
extends Descriptor<SimplePageDecorator>
implements ExtensionPoint, Describable<SimplePageDecorator>
Participates in the rendering of the login page
This class provides a few hooks to augment the HTML of the login page.
- simple-branding.jelly
- This view contributes to the branding section, usually located on the left side of the login/register pages.
- simple-footer.jelly
- This view contributes to the footer section, located below the login/register form.
- simple-head.jelly
- This view contributes to the head section.
- simple-header.jelly
- This view contributes to the header section just above the login/register form.
- Since:
- 2.128
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<SimplePageDecorator> all()Returns all login page decorators.static SimplePageDecoratorfirst()The first found LoginDecorator, there can only be one.final Descriptor<SimplePageDecorator> Gets the descriptor for this instance.final StringgetUrl()Obtains the URL of this object, excluding the context path.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
SimplePageDecorator
protected SimplePageDecorator()
-
-
Method Details
-
getDescriptor
Description copied from interface:DescribableGets the descriptor for this instance.Descriptoris a singleton for every concreteDescribableimplementation, so ifa.getClass() == b.getClass()then by defaulta.getDescriptor() == b.getDescriptor()as well. (In rare cases a single implementation class may be used for instances with distinct descriptors.)By default looks for a nested class (conventionally named
DescriptorImpl) implementingDescriptorand marked withExtension.- Specified by:
getDescriptorin interfaceDescribable<SimplePageDecorator>
-
getUrl
Obtains the URL of this object, excluding the context path.Every
SimplePageDecoratoris bound to URL viaJenkins.getDescriptor(). This method returns such an URL. -
all
Returns all login page decorators.- Since:
- 2.156
-
first
The first found LoginDecorator, there can only be one.- Returns:
- the first found
SimplePageDecorator
-