@Component public class PlanConversionFunction extends Object implements RestConversionFunction<ImmutableChain,RestPlanConfig>
Constructor and Description |
---|
PlanConversionFunction(LinkService linkService,
PaginationService paginationService,
StageConversionFunction stageConversionFunction,
StageService stageService) |
Modifier and Type | Method and Description |
---|---|
RestPlanConfig |
apply(ImmutableChain plan,
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 PlanConversionFunction(LinkService linkService, PaginationService paginationService, StageConversionFunction stageConversionFunction, StageService stageService)
@NotNull public RestPlanConfig apply(@NotNull ImmutableChain plan, @NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo)
RestConversionFunction
AbstractRestModel
. The resource will include links.apply
in interface RestConversionFunction<ImmutableChain,RestPlanConfig>
plan
- 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.