Package us.jyg.freshet.dao.model

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


 
  public void setQueueDisplay(FreshetForm ff) {
        log.debug("entering setQueueDisplay");
        ff.setQueue(songQ.getQSongs());
        ff.setCurrentSong(songQ.getCurrentlyPlayingSong());
        SongAttribute lock = randomizer.getLock();
        ff.setLockName((lock==null)?"All":lock.getName());
    }
View Full Code Here


        songManager.modifySongWeight(songQ.getCurrentlyPlayingSong(), -1);
        songQ.skip();
    }

    public void setRandomLock(String lockType, String lockId) {
        SongAttribute lock = null;
        if (lockType != null && lockId != null &&  !"".equals(lockType) && !"".equals(lockId))
            lock = songManager.getAttribute(lockType, Integer.parseInt(lockId));
        randomizer.setLock(lock);
        for (Iterator i=songManager.getSongs(lock).iterator(); i.hasNext();)
            songManager.modifySongWeight(((Song)i.next()), 1);
View Full Code Here

    }
    return randomSong;
  }

    public SongAttribute getAttribute(String attributeType, Integer attributeId) {
        SongAttribute attr = null;

        if (Constants.LOCK_GENRE.equals(attributeType)) {
            attr = genreDao.getGenre(attributeId);
        } else if (Constants.LOCK_ARTIST.equals(attributeType)) {
            attr = artistDao.getArtist(attributeId);
View Full Code Here

TOP

Related Classes of us.jyg.freshet.dao.model.SongAttribute

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.