|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.ManagementLink
com.sonyericsson.hudson.plugins.gerrit.trigger.GerritManagement
@Extension public class GerritManagement
Management link for configuring the global configuration of this trigger.
Nested Class Summary | |
---|---|
static class |
GerritManagement.DescriptorImpl
Descriptor is only used for UI form bindings. |
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu |
---|
jenkins.model.ModelObjectWithContextMenu.ContextMenu, jenkins.model.ModelObjectWithContextMenu.MenuItem |
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Field Summary | |
---|---|
static String |
URL_NAME
The relative url name for this management link. |
Fields inherited from class hudson.model.ManagementLink |
---|
LIST |
Fields inherited from interface hudson.model.Saveable |
---|
NOOP |
Constructor Summary | |
---|---|
GerritManagement()
|
Method Summary | |
---|---|
GerritServer |
doAddNewServer(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Add a new server. |
void |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Saves the form to the configuration and disk. |
jenkins.model.ModelObjectWithContextMenu.ContextMenu |
doContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
|
hudson.util.FormValidation |
doNameFreeCheck(String value)
Checks whether server name already exists. |
static GerritManagement |
get()
Returns this singleton. |
GerritAdministrativeMonitor |
getAdministrativeMonitor()
The AdministrativeMonitor related to Gerrit. |
static IGerritHudsonTriggerConfig |
getConfig(String serverName)
Get the config of a server. |
String |
getDescription()
|
GerritManagement.DescriptorImpl |
getDescriptor()
|
String |
getDisplayName()
|
String |
getIconFileName()
|
static PluginConfig |
getPluginConfig()
Get the plugin config. |
GerritServer |
getServer(String encodedServerName)
Used when redirected to a server. |
List<String> |
getServerNames()
Convenience method for jelly. |
List<GerritServer> |
getServers()
Gets the list of GerritServer. |
net.sf.json.JSONObject |
getServerStatuses()
Used when getting server status from JavaScript. |
Object |
getTarget()
|
String |
getUrlName()
|
void |
save()
|
Methods inherited from class hudson.model.ManagementLink |
---|
all, getRequiredPermission, getRequiresConfirmation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String URL_NAME
getUrlName()
.
Constructor Detail |
---|
public GerritManagement()
Method Detail |
---|
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
getIconFileName
in class hudson.model.ManagementLink
public String getUrlName()
getUrlName
in interface hudson.model.Action
getUrlName
in class hudson.model.ManagementLink
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getDescription()
getDescription
in class hudson.model.ManagementLink
public GerritManagement.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<GerritManagement>
public jenkins.model.ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception
doContextMenu
in interface jenkins.model.ModelObjectWithContextMenu
Exception
public List<GerritServer> getServers()
public GerritServer getServer(String encodedServerName)
encodedServerName
- the server name encoded by URLEncoder.encode(name,"UTF-8").
@JavaScriptMethod public net.sf.json.JSONObject getServerStatuses()
public GerritServer doAddNewServer(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
req
- the StaplerRequestrsp
- the StaplerResponse
IOException
- when error sending redirect back to the list of serverspublic Object getTarget()
getTarget
in interface org.kohsuke.stapler.StaplerProxy
public void save() throws IOException
save
in interface hudson.model.Saveable
IOException
public static GerritManagement get()
public static PluginConfig getPluginConfig()
public static IGerritHudsonTriggerConfig getConfig(String serverName)
serverName
- the name of the server for which we want to get the config.
GerritServer.getConfig()
public GerritAdministrativeMonitor getAdministrativeMonitor()
public List<String> getServerNames()
public hudson.util.FormValidation doNameFreeCheck(@QueryParameter(value="value") String value)
value
- the value of the name field.
public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException, InterruptedException
req
- StaplerRequestrsp
- StaplerResponse
javax.servlet.ServletException
- if something unfortunate happens.
IOException
- if something unfortunate happens.
InterruptedException
- if something unfortunate happens.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |