Java Code Examples for org.fourthline.cling.support.model.container.MusicArtist#setId()

The following examples show how to use org.fourthline.cling.support.model.container.MusicArtist#setId() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ArtistUpnpProcessor.java    From airsonic-advanced with GNU General Public License v3.0 5 votes vote down vote up
public Container createContainer(Artist artist) {
    MusicArtist container = new MusicArtist();
    container.setId(getRootId() + DispatchingContentDirectory.SEPARATOR + artist.getId());
    container.setParentID(getRootId());
    container.setTitle(artist.getName());
    container.setChildCount(artist.getAlbumCount());

    return container;
}
 
Example 2
Source File: ArtistUpnpProcessor.java    From airsonic with GNU General Public License v3.0 5 votes vote down vote up
public Container createContainer(Artist artist) {
    MusicArtist container = new MusicArtist();
    container.setId(getRootId() + DispatchingContentDirectory.SEPARATOR + artist.getId());
    container.setParentID(getRootId());
    container.setTitle(artist.getName());
    container.setChildCount(artist.getAlbumCount());

    return container;
}