|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.Actionable
org.jenkinsci.plugins.jobmail.actions.JobMailBaseAction
org.jenkinsci.plugins.jobmail.actions.JobMailProjectAction
public class JobMailProjectAction
Implements the mail action visible from the project view. contains most of the methods for creating the email and setting its properties.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu |
|---|
jenkins.model.ModelObjectWithContextMenu.ContextMenu, jenkins.model.ModelObjectWithContextMenu.MenuItem |
| Field Summary | |
|---|---|
protected JobMailGlobalConfiguration |
conf
The global configuration. |
| Constructor Summary | |
|---|---|
JobMailProjectAction(hudson.model.AbstractProject<?,?> project)
Constructor method. |
|
| Method Summary | |
|---|---|
void |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
The whole input of the email page. |
String |
getDefaultRecipients()
Returns the default recipients. |
String |
getDefaultSubject()
Returns the default subject for the email. |
String |
getFromProperty()
Returns the from propery of the email as a String. |
protected String |
getProjectName()
Return the project name. |
protected String |
getRedirectUrl()
Returns the url to which the user is redirected after sending the mail. |
List<JobMailGlobalConfiguration.Template> |
getTemplates()
Returns all configured templates. |
String |
getTemplateText(JobMailGlobalConfiguration.Template currentTemplate)
Constructs the content part of the email from a template. |
void |
init()
Initialize method, loads the configuration. |
| 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 |
| Field Detail |
|---|
protected JobMailGlobalConfiguration conf
| Constructor Detail |
|---|
public JobMailProjectAction(hudson.model.AbstractProject<?,?> project)
project - project for which the action is being created| Method Detail |
|---|
public String getFromProperty()
throws javax.mail.internet.AddressException
javax.mail.internet.AddressException - Address problem
public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException,
javax.mail.MessagingException,
InterruptedException
req - requestrsp - response
IOException - Input/output problem
javax.servlet.ServletException - servlet problem
javax.mail.MessagingException - Messaging problem
InterruptedException - Interruptpublic void init()
public String getDefaultSubject()
throws IOException,
InterruptedException
IOException - Input/output
InterruptedException - Interrupt
public String getDefaultRecipients()
throws IOException
IOExceptionpublic List<JobMailGlobalConfiguration.Template> getTemplates()
public String getTemplateText(JobMailGlobalConfiguration.Template currentTemplate)
currentTemplate - the template from which we are constructing text
protected String getRedirectUrl()
protected String getProjectName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||