public class CollectionDropDown
extends java.lang.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(Collection[] collections)
Annotates an array of collections with their respective full paths (@see #collectionPath() method in this class).
|
static java.lang.String |
collectionPath(Collection col)
Get full path starting from a top-level community via subcommunities down to a collection.
|
static java.lang.String |
collectionPath(Collection col,
int maxchars)
Get full path starting from a top-level community via subcommunities down to a collection.
|
public static java.lang.String collectionPath(Collection col) throws java.sql.SQLException
col - Get full path for this collectionjava.sql.SQLExceptionpublic static java.lang.String collectionPath(Collection col, int maxchars) throws java.sql.SQLException
col - Get full path for this collectionmaxchars - Truncate the full path to maxchar characters. 0 means do not truncate.java.sql.SQLExceptionpublic static CollectionDropDown.CollectionPathEntry[] annotateWithPaths(Collection[] collections) throws java.sql.SQLException
collections - An array of collections to annotate with their hierarchical paths.
The array and all its entries must be non-null.java.sql.SQLException - In case there are problems annotating a collection with its path.Copyright © 2018 DuraSpace. All Rights Reserved.