public class CollectionRanker
extends java.lang.Object
EndecaPortletUtil
the first time an application is accessed; EndecaPortletUtil then persists the results
of its call to the database.Constructor and Description |
---|
CollectionRanker(DataSource ds,
java.util.Locale locale)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.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.Copyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.