public interface RepositoryConnector
Modifier and Type | Field and Description |
---|---|
static javax.wvcm.PropertyNameList |
BASIC_PROPERTIES |
static java.lang.String |
DAV_TEXTNS |
static java.lang.String |
DAVHISTORY_TEXTNS |
static java.lang.String |
FOLDER_CONTROL_USERS |
static java.lang.String |
FOLDER_IMPACT_ANALYSIS_FILTERS |
static java.lang.String |
FOLDER_QUERIES |
static javax.wvcm.PropertyNameList |
FULL_PROPERTIES |
static java.lang.String |
GROUP_TEXT |
static java.lang.String |
GROUP_TEXTNS |
static java.lang.String |
INO_PREFIX |
static javax.wvcm.PropertyNameList |
NO_PROPERTIES |
static java.lang.String |
PRIVILEGE_TEXT_ALL |
static java.lang.String |
PRIVILEGE_TEXT_BIND |
static java.lang.String |
PRIVILEGE_TEXT_READ |
static java.lang.String |
PRIVILEGE_TEXT_READACL |
static java.lang.String |
PRIVILEGE_TEXT_READUSERPRIVILEGES |
static java.lang.String |
PRIVILEGE_TEXT_SECURITY |
static java.lang.String |
PRIVILEGE_TEXT_UNBIND |
static java.lang.String |
PRIVILEGE_TEXT_UNLOCK |
static java.lang.String |
PRIVILEGE_TEXT_WRITE |
static java.lang.String |
PRIVILEGE_TEXT_WRITEACL |
static java.lang.String |
PRIVILEGE_TEXT_WRITECONTENT |
static java.lang.String |
PRIVILEGE_TEXT_WRITEPROPERTIES |
static java.lang.String |
USER_TEXTNS |
Modifier and Type | Method and Description |
---|---|
void |
applyAccessList(java.lang.String relativePath,
java.util.List accessControlList)
Applies access control list to specified resource.
|
javax.wvcm.ControllableResource |
copyResource(java.lang.String sourcePath,
java.lang.String targetPath,
boolean overwrite)
Copies a WebDAV resource.
|
void |
createFolder(java.lang.String relativePath,
boolean overwrite)
Creates a WebDAV folder.
|
void |
createFolder(java.lang.String relativePath,
java.util.List accessControlList,
boolean overwrite)
Creates a WebDAV folder.
|
void |
createResource(java.io.InputStream stream,
java.lang.String contentType,
java.lang.String relativePath,
boolean overwrite)
Creates a WebDAV resource.
|
void |
createResource(java.io.InputStream stream,
java.lang.String contentType,
java.lang.String relativePath,
java.util.List accessControlList,
boolean overwrite)
Creates a WebDAV resource.
|
java.lang.String |
getAbsoluteUrl(java.lang.String url)
Gets absolute URL.
|
com.softwareag.cst.util.security.Credentials |
getCredentials()
Obtains Credentials used to connect.
|
java.lang.String |
getCurrentVersion(javax.wvcm.ControllableResource resource)
Gets current version of a resource.
|
javax.wvcm.Provider |
getProvider()
Gets WebDAV provider.
|
java.lang.String |
getRelativeDecodedUrl(java.lang.String url)
Gets relative decoded URL.
|
java.lang.String |
getRelativeIconLocation()
Gets relative location of icon in WebDAV.
|
java.lang.String |
getRelativeSchemaLocation()
Gets relative schema location in WebDAV.
|
java.lang.String |
getRelativeUrl(java.lang.String url)
Gets relative URL.
|
java.lang.String |
getRepositoryUrl()
Gets full qualified repository URL.
|
javax.wvcm.ControllableFolder |
getRootFolder()
Gets repository root folder.
|
java.lang.String |
getRootPath()
Gets repository root path.
|
java.lang.String |
getSchemaLocation()
Gets absolute schema location in WebDAV.
|
javax.wvcm.ControllableFolder |
getSupportingDocLibraryFolder()
Gets the folder for supporting documents.
|
java.lang.String |
getUserConfigFolder()
Deprecated.
use instead
|
java.lang.String |
getUserConfigFolder(com.softwareag.cst.util.security.Credentials credentials)
Deprecated.
use instead.
|
java.lang.String |
obtainContentType(java.lang.String relativePath)
Obtains "content-type" from the webdav resource.
|
java.io.InputStream |
obtainResource(java.lang.String relativePath)
Obtains specified WebDAV resource.
|
javax.wvcm.ControllableResource |
obtainResource(java.lang.String relativePath,
java.io.OutputStream stream)
Obtains specified WebDAV resource.
|
void |
removeResource(java.lang.String relativePath)
Removes specified WebDAV resource.
|
void |
renameResource(java.lang.String relativePathSource,
java.lang.String newResourceName)
Renames a WebDAV resource (can be a file or a folder).
|
void |
renameResource(java.lang.String relativePathSource,
java.lang.String newResourceName,
boolean overwrite)
Renames a WebDAV resource (can be a file or a folder).
|
boolean |
resourceExists(java.lang.String relativePath)
Does the specified WebDAV resource exist.
|
void |
setRepositoryUrl(java.lang.String repositoryUrl)
Deprecated.
|
void |
storeSchema(java.lang.String schemaPath,
java.lang.String schema)
Stores schema at given path.
|
static final java.lang.String FOLDER_CONTROL_USERS
static final java.lang.String FOLDER_IMPACT_ANALYSIS_FILTERS
static final java.lang.String FOLDER_QUERIES
static final java.lang.String INO_PREFIX
static final java.lang.String DAV_TEXTNS
static final java.lang.String DAVHISTORY_TEXTNS
static final java.lang.String GROUP_TEXT
static final java.lang.String USER_TEXTNS
static final java.lang.String GROUP_TEXTNS
static final java.lang.String PRIVILEGE_TEXT_ALL
static final java.lang.String PRIVILEGE_TEXT_READ
static final java.lang.String PRIVILEGE_TEXT_WRITE
static final java.lang.String PRIVILEGE_TEXT_WRITECONTENT
static final java.lang.String PRIVILEGE_TEXT_WRITEPROPERTIES
static final java.lang.String PRIVILEGE_TEXT_BIND
static final java.lang.String PRIVILEGE_TEXT_UNBIND
static final java.lang.String PRIVILEGE_TEXT_UNLOCK
static final java.lang.String PRIVILEGE_TEXT_SECURITY
static final java.lang.String PRIVILEGE_TEXT_READACL
static final java.lang.String PRIVILEGE_TEXT_WRITEACL
static final java.lang.String PRIVILEGE_TEXT_READUSERPRIVILEGES
static final javax.wvcm.PropertyNameList NO_PROPERTIES
static final javax.wvcm.PropertyNameList BASIC_PROPERTIES
static final javax.wvcm.PropertyNameList FULL_PROPERTIES
com.softwareag.cst.util.security.Credentials getCredentials()
javax.wvcm.Provider getProvider()
java.lang.String getRootPath()
java.lang.String getRelativeUrl(java.lang.String url)
url
- URL to be transformedjava.lang.String getRelativeDecodedUrl(java.lang.String url)
url
- URL to be transformedjava.lang.String getAbsoluteUrl(java.lang.String url)
url
- the URL to be transformedjavax.wvcm.ControllableFolder getRootFolder() throws javax.wvcm.WvcmException
javax.wvcm.WvcmException
- if an internal error occurs on getting the root folder.javax.wvcm.ControllableFolder getSupportingDocLibraryFolder() throws javax.wvcm.WvcmException
javax.wvcm.WvcmException
- if an internal error occurs on getting the supporting doc library folder.java.lang.String getRepositoryUrl()
void setRepositoryUrl(java.lang.String repositoryUrl) throws java.net.MalformedURLException
repositoryUrl
- the repository Url.java.net.MalformedURLException
- if it is an invalid URL.java.lang.String getRelativeIconLocation()
java.lang.String getSchemaLocation()
java.lang.String getUserConfigFolder()
java.lang.String getUserConfigFolder(com.softwareag.cst.util.security.Credentials credentials)
credentials
- the user credentials.java.lang.String getRelativeSchemaLocation()
void storeSchema(java.lang.String schemaPath, java.lang.String schema) throws javax.wvcm.WvcmException
schemaPath
- the path of schema relative to repository root.schema
- javax.wvcm.WvcmException
- if an internal error occurs.void createFolder(java.lang.String relativePath, java.util.List accessControlList, boolean overwrite) throws javax.wvcm.WvcmException
relativePath
- the Path to the folder to be created.accessControlList
- the list of access control elements specifying the access rightsoverwrite
- if false
an exception will occur on overwriting an existing folderjavax.wvcm.WvcmException
- if WebDav operation fails.void createFolder(java.lang.String relativePath, boolean overwrite) throws javax.wvcm.WvcmException
relativePath
- the Path to the folder to be created.overwrite
- if false
an exception will occur on overwriting an existing folder.javax.wvcm.WvcmException
- if WebDav operation fails.void createResource(java.io.InputStream stream, java.lang.String contentType, java.lang.String relativePath, java.util.List accessControlList, boolean overwrite) throws javax.wvcm.WvcmException
stream
- the stream of file to be loaded.contentType
- the content type of the resource.relativePath
- the relative path (including resource name) to the resource to be created.accessControlList
- the list of access control elements specifying the access rights.overwrite
- if false
an exception will occur on overwriting an existing resource.javax.wvcm.WvcmException
- if WebDav operation fails.void createResource(java.io.InputStream stream, java.lang.String contentType, java.lang.String relativePath, boolean overwrite) throws javax.wvcm.WvcmException
stream
- the stream of file to be loadedcontentType
- the content type of the resourcerelativePath
- the relative path (including resource name) to the resource to be createdoverwrite
- if false
an exception will occur on overwriting an existing resourcejavax.wvcm.WvcmException
- if WebDav operation fails.javax.wvcm.ControllableResource copyResource(java.lang.String sourcePath, java.lang.String targetPath, boolean overwrite) throws javax.wvcm.WvcmException
sourcePath
- the absolute path (including resource name) to the resource to be copied.targetPath
- the absolute path (including resource name) to the resource to be created.overwrite
- if false
an exception will occur on overwriting an existing resource.javax.wvcm.WvcmException
- if WebDav operation fails.void renameResource(java.lang.String relativePathSource, java.lang.String newResourceName) throws javax.wvcm.WvcmException
relativePathSource
- the relative path of the resource (e.g. "/projects/a.wsdl"newResourceName
- the new name of the resource (e.g. "b.wsdl")javax.wvcm.WvcmException
- WebDav operation failed.void renameResource(java.lang.String relativePathSource, java.lang.String newResourceName, boolean overwrite) throws javax.wvcm.WvcmException
relativePathSource
- the relative path of the resource (e.g. "/projects/a.wsdl"newResourceName
- the new name of the resource (e.g. "b.wsdl")overwrite
- if true overwrite the resource at the new location if it existsjavax.wvcm.WvcmException
- WebDav operation failed.java.lang.String getCurrentVersion(javax.wvcm.ControllableResource resource)
resource
- The resource.javax.wvcm.ControllableResource obtainResource(java.lang.String relativePath, java.io.OutputStream stream) throws javax.wvcm.WvcmException
relativePath
- the relative path (including resource name) to the resource to be obtained.stream
- the output stream of the resource.javax.wvcm.WvcmException
- if WebDav operation fails.java.io.InputStream obtainResource(java.lang.String relativePath) throws javax.wvcm.WvcmException
relativePath
- the relative path (including resource name) to the resource to be obtained.javax.wvcm.WvcmException
- if WebDav operation fails.java.lang.String obtainContentType(java.lang.String relativePath) throws javax.wvcm.WvcmException
relativePath
- the relative path (including resource name) to the resource to be obtained.javax.wvcm.WvcmException
- if WebDav operation fails.void removeResource(java.lang.String relativePath) throws javax.wvcm.WvcmException
relativePath
- the relative path (including resource name) to the resource to be created.javax.wvcm.WvcmException
- if WebDav operation fails.boolean resourceExists(java.lang.String relativePath) throws javax.wvcm.WvcmException
relativePath
- the relative path (including resource name) to the resource to be checked.true
if resource exists false
otherwise.javax.wvcm.WvcmException
- if WebDav operation fails.void applyAccessList(java.lang.String relativePath, java.util.List accessControlList) throws javax.wvcm.WvcmException
relativePath
- the relative path (including resource name) to the resource to be created.accessControlList
- the list of access control elements specifying the access rights.javax.wvcm.WvcmException
- if WebDav operation fails.