hudson.plugins.scis_ad
Class ScisSupportOffer
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.AdministrativeMonitor
hudson.plugins.scis_ad.ScisSupportOffer
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem
@Extension
public class ScisSupportOffer
- extends hudson.model.AdministrativeMonitor
Shows a support offer.
To minimize the negative impact of such ads, we only show it after
(1) the user has been running Hudson for 2 months, (2) there seems to be reasonable number of jobs
that indicates an active use of Hudson.
- Author:
- Kohsuke Kawaguchi
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.model.AdministrativeMonitor |
id |
|
Method Summary |
void |
doAct(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
java.lang.String yes,
java.lang.String no)
Depending on whether the user said "yes" or "no", send him to the right place. |
boolean |
isActivated()
|
| Methods inherited from class hudson.model.AdministrativeMonitor |
all, disable, doDisable, getDisplayName, getSearchUrl, getUrl, isEnabled |
| 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 |
active
public volatile boolean active
ScisSupportOffer
public ScisSupportOffer()
isActivated
public boolean isActivated()
- Specified by:
isActivated in class hudson.model.AdministrativeMonitor
doAct
public void doAct(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter
java.lang.String yes,
@QueryParameter
java.lang.String no)
throws java.io.IOException,
java.lang.InterruptedException
- Depending on whether the user said "yes" or "no", send him to the right place.
- Parameters:
no - non-null to disable, null to "remind me later".
- Throws:
java.io.IOException
java.lang.InterruptedException
Copyright © 2009. All Rights Reserved.