public interface RestArtifactService
Modifier and Type | Method and Description |
---|---|
@NotNull List<RestArtifactSubscriptions> |
getAffectedArtifactSubscriptionsByJobMove(@NotNull PlanKey jobKey,
long stageId,
@NotNull Expansion expansion,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Returns all artifact subscriptions that will be broken if we move a given job.
|
@NotNull List<RestArtifactSubscriptions> |
getAffectedArtifactSubscriptionsByStageMove(@NotNull ImmutableChainStage stage,
int stageIndex,
@NotNull Expansion expansion,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Returns all artifact subscriptions that will be broken if we move a given stage.
|
@NotNull List<RestArtifactSubscriptions> |
getConsumersOfArtifacts(@NotNull PlanKey jobKey,
@NotNull Expansion expansion,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Returns the full list of artifact subscriptions in the same stage for a job's artifacts, returning one entry for each job.
|
@NotNull RestPageModel<RestJob> |
getJobsConsumingArtifact(@NotNull PlanKey jobKey,
long artifactId,
@NotNull PageRequest pageRequest,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Returns a paginated lists of jobs subscribing to a specified artifact.
|
@NotNull @NotNull List<RestArtifactSubscriptions> getConsumersOfArtifacts(@NotNull @NotNull PlanKey jobKey, @NotNull @NotNull Expansion expansion, @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
jobKey
- key of the job that produces the artifact for which subscriptions are to retrieve.expansion
- indicates what fields should be expanded.uriInfo
- URI info from the requestRestArtifactSubscriptions
if any, otherwise an empty list.NotFoundException
- if the job doesn't existWebValidationException
- if the jobKey is invalid.@NotNull @NotNull List<RestArtifactSubscriptions> getAffectedArtifactSubscriptionsByJobMove(@NotNull @NotNull PlanKey jobKey, long stageId, @NotNull @NotNull Expansion expansion, @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
jobKey
- key of the job being movedstageId
- target stage idexpansion
- indicates what fields should be expanded.uriInfo
- URI info from the requestRestArtifactSubscriptions
that
will not work after the move.NotFoundException
- if the job doesn't existWebValidationException
- if the jobKey is invalid.@NotNull @NotNull RestPageModel<RestJob> getJobsConsumingArtifact(@NotNull @NotNull PlanKey jobKey, long artifactId, @NotNull @NotNull PageRequest pageRequest, @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo) throws WebValidationException
jobKey
- key of the producing jobartifactId
- id of the artifactpageRequest
- pagination information (offset & limit)uriInfo
- URI info from the requestRestJob
that are subscribed to an artifact.WebValidationException
- if the jobKey is invalid.@NotNull @NotNull List<RestArtifactSubscriptions> getAffectedArtifactSubscriptionsByStageMove(@NotNull @NotNull ImmutableChainStage stage, int stageIndex, @NotNull @NotNull Expansion expansion, @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo)
stage
- stage being movedstageIndex
- target stage indexexpansion
- indicates what fields should be expanded.uriInfo
- URI info from the requestRestArtifactSubscriptions
that will not work after the moveCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.