org.exist.xmldb
Class CollectionManagementServiceImpl

java.lang.Object
  extended byorg.apache.xindice.client.xmldb.services.CollectionManager
      extended byorg.exist.xmldb.CollectionManagementServiceImpl
All Implemented Interfaces:
CollectionManagementService, Configurable, Service

public class CollectionManagementServiceImpl
extends org.apache.xindice.client.xmldb.services.CollectionManager
implements CollectionManagementService


Field Summary
protected  org.apache.xmlrpc.XmlRpcClient client
           
protected  RemoteCollection parent
           
 
Constructor Summary
CollectionManagementServiceImpl(RemoteCollection parent, org.apache.xmlrpc.XmlRpcClient client)
           
 
Method Summary
 Collection createCollection(java.lang.String collName)
          Creates a new Collection in the database.
 Collection createCollection(java.lang.String path, org.w3c.dom.Document configuration)
          Implements createCollection from interface CollectionManager.
 java.lang.String getName()
          Returns the name associated with the Service instance.
 java.lang.String getProperty(java.lang.String property)
          Returns the value of the property identified by name.
 java.lang.String getVersion()
          Gets the Version attribute of the Service object
 void removeCollection(java.lang.String collName)
          Removes a named Collection from the system.
 void setCollection(Collection parent)
          Sets the Collection attribute of the Service object
 void setProperty(java.lang.String property, java.lang.String value)
          Sets the property name to have the value provided in value.
 
Methods inherited from class org.apache.xindice.client.xmldb.services.CollectionManager
createIndexer, createXMLObject, dropCollection, dropIndexer, dropXMLObject, getCanonicalName, getCollectionName, listIndexers, listXMLObjects, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

protected org.apache.xmlrpc.XmlRpcClient client

parent

protected RemoteCollection parent
Constructor Detail

CollectionManagementServiceImpl

public CollectionManagementServiceImpl(RemoteCollection parent,
                                       org.apache.xmlrpc.XmlRpcClient client)
Method Detail

createCollection

public Collection createCollection(java.lang.String collName)
                            throws XMLDBException
Description copied from interface: CollectionManagementService
Creates a new Collection in the database. The default configuration of the database is determined by the implementer. The new Collection will be created relative to the Collection from which the CollectionManagementService was retrieved.

Specified by:
createCollection in interface CollectionManagementService
Throws:
XMLDBException

createCollection

public Collection createCollection(java.lang.String path,
                                   org.w3c.dom.Document configuration)
                            throws XMLDBException
Implements createCollection from interface CollectionManager. Gets called by some applications based on Xindice.

Parameters:
path - Description of the Parameter
configuration - Description of the Parameter
Returns:
Description of the Return Value
Throws:
XMLDBException - Description of the Exception

getName

public java.lang.String getName()
                         throws XMLDBException
Description copied from interface: Service
Returns the name associated with the Service instance.

Specified by:
getName in interface Service
Throws:
XMLDBException

getProperty

public java.lang.String getProperty(java.lang.String property)
Description copied from interface: Configurable
Returns the value of the property identified by name.

Specified by:
getProperty in interface Configurable

getVersion

public java.lang.String getVersion()
                            throws XMLDBException
Description copied from interface: Service
Gets the Version attribute of the Service object

Specified by:
getVersion in interface Service
Throws:
XMLDBException

removeCollection

public void removeCollection(java.lang.String collName)
                      throws XMLDBException
Description copied from interface: CollectionManagementService
Removes a named Collection from the system. The name for the Collection to remove is relative to the Collection from which the CollectionManagementService was retrieved.

Specified by:
removeCollection in interface CollectionManagementService
Throws:
XMLDBException

setCollection

public void setCollection(Collection parent)
                   throws XMLDBException
Description copied from interface: Service
Sets the Collection attribute of the Service object

Specified by:
setCollection in interface Service
Throws:
XMLDBException

setProperty

public void setProperty(java.lang.String property,
                        java.lang.String value)
Description copied from interface: Configurable
Sets the property name to have the value provided in value.

Specified by:
setProperty in interface Configurable


Copyright (C) Wolfgang Meier. All rights reserved.