@Component public class StageConversionFunction extends Object implements RestConversionFunction<ImmutableChainStage,RestStage>
Constructor and Description |
---|
StageConversionFunction(JobService jobService,
LinkService linkService,
PaginationService paginationService) |
Modifier and Type | Method and Description |
---|---|
RestStage |
apply(ImmutableChainStage stage,
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 StageConversionFunction(JobService jobService, LinkService linkService, PaginationService paginationService)
@NotNull public RestStage apply(@NotNull ImmutableChainStage stage, @NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo)
RestConversionFunction
AbstractRestModel
. The resource will include links.apply
in interface RestConversionFunction<ImmutableChainStage,RestStage>
stage
- The domain object to transformexpansion
- The expansion to use when transforming the objecturiInfo
- URI info from the requestCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.