use of com.alibaba.otter.shared.common.model.config.data.DataMediaPair in project otter by alibaba.
the class EditDataMediaPair method execute.
public void execute(@Param("dataMediaPairId") Long dataMediaPairId, @Param("pipelineId") Long pipelineId, Context context, Navigator nav) throws Exception {
Channel channel = channelService.findByPipelineId(pipelineId);
if (channel.getStatus().isStart()) {
nav.redirectTo(WebConstant.ERROR_FORBIDDEN_Link);
return;
}
DataMediaPair dataMediaPair = dataMediaPairService.findById(dataMediaPairId);
context.put("channelId", channel.getId());
context.put("dataMediaPair", dataMediaPair);
}
Aggregations