|
Xindice API version 1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xindice.client.xmldb.CommonConfigurable | +--org.apache.xindice.client.xmldb.services.CollectionManagementServiceImpl
XML:DB CollectionManagementService implementation using XML-RPC to communicate with Xindice.
Fields inherited from class org.apache.xindice.client.xmldb.CommonConfigurable |
config |
Constructor Summary | |
CollectionManagementServiceImpl()
|
Method Summary | |
org.xmldb.api.base.Collection |
createCollection(String childCollName)
Inserts new child collection into this collection |
org.xmldb.api.base.Collection |
createCollection(String path,
org.w3c.dom.Document configuration)
Creates a new collection in the database identified by name and using the provided configuration. |
void |
createIndexer(org.w3c.dom.Document configuration)
Creates a new Indexer for this collection. |
void |
createXMLObject(org.w3c.dom.Document configuration)
Creates a new collection level XMLObject using the provided configuration. |
void |
dropCollection(String name)
Drops a child collection from this collection. |
void |
dropIndexer(String name)
Drops the indexer from the collection |
void |
dropXMLObject(String name)
Drops a collection level XMLObject from the collection. |
String |
getCanonicalName()
Returns the fully qualified name of the collection that this manager is associated with. |
String |
getCollectionName()
Returns the name of the collection that this manager is associated with. |
String |
getName()
Returns service name |
String |
getVersion()
Returns service version |
String[] |
listIndexers()
Returns a list of all indexers for this collection. |
String[] |
listXMLObjects()
Returns a list of all collection level XMLObjects for this collection. |
void |
removeCollection(String childCollName)
Removes child collection from this collection |
void |
setCollection(org.xmldb.api.base.Collection collection)
Sets collection this service should operate on |
void |
shutdown()
Shutsdown the Database instance |
Methods inherited from class org.apache.xindice.client.xmldb.CommonConfigurable |
getProperty, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xmldb.api.base.Configurable |
getProperty, setProperty |
Constructor Detail |
public CollectionManagementServiceImpl()
Method Detail |
public String getVersion() throws org.xmldb.api.base.XMLDBException
getVersion
in interface org.xmldb.api.base.Service
1.0
public org.xmldb.api.base.Collection createCollection(String childCollName) throws org.xmldb.api.base.XMLDBException
createCollection
in interface org.xmldb.api.modules.CollectionManagementService
childCollName
- name for new child collectionpublic void removeCollection(String childCollName) throws org.xmldb.api.base.XMLDBException
removeCollection
in interface org.xmldb.api.modules.CollectionManagementService
childCollName
- name of child collection to removepublic String getName()
getName
in interface org.xmldb.api.base.Service
CollectionManagementService
public void setCollection(org.xmldb.api.base.Collection collection)
setCollection
in interface org.xmldb.api.base.Service
collection
- the collection this service should operate onpublic String getCollectionName() throws org.xmldb.api.base.XMLDBException
getCollectionName
in interface CollectionManager
org.xmldb.api.base.XMLDBException
- public String getCanonicalName() throws org.xmldb.api.base.XMLDBException
getCanonicalName
in interface CollectionManager
org.xmldb.api.base.XMLDBException
- public org.xmldb.api.base.Collection createCollection(String path, org.w3c.dom.Document configuration) throws org.xmldb.api.base.XMLDBException
createCollection
in interface CollectionManager
path
- the path of the new collectionconfiguration
- the XML collection configuration to use for
creating this collection.org.xmldb.api.base.XMLDBException
- public void dropCollection(String name) throws org.xmldb.api.base.XMLDBException
dropCollection
in interface CollectionManager
name
- The name of the child collection to drop.org.xmldb.api.base.XMLDBException
- public String[] listIndexers() throws org.xmldb.api.base.XMLDBException
listIndexers
in interface CollectionManager
org.xmldb.api.base.XMLDBException
- public void createIndexer(org.w3c.dom.Document configuration) throws org.xmldb.api.base.XMLDBException
createIndexer
in interface CollectionManager
configuration
- The configuration to use for this indexer.org.xmldb.api.base.XMLDBException
- public void dropIndexer(String name) throws org.xmldb.api.base.XMLDBException
CollectionManager
dropIndexer
in interface CollectionManager
org.apache.xindice.client.xmldb.services.CollectionManager
name
- The name of the indexer to drop.org.xmldb.api.base.XMLDBException
- public void shutdown() throws org.xmldb.api.base.XMLDBException
shutdown
in interface DatabaseInstanceManager
org.xmldb.api.base.XMLDBException
- public String[] listXMLObjects() throws org.xmldb.api.base.XMLDBException
listXMLObjects
in interface CollectionManager
org.xmldb.api.base.XMLDBException
- public void createXMLObject(org.w3c.dom.Document configuration) throws org.xmldb.api.base.XMLDBException
createXMLObject
in interface CollectionManager
configuration
- The XML configuration to useorg.xmldb.api.base.XMLDBException
- public void dropXMLObject(String name) throws org.xmldb.api.base.XMLDBException
dropXMLObject
in interface CollectionManager
name
- The name of the XMLObject to drop.org.xmldb.api.base.XMLDBException
-
|
Xindice API version 1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |