@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 |
---|---|
RestQuarantineConfig |
apply(QuarantineConfiguration input,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Transforms a domain object to a
AbstractRestModel . |
void |
updateQuarantineConfig(QuarantineConfiguration quarantineConfiguration,
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 RestQuarantineConfig apply(@NotNull QuarantineConfiguration input, @Nullable Expansion expansion, @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 QuarantineConfiguration quarantineConfiguration, @NotNull RestQuarantineConfig restQuarantineConfig)
QuarantineConfiguration
and RestQuarantineConfig
quarantineConfiguration
- Existing quarantine configurationrestQuarantineConfig
- RestQuarantineConfig
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.