doc.walkthru
Class PerformerServiceImpl

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

public class PerformerServiceImpl
extends java.lang.Object
implements PerformerService


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
PerformerServiceImpl()
           
 
Method Summary
 void addGroupMember(Group group, Artist artist)
          Add a member to the group
 void addPerformerLink(Performer performer, java.net.URL link)
          Add a link to a performer
 Artist createArtist(java.lang.String name)
          Create an artist with the given name
 Group createGroup(java.lang.String name)
          Create a group with the given name
 java.util.List<Album> getPerformerAlbums(Performer performer)
          Gets the albums of a performer
 Performer getPerformerByKey(java.lang.Object key, java.lang.Class<?> type)
          Get a performer of a certain type (GroupImpl, ArtistImpl) by key.
 java.util.List<Performer> getPerformers()
           
 void removePerformerLink(Performer performer, java.net.URL link)
          Remove a stale link from the performer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerformerServiceImpl

public PerformerServiceImpl()
Method Detail

addGroupMember

public void addGroupMember(Group group,
                           Artist artist)
Description copied from interface: PerformerService
Add a member to the group

Specified by:
addGroupMember in interface PerformerService

addPerformerLink

public void addPerformerLink(Performer performer,
                             java.net.URL link)
Description copied from interface: PerformerService
Add a link to a performer

Specified by:
addPerformerLink in interface PerformerService

createArtist

public Artist createArtist(java.lang.String name)
Description copied from interface: PerformerService
Create an artist with the given name

Specified by:
createArtist in interface PerformerService
Returns:

createGroup

public Group createGroup(java.lang.String name)
Description copied from interface: PerformerService
Create a group with the given name

Specified by:
createGroup in interface PerformerService
Returns:

getPerformerAlbums

public java.util.List<Album> getPerformerAlbums(Performer performer)
Description copied from interface: PerformerService
Gets the albums of a performer

Specified by:
getPerformerAlbums in interface PerformerService
Returns:

getPerformers

public java.util.List<Performer> getPerformers()
Specified by:
getPerformers in interface PerformerService
Returns:
known performers

removePerformerLink

public void removePerformerLink(Performer performer,
                                java.net.URL link)
Description copied from interface: PerformerService
Remove a stale link from the performer

Specified by:
removePerformerLink in interface PerformerService

getPerformerByKey

public Performer getPerformerByKey(java.lang.Object key,
                                   java.lang.Class<?> type)
                            throws org.benow.repository.NoSuchObjectException
Description copied from interface: PerformerService
Get a performer of a certain type (GroupImpl, ArtistImpl) by key.

Specified by:
getPerformerByKey in interface PerformerService
Returns:
Throws:
org.benow.repository.NoSuchObjectException