|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.gdata.storage.lucenestorage.StorageAccountWrapper
public class StorageAccountWrapper
Wrapps a User Object. The wrapper provides also a Lucene repesentation of the user; User Objects will not be Buffered in the lucene storage component. Each User will be written imidialtely.
| Field Summary | |
|---|---|
static String |
FIELD_ACCOUNTNAME
Lucene field for the username |
static String |
FIELD_AUTHORHREF
Lucene field for the author link |
static String |
FIELD_AUTHORMAIL
Lucene field for the author mail address |
static String |
FIELD_AUTHORNAME
Lucene field for the author name |
static String |
FIELD_PASSWORD
Lucene field for the password |
static String |
FIELD_ROLES
Lucene field fot the userroles |
| Constructor Summary | |
|---|---|
StorageAccountWrapper(GDataAccount user)
|
|
| Method Summary | |
|---|---|
static GDataAccount |
buildEntity(Document doc)
|
Document |
getLuceneDocument()
Returns a Lucene document representing the Wrapped Entry |
GDataAccount |
getUser()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FIELD_ACCOUNTNAME
public static final String FIELD_PASSWORD
public static final String FIELD_AUTHORNAME
public static final String FIELD_AUTHORMAIL
public static final String FIELD_AUTHORHREF
public static final String FIELD_ROLES
| Constructor Detail |
|---|
public StorageAccountWrapper(GDataAccount user)
user - - the user to be wrapped| Method Detail |
|---|
public Document getLuceneDocument()
StorageWrapper
getLuceneDocument in interface StorageWrapperStorageWrapper.getLuceneDocument()public static GDataAccount buildEntity(Document doc)
doc - - a lucene document representation of an user
null if the document is nullpublic GDataAccount getUser()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||