Package io.jenkins.plugins.designlibrary
Class Home
java.lang.Object
io.jenkins.plugins.designlibrary.Home
- All Implemented Interfaces:
ExtensionPoint,Action,ModelObject,RootAction
Entry point to all the UI samples.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerates a dynamic gradient for the Home cardsvoiddoDynamic(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) getAll()getDynamic(String name) Dynamically retrieves the appropriate UI sample based on the current URLGets the plugin version number for the plugin for the home pagebooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Action
getEvent, getGroup, getSemantic, isVisibleInContextMenuMethods inherited from interface hudson.model.RootAction
getBadge
-
Constructor Details
-
Home
public Home()
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
isPrimaryAction
public boolean isPrimaryAction()- Specified by:
isPrimaryActionin interfaceRootAction
-
getAll
-
getGrouped
-
getDynamic
Dynamically retrieves the appropriate UI sample based on the current URL -
doDynamic
public void doDynamic(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException - Throws:
IOException
-
getPluginVersion
Gets the plugin version number for the plugin for the home page- Returns:
- the plugin version
-
buildGradientVar
Generates a dynamic gradient for the Home cards
-