public class ProjectNameProperty extends com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<MultiBranchProject<?,?>>
SCMSourceObserver.observe(String) and used to create a
MultiBranchProject within a OrganizationFolder. Normally one would hope that the name provided by
SCMSourceObserver.observe(String) can be directly mapped to AbstractItem.getName()
however as we have no control over either the length or the characters coming from the SCMNavigator
we need to mangle the name with NameMangler.apply(String). As unmangled names are not reconstructable
from the mangled name, we need to store the original unmangled name, hence this property.
Note that this is not an issue for the children of MultiBranchProject as Branch.getName() is
the unmangled name of the branch.
| Modifier and Type | Class and Description |
|---|---|
static class |
ProjectNameProperty.DescriptorImpl |
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
ProjectNameProperty(String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?> |
reconfigure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject form) |
public ProjectNameProperty(String name)
public String getName()
public com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?> reconfigure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject form)
throws Descriptor.FormException
reconfigure in interface ReconfigurableDescribable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>reconfigure in class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<MultiBranchProject<?,?>>Descriptor.FormExceptionCopyright © 2016–2019. All rights reserved.