@Controller public class DistributionController extends Object
Controller that provides app distribution services.
The actual distribution logic is provided by the injected @Link{com.edorasware.cloud.core.transfer.DistributionManager} implementation.
| Constructor and Description |
|---|
DistributionController(DistributionManager distributionManager) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<com.google.common.collect.ImmutableCollection<DistributionChannelInfo>> |
getAvailableDistributionChannels()
Returns the available app distribution channel information.
|
org.springframework.http.ResponseEntity<Void> |
sendApp(String appAmbiguousId,
AppSendRequest sendRequest)
Sends an app to the selected distribution channels.
|
@Autowired
public DistributionController(@Qualifier(value="distributionManager")
DistributionManager distributionManager)
@RequestMapping(value="/distribution/channels",
method=GET)
@ResponseBody
public org.springframework.http.ResponseEntity<com.google.common.collect.ImmutableCollection<DistributionChannelInfo>> getAvailableDistributionChannels()
Returns the available app distribution channel information.
@RequestMapping(value="/distribution/send/{appAmbiguousId}",
method=PUT)
public org.springframework.http.ResponseEntity<Void> sendApp(@PathVariable
String appAmbiguousId,
@RequestBody
AppSendRequest sendRequest)
Sends an app to the selected distribution channels.
appAmbiguousId - the app global id.sendRequest - the app send request.Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.