Modifier and Type | Field and Description |
---|---|
static String |
c_prefix
Prefix for the property subset to use with this catalog.
|
static String |
VERSION
The version of the API
|
DB_ALL_PREFIX
Modifier and Type | Method and Description |
---|---|
int |
insert(SiteCatalogEntry entry)
Inserts a new mapping into the Site catalog.
|
Set<String> |
list()
Lists the site handles for all the sites in the Site Catalog.
|
int |
load(List<String> sites)
Loads up the Site Catalog implementation with the sites whose
site handles are specified.
|
SiteCatalogEntry |
lookup(String handle)
Retrieves the
SiteCatalogEntry for a site. |
int |
remove(String handle)
Removes a site catalog entry matching the the handle.
|
static final String VERSION
static final String c_prefix
int load(List<String> sites) throws SiteCatalogException
sites
- the list of sites to be loaded.SiteCatalogException
- in case of error.int insert(SiteCatalogEntry entry) throws SiteCatalogException
entry
- the SiteCatalogEntry
object that describes
a site.SiteCatalogException
- in case of error.Set<String> list() throws SiteCatalogException
SiteCatalogException
- in case of error.SiteCatalogEntry lookup(String handle) throws SiteCatalogException
SiteCatalogEntry
for a site.handle
- the site handle / identifier.null
if no match is found.SiteCatalogException
- in case of error.int remove(String handle) throws SiteCatalogException
handle
- the site handle / identifier.SiteCatalogException
- in case of error.