public abstract class SCMSourceObserver extends Object
SCMNavigator.| Modifier and Type | Class and Description |
|---|---|
static class |
SCMSourceObserver.ProjectObserver
Nested callback produced by
observe(java.lang.String). |
| Constructor and Description |
|---|
SCMSourceObserver() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addAttribute(String key,
Object value)
Adds extra metadata about the overall organization.
|
abstract SCMSourceOwner |
getContext()
Indicates who is asking for sources.
|
abstract hudson.model.TaskListener |
getListener()
Provides a way of reporting progress.
|
abstract SCMSourceObserver.ProjectObserver |
observe(String projectName)
Declare that a new “project” such as a source repository has been found.
|
@Nonnull public abstract SCMSourceOwner getContext()
OrganizationFolder@Nonnull public abstract hudson.model.TaskListener getListener()
@Nonnull public abstract SCMSourceObserver.ProjectObserver observe(@Nonnull String projectName) throws IllegalArgumentException
projectName - a name of the project, such as a repository name within an organization; may be used as an Item.getName()SCMSourceObserver.ProjectObserver.complete()IllegalArgumentException - if this projectName has already been encounteredpublic abstract void addAttribute(@Nonnull
String key,
@Nullable
Object value)
throws IllegalArgumentException,
ClassCastException
key - a predefined attribute namevalue - some value, of a type defined by the attribute, perhaps null if allowed by the attribute documentationIllegalArgumentException - if the attribute name is unrecognized, or this attribute was already addedClassCastException - if the attribute value is inappropriate for its typeCopyright © 2004-2015. All Rights Reserved.