org.apache.lucene.gdata.storage.lucenestorage
Class StorageFeedWrapper

java.lang.Object
  extended by org.apache.lucene.gdata.storage.lucenestorage.StorageFeedWrapper
All Implemented Interfaces:
StorageWrapper

public class StorageFeedWrapper
extends Object
implements StorageWrapper

This immutable class wrapps GDataAccount instances for an internal Storage representation of an account. This class also acts as a Documentfactory for lucene documents to be stored inside the index.

Author:
Simon Willnauer

Field Summary
static String FIELD_ACCOUNTREFERENCE
          the account who owns the feed
static String FIELD_CONTENT
          The xml feed representation
static String FIELD_FEED_ID
          the id of the feed
static String FIELD_SERVICE_ID
          The Service this feed belongs to.
static String FIELD_TIMESTAMP
          The creation timestamp
 
Constructor Summary
StorageFeedWrapper(ServerBaseFeed feed, String accountname)
           
 
Method Summary
 com.google.gdata.data.BaseFeed getFeed()
           
 Document getLuceneDocument()
          Returns a Lucene document representing the Wrapped Entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_ACCOUNTREFERENCE

public static final String FIELD_ACCOUNTREFERENCE
the account who owns the feed

See Also:
Constant Field Values

FIELD_FEED_ID

public static final String FIELD_FEED_ID
the id of the feed

See Also:
Constant Field Values

FIELD_CONTENT

public static final String FIELD_CONTENT
The xml feed representation

See Also:
Constant Field Values

FIELD_TIMESTAMP

public static final String FIELD_TIMESTAMP
The creation timestamp

See Also:
Constant Field Values

FIELD_SERVICE_ID

public static final String FIELD_SERVICE_ID
The Service this feed belongs to.

See Also:
Constant Field Values
Constructor Detail

StorageFeedWrapper

public StorageFeedWrapper(ServerBaseFeed feed,
                          String accountname)
                   throws IOException
Parameters:
feed -
accountname -
Throws:
IOException
Method Detail

getLuceneDocument

public Document getLuceneDocument()
Description copied from interface: StorageWrapper
Returns a Lucene document representing the Wrapped Entry

Specified by:
getLuceneDocument in interface StorageWrapper
Returns:
a Lucene Document
See Also:
StorageWrapper.getLuceneDocument()

getFeed

public com.google.gdata.data.BaseFeed getFeed()
Returns:
- the wrapped feed


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.