Hi I would like to ask if someone could tell me if it is possible to rename a collection in eXist-db in Java (without having to remove old collection and create a new one). I have already searched the API but haven't found anything except creating and removing collections. I'm using exist's XML:DB API.
Asked
Active
Viewed 282 times
1 Answers
1
You can safely cast your instance of org.xmldb.api.modules.CollectionManagementService
to org.exist.xmldb.CollectionManagementServiceImpl
. CollectionManagementServiceImpl
has some additional methods on it such as move
for collections and moveResource
for resources, among others.

adamretter
- 3,885
- 2
- 23
- 43