public class VersionWebDAVAccess
extends com.centrasite.jaxr.common.BinaryWebDAVAccess
Constructor and Description |
---|
VersionWebDAVAccess(com.centrasite.jaxr.JAXRAccessor jaxr)
Constructor with an opened JAXR accessor (credentials required)
|
Modifier and Type | Method and Description |
---|---|
void |
addOldKey(RegistryObject regObj)
Adds a object with old key (used to extract via copyWithReplacedKey)
|
java.lang.String |
copyWithReplacedKey(java.lang.String sourceURI,
ExternalLink newElink)
Copies a webdav resource to a location which path contains the key of the external link itself.
|
java.lang.String |
remove(java.lang.String webdavURI)
Removes resource from WebDAV.
|
void |
setObjectForKey(RegistryObject objectForKey)
Sets the object to be used for key.
|
public VersionWebDAVAccess(com.centrasite.jaxr.JAXRAccessor jaxr)
jaxr
- opened JAXR sessionpublic void addOldKey(RegistryObject regObj) throws JAXRException
regObj
- a registry object with old key (for path checking)JAXRException
- if an internal error occurs on adding the old keypublic void setObjectForKey(RegistryObject objectForKey)
objectForKey
- the objectForKey of type RegistryObject
public java.lang.String copyWithReplacedKey(java.lang.String sourceURI, ExternalLink newElink) throws JAXRException, VersionException
Example: elink --> .../projects/WSDL/namespace/[oldElink-uddi-key/]x.wsdl gets copied to: .../projects/WSDL/namespace/elink-uddi-key/x.wsdl
sourceURI
- the absolute webdav address of the source to be copiednewElink
- the webdav external link (whose resource should be copied)JAXRException
- if an internal error occursVersionException
- if an internal error occurs on copying with replaced keypublic java.lang.String remove(java.lang.String webdavURI) throws java.lang.Exception
remove
in class com.centrasite.jaxr.common.AbstractWebDAVAccess
webdavURI
- the absolute (or relative) WebDAV URIjava.lang.Exception
- if an internal error occurs on remove