Class RestArtifactHandlerConversionFunction
- java.lang.Object
-
- com.atlassian.bamboo.plugins.rest.admin.artifacthandler.RestArtifactHandlerConversionFunction
-
- All Implemented Interfaces:
RestConversionFunction<Map<String,String>,RestArtifactHandler>
@Component public class RestArtifactHandlerConversionFunction extends Object implements RestConversionFunction<Map<String,String>,RestArtifactHandler>
- Since:
- 5.10
-
-
Constructor Summary
Constructors Constructor Description RestArtifactHandlerConversionFunction(LinkService linkService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull RestArtifactHandler
apply(@NotNull Map<String,String> input, @NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo)
Transforms a domain object to aAbstractRestModel
.@NotNull Map<String,String>
convertToMap(@NotNull RestArtifactHandler restArtifactHandler)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.plugins.rest.common.RestConversionFunction
toFunction
-
-
-
-
Constructor Detail
-
RestArtifactHandlerConversionFunction
@Autowired public RestArtifactHandlerConversionFunction(LinkService linkService)
-
-
Method Detail
-
apply
@NotNull public @NotNull RestArtifactHandler apply(@NotNull @NotNull Map<String,String> input, @NotNull @NotNull Expansion expansion, @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo)
Description copied from interface:RestConversionFunction
Transforms a domain object to aAbstractRestModel
. The resource will include links.- Specified by:
apply
in interfaceRestConversionFunction<Map<String,String>,RestArtifactHandler>
- Parameters:
input
- The domain object to transformexpansion
- The expansion to use when transforming the objecturiInfo
- URI info from the request- Returns:
- a RestResource
-
convertToMap
@NotNull public @NotNull Map<String,String> convertToMap(@NotNull @NotNull RestArtifactHandler restArtifactHandler)
-
-