public interface SCMSourceOwner extends Item
Item
that owns SCMSource
instances. Any SCMSource
instances accessed through a
SCMSourceOwner
will have had SCMSource.setOwner(SCMSourceOwner)
called with a non-null
owner before being exposed through either getSCMSources()
or getSCMSource(String)
.Modifier and Type | Method and Description |
---|---|
default SCMSource |
getSCMSource(String sourceId)
Gets the source with the specified
SCMSource.getId() . |
default SCMSourceCriteria |
getSCMSourceCriteria(SCMSource source)
Returns the criteria for determining if a candidate head is relevant for consumption.
|
List<SCMSource> |
getSCMSources()
Returns the
SCMSource instances that this item is consuming. |
void |
onSCMSourceUpdated(SCMSource source)
Deprecated.
implementations of
SCMSourceOwner would prefer the SCMEventListener extension point
which allows for more fine-grained response to events, so prefer delivering event notification through
SCMHeadEvent.fireNow(SCMHeadEvent) , SCMSourceEvent.fireNow(SCMSourceEvent) or
SCMNavigatorEvent.fireNow(SCMNavigatorEvent) as appropriate. |
delete, getAbsoluteUrl, getAllJobs, getDisplayName, getFullDisplayName, getFullName, getName, getParent, getRelativeNameFrom, getRelativeNameFrom, getShortUrl, getUrl, onCopiedFrom, onCreatedFromScratch, onLoad, save
getRootDir
getSearch
getSearchIndex, getSearchName, getSearchUrl
checkAnyPermission, checkPermission, getACL, hasAnyPermission, hasPermission, hasPermission, hasPermission2
@NonNull List<SCMSource> getSCMSources()
SCMSource
instances that this item is consuming.SCMSource
instances that this item is consuming.@CheckForNull default SCMSource getSCMSource(@CheckForNull String sourceId)
SCMSource.getId()
.sourceId
- the SCMSource.getId()
SCMSource
or null
if no matching source.@Deprecated void onSCMSourceUpdated(@NonNull SCMSource source)
SCMSourceOwner
would prefer the SCMEventListener
extension point
which allows for more fine-grained response to events, so prefer delivering event notification through
SCMHeadEvent.fireNow(SCMHeadEvent)
, SCMSourceEvent.fireNow(SCMSourceEvent)
or
SCMNavigatorEvent.fireNow(SCMNavigatorEvent)
as appropriate.SCMHead
instances returned by SCMSource.fetch(SCMHeadObserver, TaskListener)
may now be invalid / incomplete and consequently requires a full refresh. Implementations must provide
stern looks of disapproval to anyone calling this method.source
- the source@CheckForNull default SCMSourceCriteria getSCMSourceCriteria(@NonNull SCMSource source)
source
- the source to get the criteria for.Copyright © 2016–2022. All rights reserved.