Package com.tubeonfire.model.admin

Examples of com.tubeonfire.model.admin.MissionModel


          type = Integer.parseInt(strType);
        } catch (Exception e) {

        }
      }
      MissionModel model = new MissionModel();
      model.setPage(page);
      model.search(status, type);
      req.setAttribute("status", status);
      req.setAttribute("type", type);
      req.setAttribute("url", req.getRequestURL().toString());
      req.setAttribute("result", model);
      req.getRequestDispatcher("/admin/list_mission.jsp").forward(req,
View Full Code Here


              mission.setStatus(2);
            }
            MissionModel.insert(mission);
          }
        } else if (action.equals("follow")) {
          MissionModel model = new MissionModel();
          model.getListNotCompleteByType(1);
          List<Mission> listMission = model.getListResult();
          if (listMission != null && listMission.size() > 0) {
            YoutubeActiveService activeService = new YoutubeActiveService();
            for (Mission mission : listMission) {
              List<String> tubeIds = mission.getTubeIds();
              if (tubeIds.size() == 0) {
                activeService.getActiveByChannel(mission
                    .getSearchKeyword());
                List<UserEventEntry> listResult = activeService
                    .getListResult();
                if (listResult != null && listResult.size() > 0) {
                  tubeIds = new ArrayList<String>();
                  for (UserEventEntry entry : listResult) {
                    tubeIds.add(entry.getVideoId());
                  }
                }
                mission.setTubeIds(tubeIds);
                mission.setUpdated(Calendar.getInstance()
                    .getTime());
                MissionModel.insert(mission);
              }
            }
          }
        } else if (action.equals("getFollow")) {
          MissionModel model = new MissionModel();
          model.getListNotCompleteByType(1);
          List<Mission> listMission = model.getListResult();
          if (listMission != null && listMission.size() > 0) {
            for (Mission mission : listMission) {
              if (mission != null && mission.getId().length() > 0) {
                List<String> tubeIds = new ArrayList<String>();
                for (String string : mission.getTubeIds()) {
View Full Code Here

TOP

Related Classes of com.tubeonfire.model.admin.MissionModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.