org.xmldb.api.reference.modules
Class CollectionManagementServiceImpl
- CollectionManagementService, Configurable, Service
public class CollectionManagementServiceImpl
CollectionManager provides management facilities for a Collection instance.
Administrative access is required for retrieval of the CollectionManager
interface. User level access is provided through the underlying Collection
itself.
Collection | createCollection(String name) - Creates a simple collection with a basic default configuration.
|
String | getName() - Returns the name of the Service
|
String | getVersion() - Returns the version of the Service
|
void | removeCollection(String name) - Removes the named collection from the system.
|
void | setCollection(Collection col) - Provides a reference to the XML:DB collection instance that this service
is associated with.
|
basePath
protected String basePath
CollectionManagementServiceImpl
public CollectionManagementServiceImpl(String basePath)
Creates a new CollectionManager service
getName
public String getName()
Returns the name of the Service
- getName in interface Service
getVersion
public String getVersion()
Returns the version of the Service
- getVersion in interface Service
- the version of the Service
setCollection
public void setCollection(Collection col)
Provides a reference to the XML:DB collection instance that this service
is associated with.
- setCollection in interface Service
col
- the XML:DB collection instance associated with this Service