Package jenkins.branch
Class ProjectNameProperty
java.lang.Object
hudson.model.AbstractDescribableImpl<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<MultiBranchProject<?,?>>
jenkins.branch.ProjectNameProperty
- All Implemented Interfaces:
ExtensionPoint
,Describable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
,ReconfigurableDescribable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
public class ProjectNameProperty
extends com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<MultiBranchProject<?,?>>
Holds the unmangled project name provided to
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.
- Since:
- 2.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
owner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>
reconfigure
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) Methods inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
getDescriptor, getHealthMetrics, getHealthReports, getItemContainerOverrides, getOwner, setOwner
-
Constructor Details
-
ProjectNameProperty
-
-
Method Details
-
getName
-
reconfigure
public com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?> reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) throws Descriptor.FormException - Specified by:
reconfigure
in interfaceReconfigurableDescribable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
- Overrides:
reconfigure
in classcom.cloudbees.hudson.plugins.folder.AbstractFolderProperty<MultiBranchProject<?,
?>> - Throws:
Descriptor.FormException
-