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).| 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 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()Copyright © 2016. All rights reserved.