Examples of Playlist


Examples of com.tubeonfire.entity.Playlist

      try {
        page = Integer.parseInt((String) req.getParameter("page"));
      } catch (Exception e) {
        page = 1;
      }
      Playlist obj = PlaylistModel.byId(id, true);
      if (obj != null) {
        TubeSearchModel model = new TubeSearchModel();
        model.setPage(page);
        model.prepareTubeByPlaylist(obj.getId());
        req.setAttribute("model", model);
        req.setAttribute("obj", obj);
        req.setAttribute("url", req.getRequestURL().toString());
        req.getRequestDispatcher("/playlist.jsp").forward(req, resp);
      } else {
View Full Code Here

Examples of com.tubeonfire.entity.Playlist

  public void doGet(HttpServletRequest req, HttpServletResponse resp)
      throws IOException, ServletException {
    try {
      HttpSession session = req.getSession();
      if (session.getAttribute("return") == null) {
        Playlist pl = new Playlist();
        session.setAttribute("pl", pl);
      }     
      session.setAttribute("action", "add");
      req.getRequestDispatcher("/admin/form_playlist.jsp").forward(req,
          resp);
View Full Code Here

Examples of com.tubeonfire.entity.Playlist

  @Override
  protected void doPost(HttpServletRequest req, HttpServletResponse resp)
      throws ServletException, IOException {
    try {
      HttpSession session = req.getSession();
      Playlist pl = new Playlist();
      if (PlaylistValidate.checkForm(req, resp, session, "add", pl)) {
        pl.setId(IdUniqueHelper.getId());
        PlaylistModel.insert(pl);
        session.removeAttribute("pl");
        session.setAttribute("action", "add");
        session.setAttribute("success", "Action success !");
        resp.sendRedirect("/admin/playlist/add");
View Full Code Here

Examples of com.tubeonfire.entity.Playlist

  public void doGet(HttpServletRequest request, HttpServletResponse response)
      throws IOException {
    String action = request.getParameter("action");
    if (action != null && action.equals("delete")) {
      String id = request.getParameter("id");
      Playlist pl = PlaylistModel.byId(id, false);
      if (pl != null) {
        PlaylistModel.delete(pl);       
      }
    } else if (action != null && action.equals("bump")) {
      String id = request.getParameter("id");
      Playlist pl = PlaylistModel.byId(id, false);
      if (pl != null) {
        pl.setIndexDate(Calendar.getInstance().getTime());
        PlaylistModel.insert(pl);
      }
    }
  }
View Full Code Here

Examples of com.tubeonfire.entity.Playlist

        String playlistId = (String) req.getParameter("playlist");
        url = (String) req.getParameter("url");
        url = URLDecoder.decode(url, "UTF-8");

        Tube tube = YoutubeService.searchStaticById(id);
        Playlist pl = PlaylistModel.byId(playlistId, false);
        TreeMap recentAddTreeId = (TreeMap) session
            .getAttribute("recentAddTreeId");
        String currentPl = (String) session
            .getAttribute("currentPlaylist");
        if (currentPl != null && !currentPl.equals(pl.getId())) {
          recentAddTreeId = new TreeMap();
        } else if (recentAddTreeId == null) {
          recentAddTreeId = new TreeMap();
        }
        if (pl != null
            && TubeValidate.checkForm(req, resp, session, action,
                tube)) {
          tube = processTubeDetail(playlistId, tube);
          // add author to site.
          Queue queue = QueueFactory.getDefaultQueue();
          queue.add(TaskOptions.Builder.withUrl(
              "/task-admin?action=add-author&uri="
                  + tube.getAuthorUrl()).method(
              TaskOptions.Method.GET));
          TubeModel.insert(tube);
          recentAddTreeId.put(tube.getId(), tube.getId());
          session.setAttribute("recentAddTreeId", recentAddTreeId);
          session.setAttribute("currentPlaylist", pl.getId());
          session.setAttribute("success",
              "Action success ! Video have been added to playlist \""
                  + pl.getTitle() + "\"");
        } else {
          log.warning("A2");
          session.setAttribute("error",
              "Action fails ! Please try again later !");
View Full Code Here

Examples of com.tubeonfire.entity.Playlist

  private String getAllFromChannel(HttpSession session,
      HttpServletRequest request) {
    String channelId = (String) request.getParameter("channel");
    String playlistId = (String) request.getParameter("playlistId");
    String subcribe = (String) request.getParameter("subcribe");
    Playlist pl = PlaylistModel.byId(playlistId, false);
    if (channelId != null && channelId.length() > 0 && pl != null) {
      Queue queue = QueueFactory.getDefaultQueue();
      queue.add(TaskOptions.Builder.withUrl(
          "/task-admin?action=add-all-from-channel&channelId="
              + channelId + "&playlistId=" + playlistId
View Full Code Here

Examples of com.tulskiy.musique.playlist.Playlist

        add(tabs, BorderLayout.CENTER);

        List<String> bounds = PlaylistConfiguration.getTabBounds();

        for (int i = 0; i < playlists.size(); i++) {
            Playlist pl = playlists.get(i);
            PlaylistTable newTable = new PlaylistTable(pl, pl.getColumns());
            newTable.setUpDndCCP();
            columnModels.add(newTable.getColumnModel());

            //try to set last position
            try {
                String s = bounds.get(i);
                Integer y = Integer.valueOf(s);
                newTable.scrollRectToVisible(new Rectangle(0, y, 0, 0));
            } catch (Exception ignored) {
            }

            tabs.addTab(pl.getName(), newTable.getScrollPane());
        }

        final Playlist playlist = playlistManager.getActivePlaylist();

        tabs.setSelectedIndex(-1);
        tabs.setSelectedIndex(playlists.indexOf(playlist));

        PlaybackOrder order = app.getPlayer().getPlaybackOrder();
View Full Code Here

Examples of de.micromata.opengis.kml.v_2_2_0.gx.Playlist

    /**
     * Create an instance of {@link Playlist}
     *
     */
    public static Playlist createGxPlaylist() {
        return new Playlist();
    }
View Full Code Here

Examples of huu.phong.musiconline.model.Playlist

    itemAddPlaylist.addActionListener(new ActionListener() {
     
      public void actionPerformed(ActionEvent arg0) {
        String title = JOptionPane.showInputDialog(MusicOnline.this, "Enter name for playlist");
        if (title == null || title.equals("")) return;
        Playlist playlist = new Playlist(title);
        if (!configure.userPlaylists.contains(playlist)){
          if (configure.userPlaylists.size() == 0) menuUserPlaylists.addSeparator();
          configure.userPlaylists.add(playlist);
          JMenuItem item = new JMenuItem(title);
          item.addActionListener(new ActionListener() {
View Full Code Here

Examples of ncrossley.itunes.Playlist

  private void handleImportPlaylistOption()
  {
    int index = list.getSelectedIndex();
    if(index != -1)
    {
      Playlist playlist = (Playlist)this.model.get(index);
      parent.getSongListPanel().clearSongs();
      for(Track track : playlist.getTracks())
      {
        try
        {
          File f = track.getFile();
          if(f.exists())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.