@Component public class JobConversionFunction extends Object implements RestConversionFunction<ImmutableJob,RestJob>
Constructor and Description |
---|
JobConversionFunction(BambooPermissionManager bambooPermissionManager,
ExecutableAgentsHelper executableAgentsHelper,
FeatureManager featureManager,
LinkService linkService,
PaginationService paginationService,
StageConversionFunction stageConversionFunction,
TaskConversionFunction taskConversionFunction,
TaskService taskService) |
Modifier and Type | Method and Description |
---|---|
RestJob |
apply(ImmutableJob job,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Transforms a domain object to a
AbstractRestModel . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toFunction
@Autowired public JobConversionFunction(BambooPermissionManager bambooPermissionManager, ExecutableAgentsHelper executableAgentsHelper, FeatureManager featureManager, LinkService linkService, PaginationService paginationService, StageConversionFunction stageConversionFunction, TaskConversionFunction taskConversionFunction, TaskService taskService)
@NotNull public RestJob apply(@NotNull ImmutableJob job, @NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo)
RestConversionFunction
AbstractRestModel
. The resource will include links.apply
in interface RestConversionFunction<ImmutableJob,RestJob>
job
- The domain object to transformexpansion
- The expansion to use when transforming the objecturiInfo
- URI info from the requestCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.