public class VersionWebDAVUpdate
extends java.lang.Object
Note: the webdav updates here have the logic of wsdl/xsd registration !
Example: wsdl (at path1/service.wsdl): xsd (at path1/schema.xsd) ... import location="path1/schema.xsd" after versioning the files got copied: wsdl (at path1/key/service.wsdl): xsd (at path1/key/schema.xsd) ... import location="path1/schema.xsd" after update with VersionWebDAVUpdate.update(): wsdl (at path1/key/service.wsdl): xsd (at path1/key/schema.xsd) ... import location="path1/key/schema.xsd"
Constructor and Description |
---|
VersionWebDAVUpdate(VersionWebDAVAccess webdavAccess)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String originalWebdavUri,
java.lang.String copiedWebdavUri,
java.lang.String copiedElinkKey,
boolean hasReference)
Adds a new file normally the copied URI has the object's key insdide, but there could
also be the opposite handling.
|
java.util.List<com.centrasite.registry.versionmanagementservices.VersionWebDAVUpdate.WebDAVUpdateEntry> |
getWebdavUpdateEntries()
Gets the list of collected WebDAVUpdateEntry
|
void |
update()
Performs the updates of the files in WebDAV (note: the old ones get updated)
|
public VersionWebDAVUpdate(VersionWebDAVAccess webdavAccess)
webdavAccess
- webdav access class (to get jaxr and webdav locator)public void add(java.lang.String originalWebdavUri, java.lang.String copiedWebdavUri, java.lang.String copiedElinkKey, boolean hasReference)
originalWebdavUri
- original uri of the file (usually without key in name)copiedWebdavUri
- newly copied uri of the file (usually with key in name)copiedElinkKey
- key of external link of the copied sourcehasReference
- true
file has any import reference false
no referencepublic void update() throws VersionException
VersionException
- if an internal error occurs on updatepublic java.util.List<com.centrasite.registry.versionmanagementservices.VersionWebDAVUpdate.WebDAVUpdateEntry> getWebdavUpdateEntries()