Class RemoteAgentConfigurationConversionFunction
java.lang.Object
com.atlassian.bamboo.plugins.rest.admin.agent.RemoteAgentConfigurationConversionFunction
- All Implemented Interfaces:
RestConversionFunction<Boolean,RestRemoteAgentConfiguration>
@Component
public class RemoteAgentConfigurationConversionFunction
extends Object
implements RestConversionFunction<Boolean,RestRemoteAgentConfiguration>
Function to create a
RestRemoteAgentConfiguration from a Boolean that indicates whether remote agents support
is enabled- Since:
- 5.10
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteAgentConfigurationConversionFunction(@NotNull LinkService linkService) -
Method Summary
Modifier and TypeMethodDescription@NotNull RestRemoteAgentConfigurationapply(@NotNull Boolean remoteAgentsEnabled, @NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo) Transforms a domain object to aAbstractRestModel.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.plugins.rest.common.RestConversionFunction
toFunction
-
Constructor Details
-
RemoteAgentConfigurationConversionFunction
@Autowired public RemoteAgentConfigurationConversionFunction(@NotNull @NotNull LinkService linkService)
-
-
Method Details
-
apply
@NotNull public @NotNull RestRemoteAgentConfiguration apply(@NotNull @NotNull Boolean remoteAgentsEnabled, @NotNull @NotNull Expansion expansion, @NotNull @NotNull javax.ws.rs.core.UriInfo uriInfo) Description copied from interface:RestConversionFunctionTransforms a domain object to aAbstractRestModel. The resource will include links.- Specified by:
applyin interfaceRestConversionFunction<Boolean,RestRemoteAgentConfiguration> - Parameters:
remoteAgentsEnabled- The domain object to transformexpansion- The expansion to use when transforming the objecturiInfo- URI info from the request- Returns:
- a RestResource
-