Package com.legrig.jenkins.shortcut
Class ShortcutJob
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Actionable
-
- hudson.model.AbstractItem
-
- com.legrig.jenkins.shortcut.ShortcutJob
-
- All Implemented Interfaces:
ExtensionPoint,Describable<TopLevelItem>,DescriptorByNameOwner,Item,ModelObject,PersistenceRoot,Saveable,TopLevelItem,SearchableModelObject,SearchItem,AccessControlled,ModelObjectWithContextMenu,OnMaster,org.kohsuke.stapler.HttpDeletable,org.kohsuke.stapler.StaplerProxy
public class ShortcutJob extends AbstractItem implements TopLevelItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShortcutJob.DescriptorImplstatic classShortcutJob.ShortcutIcon-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem
-
-
Field Summary
-
Fields inherited from class hudson.model.AbstractItem
description, displayName, name, PRONOUN, SKIP_PERMISSION_CHECK, TASK_NOUN
-
-
Constructor Summary
Constructors Constructor Description ShortcutJob(ItemGroup parent, String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoConfigSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)voiddoDoRename(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)voiddoLastBuild(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)Collection<? extends Job>getAllJobs()HealthReportgetBuildHealth()ShortcutJob.DescriptorImplgetDescriptor()static StringgetIcon()ShortcutJob.ShortcutIcongetIconColor()StringgetLargeIcon()StringgetRedirectionUrl()StringgetTargetUrl()Get target URLbooleanisConfigured()booleanisDisabled()booleanisEnabled()booleanisNameEditable()booleanisRedirect()-
Methods inherited from class hudson.model.AbstractItem
checkRename, delete, delete, doCheckNewName, doConfigDotXml, doConfirmRename, doDoDelete, doReload, doSetName, doSubmitDescription, getAbsoluteUrl, getACL, getApi, getConfigFile, getDescription, getDisplayName, getDisplayNameOrNull, getFullDisplayName, getFullName, getName, getParent, getPronoun, getRelativeDisplayNameFrom, getRelativeNameFromGroup, getRootDir, getSearchName, getSearchUrl, getShortUrl, getTarget, getTaskNoun, getUrl, movedTo, onCopiedFrom, onLoad, performDelete, renameTo, resolveForCLI, save, setDescription, setDisplayName, setDisplayNameOrNull, toString, updateByXml, updateByXml, writeConfigDotXml, writeReplace
-
Methods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, getACL, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
Methods inherited from interface hudson.model.DescriptorByNameOwner
getDescriptorByName
-
Methods inherited from interface hudson.model.Item
delete, getAbsoluteUrl, getDisplayName, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl, onCopiedFrom, onCreatedFromScratch, onLoad, save
-
Methods inherited from interface hudson.model.PersistenceRoot
getRootDir
-
Methods inherited from interface hudson.search.SearchableModelObject
getSearch
-
Methods inherited from interface hudson.search.SearchItem
getSearchIndex, getSearchName, getSearchUrl
-
-
-
-
Method Detail
-
getIconColor
public ShortcutJob.ShortcutIcon getIconColor()
-
getTargetUrl
public String getTargetUrl()
Get target URL- Returns:
- configured Target URL
-
getLargeIcon
public String getLargeIcon()
-
getRedirectionUrl
public String getRedirectionUrl()
-
isConfigured
public boolean isConfigured()
-
isEnabled
public boolean isEnabled()
-
isDisabled
public boolean isDisabled()
-
isRedirect
public boolean isRedirect()
-
getDescriptor
public ShortcutJob.DescriptorImpl getDescriptor()
- Specified by:
getDescriptorin interfaceDescribable<TopLevelItem>- Specified by:
getDescriptorin interfaceTopLevelItem
-
getAllJobs
public Collection<? extends Job> getAllJobs()
- Specified by:
getAllJobsin interfaceItem- Specified by:
getAllJobsin classAbstractItem
-
isNameEditable
public boolean isNameEditable()
- Overrides:
isNameEditablein classAbstractItem
-
doConfigSubmit
@POST public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException, Descriptor.FormException- Throws:
IOExceptionjavax.servlet.ServletExceptionDescriptor.FormException
-
doLastBuild
public void doLastBuild(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException- Throws:
IOExceptionjavax.servlet.ServletException
-
getBuildHealth
public HealthReport getBuildHealth()
-
getIcon
public static String getIcon()
-
doDoRename
public void doDoRename(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException- Throws:
IOExceptionjavax.servlet.ServletException
-
-