org.exist.xmldb
Class LocalCollectionManagementService

java.lang.Object
  extended by org.exist.xmldb.LocalCollectionManagementService
All Implemented Interfaces:
CollectionManagementServiceImpl, Configurable, Service, CollectionManagementService

public class LocalCollectionManagementService
extends Object
implements CollectionManagementServiceImpl


Constructor Summary
LocalCollectionManagementService(Subject user, BrokerPool pool, LocalCollection parent, AccessContext accessCtx)
           
 
Method Summary
 void copy(String collectionPath, String destinationPath, String newName)
          Deprecated. Use XmldbURI version instead
 void copy(XmldbURI collectionPath, XmldbURI destinationPath, XmldbURI newName)
           
 void copyResource(String resourcePath, String destinationPath, String newName)
          Deprecated. Use XmldbURI version instead
 void copyResource(XmldbURI resourcePath, XmldbURI destinationPath, XmldbURI newName)
           
 Collection createCollection(String collName)
          Deprecated. Use XmldbURI version instead
 Collection createCollection(String collName, Date created)
          Deprecated. Use XmldbURI version instead
 Collection createCollection(String path, Document configuration)
          Deprecated. Use XmldbURI version instead
 Collection createCollection(XmldbURI collName)
           
 Collection createCollection(XmldbURI collName, Date created)
           
 String getName()
           
 String getProperty(String property)
           
 String getVersion()
           
 void move(String collectionPath, String destinationPath, String newName)
          Deprecated. Use XmldbURI version instead
 void move(XmldbURI collectionPath, XmldbURI destinationPath, XmldbURI newName)
           
 void moveResource(String resourcePath, String destinationPath, String newName)
          Deprecated. Use XmldbURI version instead
 void moveResource(XmldbURI resourcePath, XmldbURI destinationPath, XmldbURI newName)
           
 void removeCollection(String collName)
          Deprecated. Use XmldbURI version instead
 void removeCollection(XmldbURI collName)
           
 void runCommand(String[] params)
           
 void setCollection(Collection parent)
           
 void setProperty(String property, String value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalCollectionManagementService

public LocalCollectionManagementService(Subject user,
                                        BrokerPool pool,
                                        LocalCollection parent,
                                        AccessContext accessCtx)
Method Detail

createCollection

public Collection createCollection(String collName)
                            throws XMLDBException
Deprecated. Use XmldbURI version instead

Specified by:
createCollection in interface CollectionManagementServiceImpl
Specified by:
createCollection in interface CollectionManagementService
Throws:
XMLDBException

createCollection

public Collection createCollection(XmldbURI collName)
                            throws XMLDBException
Specified by:
createCollection in interface CollectionManagementServiceImpl
Throws:
XMLDBException

createCollection

public Collection createCollection(String collName,
                                   Date created)
                            throws XMLDBException
Deprecated. Use XmldbURI version instead

Specified by:
createCollection in interface CollectionManagementServiceImpl
Throws:
XMLDBException

createCollection

public Collection createCollection(XmldbURI collName,
                                   Date created)
                            throws XMLDBException
Specified by:
createCollection in interface CollectionManagementServiceImpl
Throws:
XMLDBException

createCollection

public Collection createCollection(String path,
                                   Document configuration)
                            throws XMLDBException
Deprecated. Use XmldbURI version instead

Creates a new collection in the database identified by name and using the provided configuration.

Parameters:
path - the path of the new collection
configuration - the XML collection configuration to use for creating this collection.
Returns:
The newly created collection
Throws:
XMLDBException

getName

public String getName()
               throws XMLDBException
Specified by:
getName in interface Service
Throws:
XMLDBException

getProperty

public String getProperty(String property)
Specified by:
getProperty in interface Configurable

getVersion

public String getVersion()
                  throws XMLDBException
Specified by:
getVersion in interface Service
Throws:
XMLDBException

removeCollection

public void removeCollection(String collName)
                      throws XMLDBException
Deprecated. Use XmldbURI version instead

Specified by:
removeCollection in interface CollectionManagementServiceImpl
Specified by:
removeCollection in interface CollectionManagementService
Throws:
XMLDBException

removeCollection

public void removeCollection(XmldbURI collName)
                      throws XMLDBException
Specified by:
removeCollection in interface CollectionManagementServiceImpl
Throws:
XMLDBException

move

public void move(String collectionPath,
                 String destinationPath,
                 String newName)
          throws XMLDBException
Deprecated. Use XmldbURI version instead

Specified by:
move in interface CollectionManagementServiceImpl
Throws:
XMLDBException

move

public void move(XmldbURI collectionPath,
                 XmldbURI destinationPath,
                 XmldbURI newName)
          throws XMLDBException
Specified by:
move in interface CollectionManagementServiceImpl
Throws:
XMLDBException

moveResource

public void moveResource(String resourcePath,
                         String destinationPath,
                         String newName)
                  throws XMLDBException
Deprecated. Use XmldbURI version instead

Specified by:
moveResource in interface CollectionManagementServiceImpl
Throws:
XMLDBException

moveResource

public void moveResource(XmldbURI resourcePath,
                         XmldbURI destinationPath,
                         XmldbURI newName)
                  throws XMLDBException
Specified by:
moveResource in interface CollectionManagementServiceImpl
Throws:
XMLDBException

copy

public void copy(String collectionPath,
                 String destinationPath,
                 String newName)
          throws XMLDBException
Deprecated. Use XmldbURI version instead

Specified by:
copy in interface CollectionManagementServiceImpl
Throws:
XMLDBException

copy

public void copy(XmldbURI collectionPath,
                 XmldbURI destinationPath,
                 XmldbURI newName)
          throws XMLDBException
Specified by:
copy in interface CollectionManagementServiceImpl
Throws:
XMLDBException

copyResource

public void copyResource(String resourcePath,
                         String destinationPath,
                         String newName)
                  throws XMLDBException
Deprecated. Use XmldbURI version instead

Specified by:
copyResource in interface CollectionManagementServiceImpl
Throws:
XMLDBException

copyResource

public void copyResource(XmldbURI resourcePath,
                         XmldbURI destinationPath,
                         XmldbURI newName)
                  throws XMLDBException
Specified by:
copyResource in interface CollectionManagementServiceImpl
Throws:
XMLDBException

setCollection

public void setCollection(Collection parent)
                   throws XMLDBException
Specified by:
setCollection in interface Service
Throws:
XMLDBException

setProperty

public void setProperty(String property,
                        String value)
Specified by:
setProperty in interface Configurable

runCommand

public void runCommand(String[] params)
                throws XMLDBException
Specified by:
runCommand in interface CollectionManagementServiceImpl
Throws:
XMLDBException


Copyright (C) The eXist-db Project. All rights reserved.