doc.walkthru
Class AlbumServiceImpl

java.lang.Object
  extended by doc.walkthru.AlbumServiceImpl
All Implemented Interfaces:
AlbumService, org.benow.java.spec.Markup, org.benow.service.Service

public class AlbumServiceImpl
extends java.lang.Object
implements AlbumService


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.benow.java.spec.Markup
org.benow.java.spec.Markup.ParamName, org.benow.java.spec.Markup.ReturnDescription
 
Constructor Summary
AlbumServiceImpl()
           
 
Method Summary
 AlbumTrack addTrack(Album album, Track track)
          Adds the given track to the given album.
 Album createAlbum(Album album)
           
 Album createAlbum(java.lang.String title, Performer performer)
          Create a new album with a given title and performer.
 boolean deleteAlbum(Album album)
          Deletes a given album
 Album getAlbumByKey(java.lang.Object key)
          Gets a specific album by key
 java.util.List<Album> getAlbums()
           
 AlbumTrack insertTrack(java.lang.Object key, Track track, int pos)
          Inserts the given track to the given album at the given position
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlbumServiceImpl

public AlbumServiceImpl()
Method Detail

addTrack

public AlbumTrack addTrack(Album album,
                           Track track)
Description copied from interface: AlbumService
Adds the given track to the given album.

Specified by:
addTrack in interface AlbumService
Returns:
added track on album

createAlbum

public Album createAlbum(java.lang.String title,
                         Performer performer)
Description copied from interface: AlbumService
Create a new album with a given title and performer.

Specified by:
createAlbum in interface AlbumService
Returns:
the created album.

deleteAlbum

public boolean deleteAlbum(Album album)
Description copied from interface: AlbumService
Deletes a given album

Specified by:
deleteAlbum in interface AlbumService
Returns:
true if successfully deleted

getAlbums

public java.util.List<Album> getAlbums()
Specified by:
getAlbums in interface AlbumService
Returns:
known albums

insertTrack

public AlbumTrack insertTrack(java.lang.Object key,
                              Track track,
                              int pos)
Description copied from interface: AlbumService
Inserts the given track to the given album at the given position

Specified by:
insertTrack in interface AlbumService
Returns:
inserted track on album

getAlbumByKey

public Album getAlbumByKey(java.lang.Object key)
                    throws org.benow.repository.NoSuchObjectException
Description copied from interface: AlbumService
Gets a specific album by key

Specified by:
getAlbumByKey in interface AlbumService
Returns:
Throws:
org.benow.repository.NoSuchObjectException

createAlbum

public Album createAlbum(Album album)
Specified by:
createAlbum in interface AlbumService