com.atlassian.confluence.core
Class LuceneSmartListManager
java.lang.Object
com.atlassian.confluence.core.LuceneSmartListManager
- All Implemented Interfaces:
- SmartListManager
public class LuceneSmartListManager
- extends java.lang.Object
- implements SmartListManager
Field Summary |
static org.apache.log4j.Category |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final org.apache.log4j.Category log
LuceneSmartListManager
public LuceneSmartListManager()
getStatusMessageKey
public java.lang.String getStatusMessageKey()
- Description copied from interface:
SmartListManager
- The smart list manager implementations are not guarenteed to be able to provide the latest and most up to date
information all of the time (eg: during a lucene re-index). Under such circumstances, the smart list manager
will provide access to a human readable status message that can be displayed to the user.
- Specified by:
getStatusMessageKey
in interface SmartListManager
- Returns:
- a key to a status message or null if there is no message.
getListQueryResults
public java.util.List getListQueryResults(ListQuery query,
boolean loadObjects)
- Description copied from interface:
SmartListManager
- Returns a list of those objects in the Confluence system that match the given ListQuery.
The loadObjects parameter allows you to trade off speed against the amount of information returned.
Passing false to this parameter will give you back a list of
SearchResultWithExcerpt
objects, containing whatever information
about the matching objects can be gathered directly from the Lucene index. This is enough information for
most purposes.
If you want a list of the actual hibernate objects from the database, pass true to this parameter,
but be aware you're going to pay the cost of 'n' database calls to retrieve those objects.
- Specified by:
getListQueryResults
in interface SmartListManager
- Parameters:
query
- the query to performloadObjects
- pass true to return
- Returns:
- ContentEntityObjects List if loadObjects true, Map of object attributes otherwise
setSpaceManager
public void setSpaceManager(SpaceManager spaceManager)
setLuceneConnection
public void setLuceneConnection(com.atlassian.bonnie.LuceneConnection luceneConnection)
setAnyTypeObjectDao
public void setAnyTypeObjectDao(com.atlassian.bonnie.AnyTypeObjectDao anyTypeObjectDao)
setUserAccessor
public void setUserAccessor(UserAccessor userAccessor)
setSearcher
public void setSearcher(com.atlassian.bonnie.Searcher searcher)
setIndexManager
public void setIndexManager(ConfluenceIndexManager indexManager)
setLabelManager
public void setLabelManager(LabelManager labelManager)
Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.