org.apache.tuscany.sca.binding.gdata.collection
Interface Collection

All Known Subinterfaces:
MediaCollection

public interface Collection

Provides access to a collection of resources using Gdata.


Method Summary
 void delete(java.lang.String id)
          Delete an entry.
 Entry get(java.lang.String id)
          Retrieves an entry.
 Feed getFeed()
          Get a GData feed for a collection of resources.
 Entry post(Entry entry)
          Creates a new entry.
 void put(java.lang.String id, Entry entry)
          Update an entry.
 Feed query(Query query)
          Get a GData feed for a collection of resources resulting from a query.
 

Method Detail

getFeed

Feed getFeed()
Get a GData feed for a collection of resources.

Returns:
the GData feed

query

Feed query(Query query)
Get a GData feed for a collection of resources resulting from a query.

Parameters:
queryString - a query string
Returns:
the GData feed

post

Entry post(Entry entry)
Creates a new entry.

Parameters:
entry -
Returns:

get

Entry get(java.lang.String id)
          throws NotFoundException
Retrieves an entry.

Parameters:
id -
Returns:
Throws:
NotFoundException

put

void put(java.lang.String id,
         Entry entry)
         throws NotFoundException
Update an entry.

Parameters:
id -
entry -
Throws:
NotFoundException

delete

void delete(java.lang.String id)
            throws NotFoundException
Delete an entry.

Parameters:
id -
Throws:
NotFoundException