@Component public class RestArtifactHandlerConversionFunction extends Object implements RestConversionFunction<Map<String,String>,RestArtifactHandler>
Constructor and Description |
---|
RestArtifactHandlerConversionFunction(LinkService linkService) |
Modifier and Type | Method and Description |
---|---|
RestArtifactHandler |
apply(Map<String,String> input,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Transforms a domain object to a
AbstractRestModel . |
Map<String,String> |
convertToMap(RestArtifactHandler restArtifactHandler) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toFunction
@Autowired public RestArtifactHandlerConversionFunction(LinkService linkService)
@NotNull public RestArtifactHandler apply(@NotNull Map<String,String> input, @NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo)
RestConversionFunction
AbstractRestModel
. The resource will include links.apply
in interface RestConversionFunction<Map<String,String>,RestArtifactHandler>
input
- The domain object to transformexpansion
- The expansion to use when transforming the objecturiInfo
- URI info from the request@NotNull public Map<String,String> convertToMap(@NotNull RestArtifactHandler restArtifactHandler)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.