public interface RestArtifactService
Modifier and Type | Method and Description |
---|---|
List<RestArtifactSubscriptions> |
getAffectedArtifactSubscriptionsByJobMove(PlanKey jobKey,
long stageId,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Returns all artifact subscriptions that will be broken if we move a given job.
|
List<RestArtifactSubscriptions> |
getAffectedArtifactSubscriptionsByStageMove(ImmutableChainStage stage,
int stageIndex,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Returns all artifact subscriptions that will be broken if we move a given stage.
|
List<RestArtifactSubscriptions> |
getConsumersOfArtifacts(PlanKey jobKey,
Expansion expansion,
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.
|
RestPageModel<RestJob> |
getJobsConsumingArtifact(PlanKey jobKey,
long artifactId,
PageRequest pageRequest,
javax.ws.rs.core.UriInfo uriInfo)
Returns a paginated lists of jobs subscribing to a specified artifact.
|
@NotNull List<RestArtifactSubscriptions> getConsumersOfArtifacts(@NotNull PlanKey jobKey, @NotNull Expansion expansion, @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 List<RestArtifactSubscriptions> getAffectedArtifactSubscriptionsByJobMove(@NotNull PlanKey jobKey, long stageId, @NotNull Expansion expansion, @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 RestPageModel<RestJob> getJobsConsumingArtifact(@NotNull PlanKey jobKey, long artifactId, @NotNull PageRequest pageRequest, @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 List<RestArtifactSubscriptions> getAffectedArtifactSubscriptionsByStageMove(@NotNull ImmutableChainStage stage, int stageIndex, @NotNull Expansion expansion, @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 © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.