Album service

getAlbums

AlbumService.getAlbums(String filter,
                       String artist,
                       String genre,
                       int letterIndex,
                       int minYear,
                       int maxYear,
                       boolean sortByYear,
                       int startItem,
                       int maxItems)

Get a list of albums matching the query. The filter is the same as in the web interface in the album browser, i.e. they work with LIKE "%filter%" on the database. The artist and genre filters match as is, i.e. not with LIKE. They are used to query all albums for a certain artist or genre. Unused filters can be set to NULL. The letter index is the index in the alphabetical register (i.e. "0-9", "A-C", "D-F", etc.) where index 0 is "0-9", index 1 is "A-C", etc. and -1 means all. With the minYear and maxYear parameters you can activate additional filtering. A minYear or maxYear of 0 or less will disable it. Use TRUE for sortByYear to sort albums by year instead of name. The startItem is the first item from the list to return, i.e. if the result has 100 items and you set startItem to 50, you will get items 51 - 99 (items start with index 0) in the result. The maxItems parameters specifies the maximum number of items to return where 0 or a negative value means all items. Use the last two values for implementing pagers. The return value is a list of albums.

getTracks

AlbumService.getTracks(String[] albums)

Get all tracks of the specified albums.