Class QuarantineConfigConversionFunction
java.lang.Object
com.atlassian.bamboo.plugins.rest.admin.quarantine.QuarantineConfigConversionFunction
- All Implemented Interfaces:
RestConversionFunction<QuarantineConfiguration,
RestQuarantineConfig>
@Component
public class QuarantineConfigConversionFunction
extends Object
implements RestConversionFunction<QuarantineConfiguration,RestQuarantineConfig>
Function to convert
QuarantineConfiguration
to RestQuarantineConfig
- Since:
- 5.10
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull RestQuarantineConfig
apply
(@NotNull QuarantineConfiguration input, @Nullable Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo) Transforms a domain object to aAbstractRestModel
.void
updateQuarantineConfig
(@NotNull QuarantineConfiguration quarantineConfiguration, @NotNull RestQuarantineConfig restQuarantineConfig) Merge existingQuarantineConfiguration
andRestQuarantineConfig
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 Details
-
QuarantineConfigConversionFunction
-
-
Method Details
-
apply
@NotNull public @NotNull RestQuarantineConfig apply(@NotNull @NotNull QuarantineConfiguration input, @Nullable @Nullable 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<QuarantineConfiguration,
RestQuarantineConfig> - Parameters:
input
- The domain object to transformexpansion
- The expansion to use when transforming the objecturiInfo
- URI info from the request- Returns:
- a RestResource
-
updateQuarantineConfig
public void updateQuarantineConfig(@NotNull @NotNull QuarantineConfiguration quarantineConfiguration, @NotNull @NotNull RestQuarantineConfig restQuarantineConfig) Merge existingQuarantineConfiguration
andRestQuarantineConfig
- Parameters:
quarantineConfiguration
- Existing quarantine configurationrestQuarantineConfig
-RestQuarantineConfig
-