Examples of Guest


Examples of us.jyg.freshet.dao.model.Guest

        if (ff.getSearchTerm() != null || !"".equals(ff.getSearchTerm())) {
            songs = songManager.findSongs(ff.getSearchTerm());
        }
    ff.setBrowseItems(songs);
    ff.setBrowseType(Constants.BROWSE_SEARCH);
        ff.setUser((user==null)?new Guest():user);
        ff.setNextBrowseType(Constants.BROWSE_SONG);
  }
View Full Code Here

Examples of us.jyg.freshet.dao.model.Guest

    public void setBrowseHistoryDisplay(FreshetForm ff, User user) {
    log.debug("entering setBrowseSearchDisplay");
    ff.setBrowseItems(songQ.getHistory());
    ff.setBrowseType(Constants.BROWSE_HISTORY);
        ff.setUser((user==null)?new Guest():user);
        ff.setNextBrowseType(Constants.BROWSE_SONG);
  }
View Full Code Here

Examples of us.jyg.freshet.dao.model.Guest

        } catch (Exception e) {
            log.error("cannot get local host name, weird.");
        }

        if (host != null) {
            Guest guest = new Guest();
            guest.setUsername(Constants.USERNAME_GUEST);
            guest.setHost(host);
            guests.add(guest);
            log.info( guest.getHost() + "added to guest list");
            status = true;
            log.info("Guest logged in from: " + hostname+"/"+host);
            guests.add(guest);
        } else {
            throw new LoginException("Cannot have a null host for a guest");
View Full Code Here

Examples of us.jyg.freshet.dao.model.Guest

    public void insertSong(FreshetForm ff) {
        int qId = Integer.parseInt(ff.getQueueId());
        Song s = songManager.getSong(qId);
        if (ff.getUser()==null)
            ff.setUser(new Guest());

        songManager.modifySongWeight(s, 1);
        songQ.insertSong(s, Integer.parseInt(ff.getInsertIdx()), ff.getUser().getUsername());
    }
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.