org.kuali.rice.ksb.messaging.remotedservices
Interface BaseballCardCollectionService

All Known Implementing Classes:
BaseballCardCollectionServiceImpl

public interface BaseballCardCollectionService

JAX-RS annotated interface for a baseball card collection service which might track the cards in a collection.

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

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
 void update(Integer id, BaseballCard card)
          update the card for the given identifier.
 

Method Detail

getAll

List<BaseballCard> getAll()

get

BaseballCard get(Integer id)
gets a card by it's (arbitrary) identifier


get

List<BaseballCard> get(String playerName)
gets all the cards in the collection with the given player name


add

Integer add(BaseballCard card)
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

Returns:
the (arbitrary) numerical identifier assigned to this card by the service

update

void update(Integer id,
            BaseballCard card)
update the card for the given identifier. This will replace the card that was previously associated with that identifier.


delete

void delete(Integer id)
delete the card with the given identifier.


unannotatedMethod

void unannotatedMethod()
This method lacks JAX-RS annotations



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