|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
hudson.plugins.promoted_builds.JobPropertyImpl
public final class JobPropertyImpl
Promotion processes defined for a project.
TODO: a possible performance problem as every time the owner job is reconfigured, all the promotion processes get reloaded from the disk.
| Nested Class Summary | |
|---|---|
static class |
JobPropertyImpl.DescriptorImpl
|
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
|---|
hudson.tasks.BuildStep.PublisherList |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary |
|---|
| Fields inherited from class hudson.model.JobProperty |
|---|
owner |
| Fields inherited from interface hudson.tasks.BuildStep |
|---|
BUILDERS, PUBLISHERS |
| Constructor Summary | |
|---|---|
JobPropertyImpl(hudson.model.AbstractProject<?,?> owner)
Programmatic construction. |
|
| Method Summary | |
|---|---|
PromotionProcess |
addProcess(java.lang.String name)
Adds a new promotion process of the given name. |
java.util.List<PromotionProcess> |
getActiveItems()
Gets the list of active promotion processes. |
JobPropertyImpl.DescriptorImpl |
getDescriptor()
|
java.lang.String |
getDisplayName()
|
java.lang.String |
getFullDisplayName()
|
java.lang.String |
getFullName()
|
PromotionProcess |
getItem(java.lang.String name)
Finds a config by name. |
java.util.List<PromotionProcess> |
getItems()
Gets the list of promotion processes defined for this project, including ones that are no longer actively used and only for archival purpose. |
hudson.model.Action |
getJobAction(hudson.model.AbstractProject<?,?> job)
|
hudson.model.AbstractProject<?,?> |
getOwner()
Gets AbstractProject that contains us. |
java.io.File |
getRootDir()
|
java.io.File |
getRootDirFor(PromotionProcess child)
|
java.lang.String |
getUrl()
|
java.lang.String |
getUrlChildPrefix()
|
boolean |
prebuild(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener)
|
void |
save()
|
protected void |
setOwner(hudson.model.AbstractProject<?,?> owner)
|
| Methods inherited from class hudson.model.JobProperty |
|---|
getProjectAction, perform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JobPropertyImpl(hudson.model.AbstractProject<?,?> owner)
throws hudson.model.Descriptor.FormException,
java.io.IOException
hudson.model.Descriptor.FormException
java.io.IOException| Method Detail |
|---|
public PromotionProcess addProcess(java.lang.String name)
throws java.io.IOException
java.io.IOExceptionprotected void setOwner(hudson.model.AbstractProject<?,?> owner)
setOwner in class hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>public java.util.List<PromotionProcess> getItems()
getItems in interface hudson.model.ItemGroup<PromotionProcess>public java.util.List<PromotionProcess> getActiveItems()
public hudson.model.AbstractProject<?,?> getOwner()
AbstractProject that contains us.
public PromotionProcess getItem(java.lang.String name)
getItem in interface hudson.model.ItemGroup<PromotionProcess>public java.io.File getRootDir()
getRootDir in interface hudson.model.PersistenceRoot
public void save()
throws java.io.IOException
save in interface hudson.model.Saveablejava.io.IOExceptionpublic java.lang.String getUrl()
getUrl in interface hudson.model.ItemGroup<PromotionProcess>public java.lang.String getFullName()
getFullName in interface hudson.model.ItemGroup<PromotionProcess>public java.lang.String getFullDisplayName()
getFullDisplayName in interface hudson.model.ItemGroup<PromotionProcess>public java.lang.String getUrlChildPrefix()
getUrlChildPrefix in interface hudson.model.ItemGroup<PromotionProcess>public java.io.File getRootDirFor(PromotionProcess child)
getRootDirFor in interface hudson.model.ItemGroup<PromotionProcess>public java.lang.String getDisplayName()
getDisplayName in interface hudson.model.ModelObject
public boolean prebuild(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener)
prebuild in interface hudson.tasks.BuildStepprebuild in class hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>public hudson.model.Action getJobAction(hudson.model.AbstractProject<?,?> job)
getJobAction in class hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>public JobPropertyImpl.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.model.JobProperty<?>>getDescriptor in class hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||