public abstract class ChildObserver<I extends hudson.model.TopLevelItem> extends Object
ComputedFolder
.
Methods may be called only inside the scope of ComputedFolder.computeChildren(com.cloudbees.hudson.plugins.folder.computed.ChildObserver<I>, hudson.model.TaskListener)
or an out-of-band event handler.Modifier and Type | Method and Description |
---|---|
abstract void |
created(I child)
Notify the observer that you did create a new child.
|
abstract boolean |
mayCreate(String name)
Checks whether we may create a new child of the given name.
|
abstract Set<String> |
observed()
Returns a copy of the item names that have been observed.
|
abstract Map<String,I> |
orphaned()
Returns a copy of the map of orphaned items keyed by name.
|
abstract I |
shouldUpdate(String name)
Checks whether there is an existing child which should be updated.
|
@CheckForNull public abstract I shouldUpdate(String name)
name
- a proposed Item.getName()
mayCreate(java.lang.String)
public abstract boolean mayCreate(String name)
name
- a proposed Item.getName()
created(I)
(though you are not obliged to do so); false if you may notpublic abstract void created(I child)
child
- a newly constructed child item; do not call Item.onCreatedFromScratch()
and try to avoid calls to Item.save()
public abstract Set<String> observed()
Copyright © 2016–2017. All rights reserved.