org.jenkinsci.plugins.jobmail.actions
Class JobMailBuildAction

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Actionable
          extended by org.jenkinsci.plugins.jobmail.actions.JobMailBaseAction
              extended by org.jenkinsci.plugins.jobmail.actions.JobMailProjectAction
                  extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
jenkins.model.ModelObjectWithContextMenu.ContextMenu, jenkins.model.ModelObjectWithContextMenu.MenuItem
 
Field Summary
 
Fields inherited from class org.jenkinsci.plugins.jobmail.actions.JobMailProjectAction
conf
 
Constructor Summary
JobMailBuildAction(hudson.model.Run<?,?> build)
          Constructor method.
 
Method Summary
 String getDefaultSubject()
          Returns the default subject for the email.
protected  String getRedirectUrl()
          Returns the url to which the user is redirected after sending the mail.
 String getTemplateText(JobMailGlobalConfiguration.Template currentTemplate)
          Constructs the content part of the email from a template.
 
Methods inherited from class org.jenkinsci.plugins.jobmail.actions.JobMailProjectAction
doConfigSubmit, getDefaultRecipients, getFromProperty, getProjectName, getTemplates, init
 
Methods inherited from class org.jenkinsci.plugins.jobmail.actions.JobMailBaseAction
getDisplayName, getIconFileName, getSearchUrl, getUrlName
 
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
 

Constructor Detail

JobMailBuildAction

public JobMailBuildAction(hudson.model.Run<?,?> build)
Constructor method.

Parameters:
build - build for which the action is constructed.
Method Detail

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.