public class CollectionNameRegistry
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Set<java.lang.String> |
getAllInventoriedCollectionNames() |
static java.lang.String |
lookupInventoriedCollectionName(java.lang.String collectionName)
Looks through the cached list of inventoried collection names in search of one that "matches" the specified collection name.
|
static void |
refreshIfNecessary()
Refreshes the cache if its data version if out of date
|
static void |
refreshIfNecessary(boolean forceRefresh)
Refreshes the cache if its data version if out of date
|
public static void refreshIfNecessary()
public static void refreshIfNecessary(boolean forceRefresh)
forceRefresh
- - Fetch the latest dataVersion and not use the cached one.public static java.lang.String lookupInventoriedCollectionName(java.lang.String collectionName) throws KeyNotFoundException
collectionName
- a collection name string, which could be an inventoried collection or a project-specific collection nameKeyNotFoundException
- if no inventoried collection name was found that matches the specified namepublic static java.util.Set<java.lang.String> getAllInventoriedCollectionNames()
Copyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.