Skip to end of metadata
Go to start of metadata

This connector provides read and write access to the directories and folders within a Subversion repository, providing that content in the form of nt:file and nt:folder nodes. This source considers a workspace name to be the path to the directory on the repository's root directory location that represents the root of that workspace (e.g., "trunk" or "branches"). New workspaces can be created, as long as the names represent valid existing directories within the SVN repository.

The SvnRepositorySource class provides a number of JavaBean properties that control its behavior:

Property Description
cachePolicy Optional property that, if used, defines the cache policy for this repository source. When not used, this source will not define a specific duration for caching information.
creatingWorkspaceAllowed Optional property that defines whether clients can create additional workspaces. The default value is "true".
defaultWorkspaceName Optional property that, if used, specifies the name of the workspace to use when no workspace name is specified in an operation. If not specified, "trunk" is used.
Each workspace name is treated as a path relative to the SVN repository being exposed. For example, given a repository root URL of "http://acme.com/repo/", a workspace name of "trunk" will map to "http://acme.com/repo/trunk".
name Required property that specifies the name of the repository source, which is used by the RepositoryService when obtaining a RepositoryConnection by name.
nodeCachePolicy Optional property that, if used, defines the cache policy to use for caching nodes within the connector.
password The password that should be used to establish a connection to the repository. This is not required if the URL represents an anonymous SVN repository address.
predefinedWorkspaceNames Optional property that, if used, defines names of the workspaces that are predefined and need not be created before being used. This can be coupled with a "false" value for the "creatingWorkspaceAllowed" property to allow only the use of only predefined workspaces.
retryLimit Optional property that, if used, defines the number of times that any single operation on a RepositoryConnection to this source should be retried following a communication failure. The default value is '0'.
repositoryRootURL Required property that should be set with the URL to the Subversion repository.
username The username that should be used to establish a connection to the repository. This is not required if the URL represents an anonymous SVN repository address.

One way to configure the Subversion connector is to create JcrConfiguration instance with a repository source that uses the SvnRepositorySource class. For example:

Another way to configure the Subversion connector is to create JcrConfiguration instance and load an XML configuration file that contains a repository source that uses the SvnRepositorySource class. For example a file named configRepository.xml can be created with these contents:

The configuration can then be loaded from Java like this:

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.