Package us.jyg.freshet.web.form

Examples of us.jyg.freshet.web.form.FreshetForm


  
  private final Log log = LogFactory.getLog(getClass());

    public ActionForward song(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
    log.debug("Entering song");
    FreshetForm ff = (FreshetForm)form;
    queueUpService.queueSong(ff);
        setBrowseProperties(ff, (User)request.getSession().getAttribute("user"));
        queueDisplayService.setQueueDisplay(ff);
        return mapping.findForward("success");
  }
View Full Code Here


        return mapping.findForward("success");
  }
 
  public ActionForward album(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
    log.debug("Entering album");
    FreshetForm ff = (FreshetForm)form;
    queueUpService.queueAlbum(ff);
    setBrowseProperties(ff, (User)request.getSession().getAttribute("user"));
        queueDisplayService.setQueueDisplay(ff);
        return mapping.findForward("success");
  }
View Full Code Here

  }
 
  public ActionForward empty(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
    log.debug("Entering empty");
    queueUpService.emptyQueue();
    FreshetForm ff = (FreshetForm)form;
    String fwd = setBrowseProperties(ff, (User)request.getSession().getAttribute("user"));
          queueDisplayService.setQueueDisplay(ff);

        return mapping.findForward(fwd);
  }
View Full Code Here

        return mapping.findForward(fwd);
  }

    public ActionForward insert(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
        log.debug("Entering insert");
    FreshetForm ff = (FreshetForm)form;
    queueUpService.insertSong(ff);
    setBrowseProperties(ff, (User)request.getSession().getAttribute("user"));
        queueDisplayService.setQueueDisplay(ff);
        return mapping.findForward("success");
    }
View Full Code Here

        return mapping.findForward("success");
    }

    public ActionForward move(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
        log.debug("Entering move");
        FreshetForm ff = (FreshetForm)form;
        queueUpService.moveSong(ff);
        setBrowseProperties(ff, (User)request.getSession().getAttribute("user"));
        queueDisplayService.setQueueDisplay(ff);
        return mapping.findForward("success");
    }
View Full Code Here

        return mapping.findForward("success");
    }

    public ActionForward skip(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
        log.debug("Entering skip");
        FreshetForm ff = (FreshetForm)form;
        queueUpService.skipSong(ff);
        setBrowseProperties(ff, (User)request.getSession().getAttribute("user"));
        queueDisplayService.setQueueDisplay(ff);
        return mapping.findForward("success");
    }
View Full Code Here

        return mapping.findForward("success");
    }

    public ActionForward play(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
        log.debug("Entering play");
    FreshetForm ff = (FreshetForm)form;
        ff.setInsertIdx("0");
        queueUpService.insertSong(ff);
        queueUpService.skipSong(ff);
        setBrowseProperties(ff, (User)request.getSession().getAttribute("user"));
        queueDisplayService.setQueueDisplay(ff);
        return mapping.findForward("success");
View Full Code Here

        return mapping.findForward("success");
    }

    public ActionForward dq(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
        log.debug("Entering skip");
        FreshetForm ff = (FreshetForm)form;
        queueUpService.dq(ff);
        setBrowseProperties(ff, (User)request.getSession().getAttribute("user"));
        queueDisplayService.setQueueDisplay(ff);
        return mapping.findForward("success");
    }
View Full Code Here

        return mapping.findForward("success");
    }

    public ActionForward randomLock(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
  log.debug("Entering randomLock");
  FreshetForm ff = (FreshetForm)form;
  if ("".equals((ff.getLockType())))
          queueUpService.unsetRandomLock();
  else
           queueUpService.setRandomLock(ff.getLockType(), ff.getLockId());
        setBrowseProperties(ff, (User)request.getSession().getAttribute("user"));
        queueDisplayService.setQueueDisplay(ff);
        return mapping.findForward("success");
    }
View Full Code Here

  private final Log log = LogFactory.getLog(getClass());

  public ActionForward unspecified(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
    log.debug("Entering action");
   
    FreshetForm ff = (FreshetForm)form;
    queueUpService.queueSong(ff);
   
    return mapping.findForward("browseSong");
  }
View Full Code Here

TOP

Related Classes of us.jyg.freshet.web.form.FreshetForm

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.