|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.server.csw.client.CswCatalogs
public class CswCatalogs
Collections class for catalogs. The collection support both sequential and random access objects based on key.
Constructor Summary | |
---|---|
CswCatalogs()
|
Method Summary | |
---|---|
void |
addCatalog(CswCatalog catalog)
Add a catalog using its id as a key. |
void |
addCatalog(String key,
CswCatalog catalog)
Add a key value pair to catalog collection. |
void |
addCatalogtoConfig(CswCatalog catalog,
String filename)
Add a new Catalog to the collection. |
void |
deleteCatalogfromConfig(CswCatalog catalog,
String filename)
Delete an existing Catalog from the configuration file. |
CswCatalog |
getCatalog(int index)
|
CswCatalog |
getCatalog(String id)
|
int |
getSize()
|
void |
loadCatalogfromConfig(String filename,
CswProfiles profileList)
Loads the catalog details from configuration file. |
void |
updateCatalogNameinConfig(CswCatalog catalog,
String displayname,
String surl,
CswProfile profile,
String filename)
Update the name of an existing Catalog. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CswCatalogs()
Method Detail |
---|
public void addCatalog(String key, CswCatalog catalog)
key
- The key which is the url hashcode for the catalogcatalog
- the catalog objectpublic void addCatalog(CswCatalog catalog)
catalog
- public void addCatalogtoConfig(CswCatalog catalog, String filename)
catalog
- CswCatalogfilename
- the catalog configuration filepublic void deleteCatalogfromConfig(CswCatalog catalog, String filename)
catalog
- CswCatalogfilename
- the catalog configuration filepublic void loadCatalogfromConfig(String filename, CswProfiles profileList) throws ParserConfigurationException, SAXException, IOException, XPathExpressionException
filename
- the catalog configuration fileprofileList
- the profiles collection
ParserConfigurationException
IOException
SAXException
XPathExpressionException
public CswCatalog getCatalog(String id)
id
- public CswCatalog getCatalog(int index)
public int getSize()
public void updateCatalogNameinConfig(CswCatalog catalog, String displayname, String surl, CswProfile profile, String filename)
catalog
- CswCatalogdisplayname
- The string namesurl
- The string updated urlprofile
- The string namefilename
- the catalog configuration file
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |