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.Self
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<SimplePageDecorator>
all()
Returns all login page decorators.static SimplePageDecorator
first()
The first found LoginDecorator, there can only be one.final Descriptor<SimplePageDecorator>
Gets the descriptor for this instance.final String
getUrl()
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:Describable
Gets the descriptor for this instance.Descriptor
is a singleton for every concreteDescribable
implementation, 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.)- Specified by:
getDescriptor
in interfaceDescribable<SimplePageDecorator>
-
getUrl
Obtains the URL of this object, excluding the context path.Every
SimplePageDecorator
is 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
-