|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hudson.model.Descriptor<hudson.scm.SCM> hudson.scm.SCMDescriptor<DarcsScm> org.jenkinsci.plugins.darcs.DarcsScmDescriptor
@Extension public class DarcsScmDescriptor
Inner class of the SCM descriptor. Contains the global configuration options as fields.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class hudson.model.Descriptor |
---|
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self |
Field Summary |
---|
Fields inherited from class hudson.scm.SCMDescriptor |
---|
generation, repositoryBrowser |
Fields inherited from class hudson.model.Descriptor |
---|
clazz |
Fields inherited from interface hudson.model.Saveable |
---|
NOOP |
Constructor Summary | |
---|---|
DarcsScmDescriptor()
Dedicated constructor. |
Method Summary | |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
|
hudson.util.FormValidation |
doDarcsExeCheck(String value)
Validated the given executable string if it is a valid Darcs executable. |
String |
getDarcsExe()
Returns the executable. |
String |
getDisplayName()
Returns the display name. |
void |
load()
Own implementation of XML configuration loading to inject Jenkins.XSTREAM2 for unmarshalling. |
hudson.scm.SCM |
newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
|
Methods inherited from class hudson.scm.SCMDescriptor |
---|
getBrowserDescriptors, isApplicable, isBrowserReusable |
Methods inherited from class hudson.model.Descriptor |
---|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DarcsScmDescriptor()
Method Detail |
---|
public void load()
Jenkins.XSTREAM2
for unmarshalling.
TODO Remove this, if it possible to inject XStream into parent implementation.
Since 1.494 Dexcriptor#getConfigFile() is not private anymore. override load()
and call getConfigFile().getXStream().addCompatibilityAlias()
public void load() {
getConfigFile().getXStream().addCompatibilityAlias("org.jenkinsci.plugins.darcs.DarcsScm$DescriptorImpl",
DarcsScmDescriptor.class);
super.load();
}
load
in class hudson.scm.SCMDescriptor<DarcsScm>
public String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<hudson.scm.SCM>
public String getDarcsExe()
darcsExe
is null
DEFAULT_EXE
will be returnedpublic hudson.scm.SCM newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws hudson.model.Descriptor.FormException
newInstance
in class hudson.model.Descriptor<hudson.scm.SCM>
hudson.model.Descriptor.FormException
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws hudson.model.Descriptor.FormException
configure
in class hudson.model.Descriptor<hudson.scm.SCM>
hudson.model.Descriptor.FormException
public hudson.util.FormValidation doDarcsExeCheck(@QueryParameter String value)
value
- string from the plugin configuration field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |