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.CategoryNested 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 TypeMethodDescriptionvoiddoAddTemplate(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Creates a new ExtendedEmailPublisher and forwards the request to "edit.groovy".voiddoEditTemplate(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.HttpResponsedoRemoveTemplate(org.kohsuke.stapler.StaplerRequest2 res, org.kohsuke.stapler.StaplerResponse2 rsp, String templateId) Removes a templateorg.kohsuke.stapler.HttpResponsedoSaveTemplate(org.kohsuke.stapler.StaplerRequest2 req) Methods inherited from class hudson.model.ManagementLink
all, getBadge, getCategoryName, getRequiredPermission, getRequiresConfirmation, getRequiresPOST
-
Constructor Details
-
ExtEmailTemplateManagement
public ExtEmailTemplateManagement()
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction- Specified by:
getIconFileNamein classManagementLink
-
getUrlName
- Specified by:
getUrlNamein interfaceAction- Specified by:
getUrlNamein classManagementLink
-
getDisplayName
-
getDescription
- Overrides:
getDescriptionin 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:
IOExceptionjakarta.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:
IOExceptionjakarta.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) -
getCategory
- Overrides:
getCategoryin classManagementLink
-