|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ArtifactSubscriptionManager
Field Summary | |
---|---|
static java.lang.String |
BAMBOO_ARTIFACTS_PATH_VARIABLE
|
Method Summary | |
---|---|
java.util.List<ArtifactSubscription> |
findCurrentSubscriptionsForPlan(Job producerJob)
Get list of subscriptions existing in a chain for given artifact |
ArtifactSubscription |
findSubscription(long id)
Get artifact definition of specified id |
java.util.List<ArtifactSubscription> |
findSubscriptionsOfPlan(Plan plan)
Get list of artifact subscriptions associated with a plan |
java.util.List<ArtifactDefinition> |
findSubscriptionsPossibleForPlan(Job job)
Get list of chain level artifacts available for specified plan |
com.google.common.collect.Multimap<ResultsSummary,ConsumedSubscription> |
getConsumedSubscriptions(ResultsSummary resultsSummary)
Returns list of ConsumedSubscription ordered by order of ResultsSummary execution. |
boolean |
isSubscriptionsValid(Job consumer,
Chain chain,
java.lang.String stageName)
Shorter for of validateSubscriptions method |
java.util.List<ArtifactSubscriptionContext> |
prepareSubscriptionContexts(ImmutableJob job,
PlanResultKey planResultKey)
|
void |
removeArtifactSubscription(ArtifactSubscription artifactSubscription)
Remove artifact subscription. |
void |
removeArtifactSubscriptions(java.util.Collection<ArtifactSubscription> artifactSubscriptions)
Remove all artifact subscriptions in the collection. |
void |
removeArtifactSubscriptionsOfPlan(Plan plan)
Remove all artifact subscriptions for a plan |
void |
saveArtifactSubscription(ArtifactSubscription artifactSubscription)
Save artifact subscription. |
void |
saveArtifactSubscriptions(java.util.Collection<ArtifactSubscription> artifactSubscriptions)
Save all artifact definitions in a collection. |
void |
saveConsumedSubscription(ArtifactSubscriptionContext artifactSubscription,
PlanResultKey planResultKey)
Store consumed subscription. |
java.util.List<ArtifactSubscriptionSubstitutionAware> |
transformSubscriptions(java.util.List<ArtifactSubscription> subscriptions)
|
java.util.List<ArtifactSubscription> |
validateSubscribersForMovedJob(Job producer,
ChainStage producerStage)
Validate all consumer artifact subscriptions to the artifacts produced by a Job against target stage |
java.util.List<ArtifactSubscription> |
validateSubscriptions(Job consumer,
Chain chain,
java.lang.String stageName)
Validate consumer artifact subscriptions against target chain and stage |
java.util.List<ArtifactSubscription> |
validateSubscriptionsForMovedStage(ChainStage stage,
int stageIndex)
Validate all consumer artifact subscriptions possibly affected by moving of stage. |
Field Detail |
---|
static final java.lang.String BAMBOO_ARTIFACTS_PATH_VARIABLE
Method Detail |
---|
@Nullable ArtifactSubscription findSubscription(long id)
id
- id of artifact subscription
@NotNull java.util.List<ArtifactSubscription> findSubscriptionsOfPlan(@NotNull Plan plan)
plan
- plan which associated artifact subscriptions should be retrieved
@NotNull java.util.List<ArtifactDefinition> findSubscriptionsPossibleForPlan(@NotNull Job job)
job
-
@NotNull java.util.List<ArtifactSubscription> findCurrentSubscriptionsForPlan(@NotNull Job producerJob)
producerJob@return
- list of artifact subscriptions@NotNull java.util.List<ArtifactSubscriptionContext> prepareSubscriptionContexts(@NotNull ImmutableJob job, @NotNull PlanResultKey planResultKey)
job
- planResultKey
-
void removeArtifactSubscription(@NotNull ArtifactSubscription artifactSubscription)
artifactSubscription
- ArtifactSubscription
to be removedvoid removeArtifactSubscriptions(@NotNull java.util.Collection<ArtifactSubscription> artifactSubscriptions)
artifactSubscriptions
- collection of ArtifactSubscription
to be removedvoid removeArtifactSubscriptionsOfPlan(@NotNull Plan plan)
void saveArtifactSubscription(@NotNull ArtifactSubscription artifactSubscription)
artifactSubscription
- object to be savedvoid saveArtifactSubscriptions(@NotNull java.util.Collection<ArtifactSubscription> artifactSubscriptions)
artifactSubscriptions
- collection of objects to be saved/updated@NotNull java.util.List<ArtifactSubscription> validateSubscriptions(@NotNull Job consumer, @NotNull Chain chain, @NotNull java.lang.String stageName)
consumer
- job being consumer of artifact definitionschain
- target chainstageName
- target stage
@NotNull java.util.List<ArtifactSubscription> validateSubscribersForMovedJob(@NotNull Job producer, @NotNull ChainStage producerStage)
producer
- job being producer of the artifactsproducerStage
- target stage
@NotNull java.util.List<ArtifactSubscription> validateSubscriptionsForMovedStage(@NotNull ChainStage stage, int stageIndex)
stage
- stage being movedstageIndex
- target stage index
boolean isSubscriptionsValid(@NotNull Job consumer, @NotNull Chain chain, @NotNull java.lang.String stageName)
consumer
- job being consumer of artifact definitionschain
- target chainstageName
- target stage
void saveConsumedSubscription(@NotNull ArtifactSubscriptionContext artifactSubscription, @NotNull PlanResultKey planResultKey)
artifactSubscription
- planResultKey
- @NotNull com.google.common.collect.Multimap<ResultsSummary,ConsumedSubscription> getConsumedSubscriptions(@NotNull ResultsSummary resultsSummary)
ConsumedSubscription
ordered by order of ResultsSummary
execution.
Artifacts whose producer does not exists are appended at the end, with null key.
resultsSummary
- a job result
java.util.List<ArtifactSubscriptionSubstitutionAware> transformSubscriptions(@NotNull java.util.List<ArtifactSubscription> subscriptions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |