|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.Descriptor<T>
hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
hudson.plugins.analysis.core.PluginDescriptor
public abstract class PluginDescriptor
Base class for a Jankins plug-in descriptor.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
|---|
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType |
| Field Summary | |
|---|---|
protected static String |
RESULT_URL_SUFFIX
Suffix of the URL of the plug-in result. |
| Fields inherited from class hudson.model.Descriptor |
|---|
clazz |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
PluginDescriptor(Class<? extends hudson.tasks.Publisher> clazz)
Creates a new instance of PluginDescriptor. |
|
| Method Summary | |
|---|---|
protected static net.sf.json.JSONObject |
convertHierarchicalFormData(net.sf.json.JSONObject hierarchical)
Converts the hierarchical JSON object that contains a sub-section for to a corresponding flat JSON object. |
static String |
createResultUrlName(String pluginName)
Returns the result URL for the specified plug-in. |
hudson.util.FormValidation |
doCheckDefaultEncoding(String defaultEncoding)
Performs on-the-fly validation on the character encoding. |
hudson.util.FormValidation |
doCheckHeight(String height)
Performs on-the-fly validation on the trend graph height. |
hudson.util.FormValidation |
doCheckPattern(hudson.model.AbstractProject<?,?> project,
String pattern)
Performs on-the-fly validation on the file name pattern. |
hudson.util.FormValidation |
doCheckThreshold(String threshold)
Performs on-the-fly validation on the annotations threshold. |
String |
getHelpFile()
|
abstract String |
getIconUrl()
Returns the URL of the plug-in icon (24x24 image). |
abstract String |
getPluginName()
Returns the name of the plug-in. |
String |
getPluginResultUrlName()
Returns the name of the plug-in. |
String |
getPluginRoot()
Returns the root folder of this plug-in. |
String |
getSummaryIconUrl()
Returns the URL of the build summary icon (48x48 image). |
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
|
static boolean |
isPluginInstalled(String shortName)
Returns whether the specified plug-in is installed. |
hudson.tasks.Publisher |
newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
|
| Methods inherited from class hudson.tasks.BuildStepDescriptor |
|---|
filter |
| Methods inherited from class hudson.model.Descriptor |
|---|
calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, toArray, toList, toMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String RESULT_URL_SUFFIX
| Constructor Detail |
|---|
public PluginDescriptor(Class<? extends hudson.tasks.Publisher> clazz)
PluginDescriptor.
clazz - the type of the publisher| Method Detail |
|---|
public static String createResultUrlName(String pluginName)
pluginName - the name of the plug-in
public static boolean isPluginInstalled(String shortName)
shortName - the plug-in to check
true if the specified plug-in is installed,
false if not.protected static net.sf.json.JSONObject convertHierarchicalFormData(net.sf.json.JSONObject hierarchical)
hierarchical - the JSON object containing a sub-section
public hudson.tasks.Publisher newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
newInstance in class hudson.model.Descriptor<hudson.tasks.Publisher>hudson.model.Descriptor.FormExceptionpublic final String getHelpFile()
getHelpFile in class hudson.model.Descriptor<hudson.tasks.Publisher>public String getPluginRoot()
public final String getPluginResultUrlName()
public abstract String getPluginName()
public abstract String getIconUrl()
public String getSummaryIconUrl()
public hudson.util.FormValidation doCheckDefaultEncoding(@QueryParameter
String defaultEncoding)
defaultEncoding - the character encoding
public hudson.util.FormValidation doCheckPattern(@AncestorInPath
hudson.model.AbstractProject<?,?> project,
@QueryParameter
String pattern)
throws IOException
project - the projectpattern - the file pattern
IOException - if the encoding is not valid
public hudson.util.FormValidation doCheckThreshold(@QueryParameter
String threshold)
threshold - the character encoding
public hudson.util.FormValidation doCheckHeight(@QueryParameter
String height)
height - the height
public boolean isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||