@Component public class QuarantineConfigConversionFunction extends Object implements RestConversionFunction<QuarantineConfiguration,RestQuarantineConfig>
QuarantineConfiguration
to RestQuarantineConfig
Constructor and Description |
---|
QuarantineConfigConversionFunction(LinkService linkService) |
Modifier and Type | Method and Description |
---|---|
@NotNull RestQuarantineConfig |
apply(@NotNull QuarantineConfiguration input,
@Nullable Expansion expansion,
@NotNull javax.ws.rs.core.UriInfo uriInfo)
Transforms a domain object to a
AbstractRestModel . |
void |
updateQuarantineConfig(@NotNull QuarantineConfiguration quarantineConfiguration,
@NotNull RestQuarantineConfig restQuarantineConfig)
Merge existing
QuarantineConfiguration and RestQuarantineConfig |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toFunction
@Autowired public QuarantineConfigConversionFunction(LinkService linkService)
@NotNull public @NotNull RestQuarantineConfig apply(@NotNull @NotNull QuarantineConfiguration input, @Nullable @Nullable Expansion expansion, @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo)
RestConversionFunction
AbstractRestModel
. The resource will include links.apply
in interface RestConversionFunction<QuarantineConfiguration,RestQuarantineConfig>
input
- The domain object to transformexpansion
- The expansion to use when transforming the objecturiInfo
- URI info from the requestpublic void updateQuarantineConfig(@NotNull @NotNull QuarantineConfiguration quarantineConfiguration, @NotNull @NotNull RestQuarantineConfig restQuarantineConfig)
QuarantineConfiguration
and RestQuarantineConfig
quarantineConfiguration
- Existing quarantine configurationrestQuarantineConfig
- RestQuarantineConfig
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.