Package hudson.plugins.emailext.watching
Class EmailExtWatchAction
- java.lang.Object
-
- hudson.plugins.emailext.watching.EmailExtWatchAction
-
- All Implemented Interfaces:
Action
,ModelObject
public class EmailExtWatchAction extends Object implements Action
- Author:
- acearl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EmailExtWatchAction.UserProperty
Per user property that contains
-
Constructor Summary
Constructors Constructor Description EmailExtWatchAction(AbstractProject<?,?> project)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
void
doStopWatching(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
String
getDisplayName()
String
getIconFileName()
EmailExtWatchJobProperty
getJobProperty()
Mailer.UserProperty
getMailerProperty()
AbstractProject<?,?>
getProject()
ExtendedEmailPublisher
getPublisher()
List<EmailTrigger>
getTriggers()
String
getUrlName()
boolean
isWatching()
boolean
isWatching(User user)
void
startWatching()
void
stopWatching()
-
-
-
Constructor Detail
-
EmailExtWatchAction
public EmailExtWatchAction(AbstractProject<?,?> project)
-
-
Method Detail
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
getProject
public AbstractProject<?,?> getProject()
-
isWatching
public boolean isWatching()
-
getTriggers
public List<EmailTrigger> getTriggers()
-
getJobProperty
public EmailExtWatchJobProperty getJobProperty() throws IOException
- Throws:
IOException
-
getMailerProperty
public Mailer.UserProperty getMailerProperty()
-
getPublisher
public ExtendedEmailPublisher getPublisher()
-
doStopWatching
@POST public void doStopWatching(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
- Throws:
IOException
-
doConfigSubmit
public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
startWatching
public void startWatching() throws IOException
- Throws:
IOException
-
stopWatching
public void stopWatching() throws IOException
- Throws:
IOException
-
isWatching
public boolean isWatching(User user) throws IOException
- Throws:
IOException
-
-