org.jenkinsci.plugins.configfiles
Class ConfigFilesManagement
java.lang.Object
hudson.model.ManagementLink
org.jenkinsci.plugins.configfiles.ConfigFilesManagement
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Action, hudson.model.ModelObject
@Extension
public class ConfigFilesManagement
- extends hudson.model.ManagementLink
Provides a new link in the "Manage Jenkins" view and builds the UI to manage the configfiles.
- Author:
- domi
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.model.ManagementLink |
LIST |
|
Method Summary |
void |
doAddConfig(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
String providerId)
Requests a new config object from provider (defined by the given id) and forwards the request to "edit.jelly". |
void |
doEditConfig(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
String confgiId)
Loads the config by its id and forwards the request to "edit.jelly". |
org.kohsuke.stapler.HttpResponse |
doRemoveConfig(org.kohsuke.stapler.StaplerRequest res,
org.kohsuke.stapler.StaplerResponse rsp,
String configId)
Removes a script from the config and filesystem. |
org.kohsuke.stapler.HttpResponse |
doSaveConfig(org.kohsuke.stapler.StaplerRequest req)
|
void |
doSelectProvider(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
|
void |
doShow(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
String confgiId)
|
Collection<org.jenkinsci.lib.configprovider.model.Config> |
getConfigs()
|
org.jenkinsci.lib.configprovider.model.ContentType |
getContentTypeForProvider(String providerId)
|
String |
getDescription()
|
String |
getDisplayName()
|
String |
getIconFileName()
|
List<org.jenkinsci.lib.configprovider.ConfigProvider> |
getProviders()
|
String |
getUrlName()
|
| Methods inherited from class hudson.model.ManagementLink |
all, getRequiredPermission |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigFilesManagement
public ConfigFilesManagement()
getDisplayName
public String getDisplayName()
- See Also:
Action.getDisplayName()
getDescription
public String getDescription()
- Overrides:
getDescription in class hudson.model.ManagementLink
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName in interface hudson.model.Action- Specified by:
getIconFileName in class hudson.model.ManagementLink
- See Also:
ManagementLink.getIconFileName()
getUrlName
public String getUrlName()
- Specified by:
getUrlName in interface hudson.model.Action- Specified by:
getUrlName in class hudson.model.ManagementLink
- See Also:
ManagementLink.getUrlName()
getContentTypeForProvider
public org.jenkinsci.lib.configprovider.model.ContentType getContentTypeForProvider(String providerId)
getProviders
public List<org.jenkinsci.lib.configprovider.ConfigProvider> getProviders()
getConfigs
public Collection<org.jenkinsci.lib.configprovider.model.Config> getConfigs()
doSaveConfig
public org.kohsuke.stapler.HttpResponse doSaveConfig(org.kohsuke.stapler.StaplerRequest req)
doShow
public void doShow(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter(value="id")
String confgiId)
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
doEditConfig
public void doEditConfig(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter(value="id")
String confgiId)
throws IOException,
javax.servlet.ServletException
- Loads the config by its id and forwards the request to "edit.jelly".
- Parameters:
req - requestrsp - responseconfgiId - the id of the config to be loaded in to the edit view.
- Throws:
IOException
javax.servlet.ServletException
doAddConfig
public void doAddConfig(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter(value="providerId")
String providerId)
throws IOException,
javax.servlet.ServletException
- Requests a new config object from provider (defined by the given id) and forwards the request to "edit.jelly".
- Parameters:
req - requestrsp - responseproviderId - the id of the provider to create a new config instance with
- Throws:
IOException
javax.servlet.ServletException
doSelectProvider
public void doSelectProvider(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
doRemoveConfig
public org.kohsuke.stapler.HttpResponse doRemoveConfig(org.kohsuke.stapler.StaplerRequest res,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter(value="id")
String configId)
throws IOException
- Removes a script from the config and filesystem.
- Parameters:
res - responsersp - requestconfigId - the id of the config to be removed
- Returns:
- forward to 'index'
- Throws:
IOException
Copyright © 2004-2012. All Rights Reserved.