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(javax.xml.registry.infomodel.RegistryObject regObj)
Adds a object with old key (used to extract via copyWithReplacedKey)
|
java.lang.String |
copyWithReplacedKey(java.lang.String sourceURI,
javax.xml.registry.infomodel.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(javax.xml.registry.infomodel.RegistryObject objectForKey)
Sets the object to be used for key.
|
public VersionWebDAVAccess(com.centrasite.jaxr.JAXRAccessor jaxr)
jaxr
- opened JAXR sessionpublic void addOldKey(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException
regObj
- a registry object with old key (for path checking)javax.xml.registry.JAXRException
- if an internal error occurs on adding the old keypublic void setObjectForKey(javax.xml.registry.infomodel.RegistryObject objectForKey)
objectForKey
- the objectForKey of type RegistryObject
public java.lang.String copyWithReplacedKey(java.lang.String sourceURI, javax.xml.registry.infomodel.ExternalLink newElink) throws javax.xml.registry.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)javax.xml.registry.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