Package hudson.plugins.promoted_builds
Class JobPropertyImpl
- All Implemented Interfaces:
- ExtensionPoint,- Describable<JobProperty<?>>,- ItemGroup<PromotionProcess>,- ModelObject,- PersistenceRoot,- ReconfigurableDescribable<JobProperty<?>>,- Saveable,- BuildStep
public final class JobPropertyImpl
extends JobProperty<AbstractProject<?,?>>
implements ItemGroup<PromotionProcess> 
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.
- Author:
- Kohsuke Kawaguchi
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface hudson.tasks.BuildStepBuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFields inherited from class hudson.model.JobPropertyownerFields inherited from interface hudson.tasks.BuildStepBUILDERS, PUBLISHERS
- 
Constructor SummaryConstructorsConstructorDescriptionJobPropertyImpl(AbstractProject<?, ?> owner) Programmatic construction.JobPropertyImpl(JobPropertyImpl other, AbstractProject<?, ?> owner) Programmatic construction.JobPropertyImpl(Set<String> activeProcessNames) Programmatic construction.
- 
Method SummaryModifier and TypeMethodDescriptionaddProcess(String name) Adds a new promotion process of the given name.createProcessFromXml(String name, InputStream xml) Gets the list of active promotion processes.Finds aPromotionProcessby name.getItems()Gets the list of promotion processes defined for this project, including ones that are no longer actively used and only for archival purpose.getJobAction(AbstractProject<?, ?> job) Deprecated.AbstractProject<?,?> getOwner()GetsAbstractProjectthat contains us.getRootDirFor(PromotionProcess child) getUrl()voidonDeleted(PromotionProcess process) voidonRenamed(PromotionProcess item, String oldName, String newName) booleanprebuild(AbstractBuild<?, ?> build, BuildListener listener) voidsave()protected voidsetOwner(AbstractProject<?, ?> owner) Methods inherited from class hudson.model.JobPropertygetDescriptor, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, reconfigure, reconfigureMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.ItemGroupallItems, allItems, allItems, getAllItems, getAllItems, getAllItems, getItemName, getItems, getItemsStream, getItemsStream
- 
Constructor Details- 
JobPropertyImplProgrammatic construction.- Parameters:
- owner- owner job
- Throws:
- Descriptor.FormException
- IOException
 
- 
JobPropertyImplpublic JobPropertyImpl(JobPropertyImpl other, AbstractProject<?, ?> owner) throws Descriptor.FormException, IOExceptionProgrammatic construction.- Parameters:
- other- Property to be copied
- owner- owner job
- Throws:
- Descriptor.FormException
- IOException
 
- 
JobPropertyImpl@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public JobPropertyImpl(Set<String> activeProcessNames) Programmatic construction.
 
- 
- 
Method Details- 
addProcessAdds a new promotion process of the given name.- Parameters:
- name- Name of the process to be created
- Returns:
- Created process
- Throws:
- IOException- Execution error
 
- 
setOwner- Overrides:
- setOwnerin class- JobProperty<AbstractProject<?,- ?>> 
 
- 
getItemsGets the list of promotion processes defined for this project, including ones that are no longer actively used and only for archival purpose.- Specified by:
- getItemsin interface- ItemGroup<PromotionProcess>
- Returns:
- non-null and non-empty. Read-only.
 
- 
getActiveItemsGets the list of active promotion processes.
- 
createProcessFromXml
- 
getOwnerGetsAbstractProjectthat contains us.- Returns:
- Owner project
 
- 
getItemFinds aPromotionProcessby name.- Specified by:
- getItemin interface- ItemGroup<PromotionProcess>
- Parameters:
- name- Name of the process
- Returns:
- PromotionProcessif it can be found.
 
- 
getRootDir- Specified by:
- getRootDirin interface- PersistenceRoot
 
- 
save- Specified by:
- savein interface- Saveable
- Throws:
- IOException
 
- 
onDeleted- Specified by:
- onDeletedin interface- ItemGroup<PromotionProcess>
 
- 
onRenamed- Specified by:
- onRenamedin interface- ItemGroup<PromotionProcess>
- Throws:
- IOException
 
- 
getUrl- Specified by:
- getUrlin interface- ItemGroup<PromotionProcess>
 
- 
getFullName- Specified by:
- getFullNamein interface- ItemGroup<PromotionProcess>
 
- 
getFullDisplayName- Specified by:
- getFullDisplayNamein interface- ItemGroup<PromotionProcess>
 
- 
getUrlChildPrefix- Specified by:
- getUrlChildPrefixin interface- ItemGroup<PromotionProcess>
 
- 
getRootDirFor- Specified by:
- getRootDirForin interface- ItemGroup<PromotionProcess>
 
- 
getDisplayName- Specified by:
- getDisplayNamein interface- ModelObject
 
- 
prebuild- Specified by:
- prebuildin interface- BuildStep
- Overrides:
- prebuildin class- JobProperty<AbstractProject<?,- ?>> 
 
- 
getJobActionDeprecated.- Overrides:
- getJobActionin class- JobProperty<AbstractProject<?,- ?>> 
 
 
-