org.kuali.rice.ksb.testclient1
Class BaseballCardCollectionServiceImpl

java.lang.Object
  extended by org.kuali.rice.ksb.testclient1.BaseballCardCollectionServiceImpl
All Implemented Interfaces:
BaseballCardCollectionService

public class BaseballCardCollectionServiceImpl
extends Object
implements BaseballCardCollectionService

Implementation for BaseballCardCollectionService

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
BaseballCardCollectionServiceImpl()
           
 
Method Summary
 Integer add(BaseballCard card)
          Add a card to the collection.
 void delete(Integer id)
          delete the card with the given identifier.
 BaseballCard get(Integer id)
          gets a card by it's (arbitrary) identifier
 List<BaseballCard> get(String playerName)
          gets all the cards in the collection with the given player name
 List<BaseballCard> getAll()
           
 void unannotatedMethod()
          This method lacks JAX-RS annotations in the BaseballCardCollectionService interface
 void update(Integer id, BaseballCard card)
          update the card for the given identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseballCardCollectionServiceImpl

public BaseballCardCollectionServiceImpl()
Method Detail

add

public Integer add(BaseballCard card)
Description copied from interface: BaseballCardCollectionService
Add a card to the collection. This is a non-idempotent method (because you can more one of the same card), so we'll use @POST

Specified by:
add in interface BaseballCardCollectionService
Returns:
the (arbitrary) numerical identifier assigned to this card by the service
See Also:
BaseballCardCollectionService.add(org.kuali.rice.ksb.messaging.remotedservices.BaseballCard)

delete

public void delete(Integer id)
Description copied from interface: BaseballCardCollectionService
delete the card with the given identifier.

Specified by:
delete in interface BaseballCardCollectionService
See Also:
BaseballCardCollectionService.delete(java.lang.Integer)

get

public BaseballCard get(Integer id)
Description copied from interface: BaseballCardCollectionService
gets a card by it's (arbitrary) identifier

Specified by:
get in interface BaseballCardCollectionService
See Also:
BaseballCardCollectionService.get(java.lang.Integer)

get

public List<BaseballCard> get(String playerName)
Description copied from interface: BaseballCardCollectionService
gets all the cards in the collection with the given player name

Specified by:
get in interface BaseballCardCollectionService
See Also:
BaseballCardCollectionService.get(java.lang.String)

getAll

public List<BaseballCard> getAll()
Specified by:
getAll in interface BaseballCardCollectionService
See Also:
BaseballCardCollectionService.getAll()

update

public void update(Integer id,
                   BaseballCard card)
Description copied from interface: BaseballCardCollectionService
update the card for the given identifier. This will replace the card that was previously associated with that identifier.

Specified by:
update in interface BaseballCardCollectionService
See Also:
BaseballCardCollectionService.update(java.lang.Integer, org.kuali.rice.ksb.messaging.remotedservices.BaseballCard)

unannotatedMethod

public void unannotatedMethod()
This method lacks JAX-RS annotations in the BaseballCardCollectionService interface

Specified by:
unannotatedMethod in interface BaseballCardCollectionService
See Also:
BaseballCardCollectionService.unannotatedMethod()


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.