Modifier and Type | Field and Description |
---|---|
static java.lang.String |
c_prefix
Prefix for the property subset to use with this catalog.
|
static java.lang.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.
|
java.util.Set<java.lang.String> |
list()
Lists the site handles for all the sites in the Site Catalog.
|
int |
load(java.util.List<java.lang.String> sites)
Loads up the Site Catalog implementation with the sites whose
site handles are specified.
|
SiteCatalogEntry |
lookup(java.lang.String handle)
Retrieves the
SiteCatalogEntry for a site. |
int |
remove(java.lang.String handle)
Removes a site catalog entry matching the the handle.
|
static final java.lang.String VERSION
static final java.lang.String c_prefix
int load(java.util.List<java.lang.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.java.util.Set<java.lang.String> list() throws SiteCatalogException
SiteCatalogException
- in case of error.SiteCatalogEntry lookup(java.lang.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(java.lang.String handle) throws SiteCatalogException
handle
- the site handle / identifier.SiteCatalogException
- in case of error.