A interface every storage implementation must provide to access the
Storage. It describes all access methodes needed to store,
retrieve and look up data stored in the Storage component. This
interface acts as a Facade to hide the storage implementation from
the user.
This could also act as a proxy for a remote storage. It also removes any
restrictions from custom storage implementations.
author
Simon Willnauer
Fields Summary
Constructors Summary
Methods Summary
public abstract void
close()
close this storage instance. This method will be called by clients after
use.
Retrieves the requested feed from the storage. The given ServerBaseFeed
must provide information about the feed id, max-result count and the
start index. To create feeds and entries also the service type must be
provided.
param
feed -
the to retieve from the storage
return
the requested feed
throws
StorageException -
the feed does not exist or can not be retrieved or required
field are not set.
Stores a new feed for a existing account. The Feed must provide
information about the service type to store the feed for and the feed id
used for accessing and retrieving the feed from the storage. Each feed is
associated with a provided service. This method does check wheather a
feed with the same feed id as the given feed does already exists.
Updates the given entry. The ServerBaseEntry must provide a feed id,
service id and the
{@link org.apache.lucene.gdata.server.registry.ProvidedService}
param
entry -
the entry to update
return
- the updated entry for server response.
throws
StorageException -
if the entry can not be updated or does not exist or required
field are not set.
Updates a stored feed. The Feed must provide information about the
service type to store the feed for and the feed id used for accessing and
retrieving the feed from the storage.
param
feed -
the feed to update
param
accountname -
the account name belongs to the feed
throws
StorageException -
if the feed does not exist or the feed can not be updated