Search in sources :

Example 1 with SeniorDataMediaPair

use of com.alibaba.otter.manager.web.common.model.SeniorDataMediaPair in project otter by alibaba.

the class DataMediaInfo method execute.

public void execute(@Param("dataMediaId") Long dataMediaId, Context context) throws Exception {
    DataMedia dataMedia = dataMediaService.findById(dataMediaId);
    List<DataMediaPair> dataMediaPairs = dataMediaPairService.listByDataMediaId(dataMediaId);
    List<SeniorDataMediaPair> seniorDataMediapairs = new ArrayList<SeniorDataMediaPair>();
    for (DataMediaPair dataMediaPair : dataMediaPairs) {
        SeniorDataMediaPair seniorDataMediaPair = new SeniorDataMediaPair();
        seniorDataMediaPair.setChannel(channelService.findByPipelineId(dataMediaPair.getPipelineId()));
        seniorDataMediaPair.setDataMediaPair(dataMediaPair);
        seniorDataMediapairs.add(seniorDataMediaPair);
    }
    context.put("dataMedia", dataMedia);
    context.put("seniorDataMediapairs", seniorDataMediapairs);
}
Also used : SeniorDataMediaPair(com.alibaba.otter.manager.web.common.model.SeniorDataMediaPair) DataMediaPair(com.alibaba.otter.shared.common.model.config.data.DataMediaPair) ArrayList(java.util.ArrayList) DataMedia(com.alibaba.otter.shared.common.model.config.data.DataMedia) SeniorDataMediaPair(com.alibaba.otter.manager.web.common.model.SeniorDataMediaPair)

Aggregations

SeniorDataMediaPair (com.alibaba.otter.manager.web.common.model.SeniorDataMediaPair)1 DataMedia (com.alibaba.otter.shared.common.model.config.data.DataMedia)1 DataMediaPair (com.alibaba.otter.shared.common.model.config.data.DataMediaPair)1 ArrayList (java.util.ArrayList)1