|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.endeca.portal.data.CollectionRanker
public class CollectionRanker
Ranks all the data sets (collections) for a given data source, in order to choose the best
data set for an application. This class is called by EndecaPortletUtil
the first time an application is accessed; EndecaPortletUtil then persists the results of
its call to the database.
Constructor Summary | |
---|---|
CollectionRanker(DataSource ds,
java.util.Locale locale)
Constructor. |
Method Summary | |
---|---|
CollectionBaseView |
selectDefaultCollection()
Returns the collection that should be used as the default for a data source. |
java.util.List<CollectionBaseView> |
sortAlphabetically()
Returns all collections in the given data source, sorted alphabetically according to the current locale. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectionRanker(DataSource ds, java.util.Locale locale)
ds
- the DataSource containing the collections to be ranked.locale
- the current locale; used to manage alphabetical sorting.Method Detail |
---|
public CollectionBaseView selectDefaultCollection() throws DataSourceException
DataSourceException
- if the data source has no collections, or an error occurred retrieving
collections.public java.util.List<CollectionBaseView> sortAlphabetically() throws DataSourceException
DataSourceException
- if there was a problem retrieving collections.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |