public interface RepositoryConnector
Modifier and Type | Field and Description |
---|---|
static 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 PropertyNameList |
FULL_PROPERTIES |
static java.lang.String |
GROUP_TEXT |
static java.lang.String |
GROUP_TEXTNS |
static java.lang.String |
INO_PREFIX |
static 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.
|
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.
|
Credentials |
getCredentials()
Obtains Credentials used to connect.
|
java.lang.String |
getCurrentVersion(ControllableResource resource)
Gets current version of a resource.
|
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.
|
ControllableFolder |
getRootFolder()
Gets repository root folder.
|
java.lang.String |
getRootPath()
Gets repository root path.
|
java.lang.String |
getSchemaLocation()
Gets absolute schema location in WebDAV.
|
ControllableFolder |
getSupportingDocLibraryFolder()
Gets the folder for supporting documents.
|
java.lang.String |
getUserConfigFolder()
Deprecated.
use instead
|
java.lang.String |
getUserConfigFolder(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.
|
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 PropertyNameList NO_PROPERTIES
static final PropertyNameList BASIC_PROPERTIES
static final PropertyNameList FULL_PROPERTIES
Credentials getCredentials()
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 transformedControllableFolder getRootFolder() throws WvcmException
WvcmException
- if an internal error occurs on getting the root folder.ControllableFolder getSupportingDocLibraryFolder() throws WvcmException
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(Credentials credentials)
credentials
- the user credentials.java.lang.String getRelativeSchemaLocation()
void storeSchema(java.lang.String schemaPath, java.lang.String schema) throws WvcmException
schemaPath
- the path of schema relative to repository root.schema
- WvcmException
- if an internal error occurs.void createFolder(java.lang.String relativePath, java.util.List accessControlList, boolean overwrite) throws 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 folderWvcmException
- if WebDav operation fails.void createFolder(java.lang.String relativePath, boolean overwrite) throws WvcmException
relativePath
- the Path to the folder to be created.overwrite
- if false
an exception will occur on overwriting an existing folder.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 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.WvcmException
- if WebDav operation fails.void createResource(java.io.InputStream stream, java.lang.String contentType, java.lang.String relativePath, boolean overwrite) throws 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 resourceWvcmException
- if WebDav operation fails.ControllableResource copyResource(java.lang.String sourcePath, java.lang.String targetPath, boolean overwrite) throws 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.WvcmException
- if WebDav operation fails.void renameResource(java.lang.String relativePathSource, java.lang.String newResourceName) throws WvcmException
relativePathSource
- the relative path of the resource (e.g. "/projects/a.wsdl"newResourceName
- the new name of the resource (e.g. "b.wsdl")WvcmException
- WebDav operation failed.void renameResource(java.lang.String relativePathSource, java.lang.String newResourceName, boolean overwrite) throws 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 existsWvcmException
- WebDav operation failed.java.lang.String getCurrentVersion(ControllableResource resource)
resource
- The resource.ControllableResource obtainResource(java.lang.String relativePath, java.io.OutputStream stream) throws WvcmException
relativePath
- the relative path (including resource name) to the resource to be obtained.stream
- the output stream of the resource.WvcmException
- if WebDav operation fails.java.io.InputStream obtainResource(java.lang.String relativePath) throws WvcmException
relativePath
- the relative path (including resource name) to the resource to be obtained.WvcmException
- if WebDav operation fails.java.lang.String obtainContentType(java.lang.String relativePath) throws WvcmException
relativePath
- the relative path (including resource name) to the resource to be obtained.WvcmException
- if WebDav operation fails.void removeResource(java.lang.String relativePath) throws WvcmException
relativePath
- the relative path (including resource name) to the resource to be created.WvcmException
- if WebDav operation fails.boolean resourceExists(java.lang.String relativePath) throws WvcmException
relativePath
- the relative path (including resource name) to the resource to be checked.true
if resource exists false
otherwise.WvcmException
- if WebDav operation fails.void applyAccessList(java.lang.String relativePath, java.util.List accessControlList) throws 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.WvcmException
- if WebDav operation fails.