org.jenkinsci.plugins.jobmail.actions
Class JobMailBuildAction
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Actionable
org.jenkinsci.plugins.jobmail.actions.JobMailBaseAction
org.jenkinsci.plugins.jobmail.actions.JobMailProjectAction
org.jenkinsci.plugins.jobmail.actions.JobMailBuildAction
- All Implemented Interfaces:
- hudson.model.Action, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem, jenkins.model.ModelObjectWithContextMenu
public class JobMailBuildAction
- extends JobMailProjectAction
Implaments the action visible from a build view.
Adds and overrides a few methods from the
JobMailProjectAction.
- Author:
- yboev
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu |
jenkins.model.ModelObjectWithContextMenu.ContextMenu, jenkins.model.ModelObjectWithContextMenu.MenuItem |
Methods inherited from class hudson.model.Actionable |
addAction, doContextMenu, getAction, getAction, getActions, getActions, getDynamic |
Methods inherited from class hudson.model.AbstractModelObject |
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JobMailBuildAction
public JobMailBuildAction(hudson.model.Run<?,?> build)
- Constructor method.
- Parameters:
build
- build for which the action is constructed.
getDefaultSubject
public String getDefaultSubject()
throws IOException,
InterruptedException
- Description copied from class:
JobMailProjectAction
- Returns the default subject for the email.
- Overrides:
getDefaultSubject
in class JobMailProjectAction
- Returns:
- default subject as string
- Throws:
IOException
- Input/output
InterruptedException
- Interrupt
getTemplateText
public String getTemplateText(JobMailGlobalConfiguration.Template currentTemplate)
- Description copied from class:
JobMailProjectAction
- Constructs the content part of the email from a template.
- Overrides:
getTemplateText
in class JobMailProjectAction
- Parameters:
currentTemplate
- the template from which we are constructing text
- Returns:
- the constructed text as String
getRedirectUrl
protected String getRedirectUrl()
- Description copied from class:
JobMailProjectAction
- Returns the url to which the user is redirected after sending the mail.
- Overrides:
getRedirectUrl
in class JobMailProjectAction
- Returns:
- the url as String
Copyright © 2004-2013. All Rights Reserved.