@Component public class RemoteAgentConfigurationConversionFunction extends Object implements RestConversionFunction<Boolean,RestRemoteAgentConfiguration>
RestRemoteAgentConfiguration
from a Boolean that indicates whether remote agents support
is enabledConstructor and Description |
---|
RemoteAgentConfigurationConversionFunction(LinkService linkService) |
Modifier and Type | Method and Description |
---|---|
RestRemoteAgentConfiguration |
apply(Boolean remoteAgentsEnabled,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Transforms a domain object to a
AbstractRestModel . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toFunction
@Autowired public RemoteAgentConfigurationConversionFunction(@NotNull LinkService linkService)
public RestRemoteAgentConfiguration apply(@NotNull Boolean remoteAgentsEnabled, @NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo)
RestConversionFunction
AbstractRestModel
. The resource will include links.apply
in interface RestConversionFunction<Boolean,RestRemoteAgentConfiguration>
remoteAgentsEnabled
- The domain object to transformexpansion
- The expansion to use when transforming the objecturiInfo
- URI info from the requestCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.