Ejemplo n.º 1
0
 public List<CampaignType> getCampaignById(List<Long> camIds) {
   try {
     CampaignService campaignService = commonService.getService(CampaignService.class);
     GetCampaignByCampaignIdRequest request = new GetCampaignByCampaignIdRequest();
     request.setCampaignIds(camIds);
     GetCampaignByCampaignIdResponse response = campaignService.getCampaignByCampaignId(request);
     if (response == null) {
       return Collections.emptyList();
     }
     return response.getCampaignTypes();
   } catch (final Exception e) {
     e.printStackTrace();
   }
   return Collections.emptyList();
 }