|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmagoffin.matt.ma2.biz.impl.AbstractSearchBiz
magoffin.matt.ma2.lucene.LuceneBiz
public class LuceneBiz
Lucene implementation of SearchBiz and IndexBiz.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface magoffin.matt.ma2.biz.SearchBiz |
|---|
SearchBiz.AlbumSearchCriteria, SearchBiz.MediaItemSearchCriteria |
| Field Summary | |
|---|---|
static long |
DEFAULT_THREAD_SLEEP
Default value for the reindexWaitForFinishThreadSleep property. |
| Constructor Summary | |
|---|---|
LuceneBiz()
|
|
| Method Summary | |
|---|---|
SearchResults |
findMediaItems(SearchBiz.MediaItemSearchCriteria criteria,
PaginationCriteria pagination,
BizContext context)
Search for media items. |
SearchResults |
findUsersForIndex(PaginationCriteria pagination,
BizContext context)
Get an index of UserSearchResult objects. |
magoffin.matt.lucene.LuceneService |
getLucene()
|
java.lang.String |
getMediaItemIndexType()
|
org.springframework.context.MessageSource |
getMessages()
|
long |
getReindexWaitForFinishThreadSleep()
|
java.lang.String |
getUserIndexType()
|
WorkBiz |
getWorkBiz()
|
void |
indexMediaItem(java.lang.Long itemId)
Index a MediaItem object based on its ID. |
void |
indexUser(java.lang.Long userId)
Index a user object based on its ID. |
WorkBiz.WorkInfo |
recreateMediaItemIndex(BizContext context)
Rebuild the entire MediaItem index. |
WorkBiz.WorkInfo |
recreateUserIndex(BizContext context)
Rebuild the entire user index. |
void |
removeMediaItemFromIndex(java.lang.Long itemId)
Remove a MediaItem from the index. |
void |
removeUserFromIndex(java.lang.Long userId)
Remove a user from the index. |
void |
setLucene(magoffin.matt.lucene.LuceneService lucene)
|
void |
setMediaItemIndexType(java.lang.String mediaItemIndexType)
|
void |
setMessages(org.springframework.context.MessageSource messages)
|
void |
setReindexWaitForFinishThreadSleep(long reindexWaitForFinishThreadSleep)
|
void |
setUserIndexType(java.lang.String userIndexType)
|
void |
setWorkBiz(WorkBiz workBiz)
|
| Methods inherited from class magoffin.matt.ma2.biz.impl.AbstractSearchBiz |
|---|
findAlbums, findAlbumsForBrowsing, getAlbumDao, getDomainObjectFactory, getSystemBiz, getUserBiz, setAlbumDao, setDomainObjectFactory, setSystemBiz, setUserBiz |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface magoffin.matt.ma2.biz.SearchBiz |
|---|
findAlbums, findAlbumsForBrowsing |
| Field Detail |
|---|
public static final long DEFAULT_THREAD_SLEEP
reindexWaitForFinishThreadSleep property.
| Constructor Detail |
|---|
public LuceneBiz()
| Method Detail |
|---|
public SearchResults findUsersForIndex(PaginationCriteria pagination,
BizContext context)
SearchBiz
findUsersForIndex in interface SearchBizpagination - the index pagination criteriacontext - the current context
public SearchResults findMediaItems(SearchBiz.MediaItemSearchCriteria criteria,
PaginationCriteria pagination,
BizContext context)
SearchBiz
findMediaItems in interface SearchBizcriteria - the criteriapagination - the pagination criteriacontext - the current context
public void indexUser(java.lang.Long userId)
IndexBizThis method must support indexing a user that may or may not have been indexed before.
indexUser in interface IndexBizuserId - the ID of the user to indexpublic WorkBiz.WorkInfo recreateUserIndex(BizContext context)
IndexBiz
recreateUserIndex in interface IndexBizcontext - the current context
public void removeUserFromIndex(java.lang.Long userId)
IndexBiz
removeUserFromIndex in interface IndexBizuserId - the ID of the user to removepublic void indexMediaItem(java.lang.Long itemId)
IndexBizThis method must support indexing an item that may or may not have been indexed before.
indexMediaItem in interface IndexBizitemId - the ID of the item to indexpublic WorkBiz.WorkInfo recreateMediaItemIndex(BizContext context)
IndexBiz
recreateMediaItemIndex in interface IndexBizcontext - the current context
public void removeMediaItemFromIndex(java.lang.Long itemId)
IndexBiz
removeMediaItemFromIndex in interface IndexBizitemId - the ID of the item to removepublic magoffin.matt.lucene.LuceneService getLucene()
public void setLucene(magoffin.matt.lucene.LuceneService lucene)
lucene - the lucene to setpublic org.springframework.context.MessageSource getMessages()
public void setMessages(org.springframework.context.MessageSource messages)
messages - the messages to setpublic java.lang.String getUserIndexType()
public void setUserIndexType(java.lang.String userIndexType)
userIndexType - the userIndexType to setpublic java.lang.String getMediaItemIndexType()
public void setMediaItemIndexType(java.lang.String mediaItemIndexType)
mediaItemIndexType - the mediaItemIndexType to setpublic WorkBiz getWorkBiz()
public void setWorkBiz(WorkBiz workBiz)
workBiz - the workBiz to setpublic long getReindexWaitForFinishThreadSleep()
public void setReindexWaitForFinishThreadSleep(long reindexWaitForFinishThreadSleep)
reindexWaitForFinishThreadSleep - the reindexWaitForFinishThreadSleep to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||