Class ExtEmailTemplateManagement
java.lang.Object
hudson.model.ManagementLink
org.jenkinsci.plugins.emailext_template.ExtEmailTemplateManagement
- All Implemented Interfaces:
ExtensionPoint
,Action
,ModelObject
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.ManagementLink
ManagementLink.Category
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.ManagementLink
LIST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doAddTemplate
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Creates a new ExtendedEmailPublisher and forwards the request to "edit.groovy".void
doEditTemplate
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, String templateId) Loads the template by its id and forwards the request to "edit.jelly".org.kohsuke.stapler.HttpResponse
doRemoveTemplate
(org.kohsuke.stapler.StaplerRequest2 res, org.kohsuke.stapler.StaplerResponse2 rsp, String templateId) Removes a templateorg.kohsuke.stapler.HttpResponse
doSaveTemplate
(org.kohsuke.stapler.StaplerRequest2 req) Methods inherited from class hudson.model.ManagementLink
all, getBadge, getCategory, getCategoryName, getRequiredPermission, getRequiresConfirmation, getRequiresPOST
-
Constructor Details
-
ExtEmailTemplateManagement
public ExtEmailTemplateManagement()
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
- Specified by:
getIconFileName
in classManagementLink
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
- Specified by:
getUrlName
in classManagementLink
-
getDisplayName
-
getDescription
- Overrides:
getDescription
in classManagementLink
-
doAddTemplate
public void doAddTemplate(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException Creates a new ExtendedEmailPublisher and forwards the request to "edit.groovy".- Parameters:
req
- requestrsp
- response- Throws:
IOException
jakarta.servlet.ServletException
-
doEditTemplate
public void doEditTemplate(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, @QueryParameter("id") String templateId) throws IOException, jakarta.servlet.ServletException Loads the template by its id and forwards the request to "edit.jelly".- Parameters:
req
- requestrsp
- responsetemplateId
- the id of the template to be loaded in to the edit view.- Throws:
IOException
jakarta.servlet.ServletException
-
doRemoveTemplate
public org.kohsuke.stapler.HttpResponse doRemoveTemplate(org.kohsuke.stapler.StaplerRequest2 res, org.kohsuke.stapler.StaplerResponse2 rsp, @QueryParameter("id") String templateId) Removes a template- Parameters:
res
- responsersp
- requesttemplateId
- the id of the template to be removed- Returns:
- forward to 'index'
-
doSaveTemplate
public org.kohsuke.stapler.HttpResponse doSaveTemplate(org.kohsuke.stapler.StaplerRequest2 req)
-