public class CollectionDropDown extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CollectionDropDown.CollectionPathEntry
A helper class to hold (collection, full path) pairs.
|
| Constructor and Description |
|---|
CollectionDropDown() |
| Modifier and Type | Method and Description |
|---|---|
static CollectionDropDown.CollectionPathEntry[] |
annotateWithPaths(Context context,
List<Collection> collections)
Annotates an array of collections with their respective full paths (@see #collectionPath() method in this class).
|
static String |
collectionPath(Context context,
Collection col)
Get full path starting from a top-level community via subcommunities down to a collection.
|
static String |
collectionPath(Context context,
Collection col,
int maxchars)
Get full path starting from a top-level community via subcommunities down to a collection.
|
public static String collectionPath(Context context, Collection col) throws SQLException
col - Get full path for this collectionSQLException - if database errorpublic static String collectionPath(Context context, Collection col, int maxchars) throws SQLException
col - Get full path for this collectionmaxchars - Truncate the full path to maxchar characters. 0 means do not truncate.SQLException - if database errorpublic static CollectionDropDown.CollectionPathEntry[] annotateWithPaths(Context context, List<Collection> collections) throws SQLException
collections - An array of collections to annotate with their hierarchical paths.
The array and all its entries must be non-null.SQLException - In case there are problems annotating a collection with its path.Copyright © 2022 LYRASIS. All rights reserved.