|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.connector.base.AbstractRepositorySource
org.modeshape.graph.connector.base.AbstractNodeCachingRepositorySource<Path,PathNode>
org.modeshape.connector.svn.SvnRepositorySource
@ThreadSafe public class SvnRepositorySource
The RepositorySource
for the connector that exposes an area of the local/remote svn repository as content in a
repository. 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. New workspaces can be created, as long as the names represent valid paths to
existing directories.
Field Summary | |
---|---|
protected static String |
ALLOW_CREATING_WORKSPACES
|
protected static String |
CACHE_POLICY
|
protected static boolean |
DEFAULT_SUPPORTS_CREATING_WORKSPACES
This source does support creating workspaces. |
static boolean |
DEFAULT_SUPPORTS_UPDATES
This source supports udpates by default, but each instance may be configured to be read-only or updateable}. |
protected static String |
DEFAULT_WORKSPACE
|
static String |
DEFAULT_WORKSPACE_NAME
The default name of the defaultWorkspace property. |
protected static String |
PREDEFINED_WORKSPACE_NAMES
|
protected static String |
RETRY_LIMIT
|
protected static String |
ROOT_NODE_UUID
|
protected static String |
SOURCE_NAME
|
protected static boolean |
SUPPORTS_EVENTS
This source supports events. |
protected static boolean |
SUPPORTS_REFERENCES
This source supports creating references. |
protected static boolean |
SUPPORTS_SAME_NAME_SIBLINGS
This source supports same-name-siblings. |
protected static String |
SVN_PASSWORD
|
protected static String |
SVN_REPOSITORY_ROOT_URL
|
protected static String |
SVN_USERNAME
|
Fields inherited from class org.modeshape.graph.connector.base.AbstractNodeCachingRepositorySource |
---|
DEFAULT_NODE_CACHE_POLICY, NODE_CACHE_POLICY |
Fields inherited from class org.modeshape.graph.connector.base.AbstractRepositorySource |
---|
cachePolicy, DEFAULT_CACHE_POLICY, DEFAULT_RETRY_LIMIT, DEFAULT_ROOT_NODE_UUID, repositoryContext, retryLimit, rootNodeUuid |
Constructor Summary | |
---|---|
SvnRepositorySource()
Create a repository source instance. |
Method Summary | |
---|---|
boolean |
areUpdatesAllowed()
Get whether this source allows updates. |
boolean |
equals(Object obj)
|
RepositorySourceCapabilities |
getCapabilities()
Get the capabilities for this source. |
RepositoryConnection |
getConnection()
Get a connection from this source. |
String |
getDefaultWorkspaceName()
Get the path to the existing directory that should be used for the default workspace. |
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment)
|
String |
getPassword()
|
String[] |
getPredefinedWorkspaceNames()
Gets the names of the workspaces that are available when this source is created. |
Reference |
getReference()
|
String |
getRepositoryRootUrl()
|
boolean |
getSupportsUpdates()
Get whether this source supports updates. |
String |
getUsername()
|
int |
hashCode()
|
boolean |
isCreatingWorkspacesAllowed()
Get whether this source allows workspaces to be created dynamically. |
void |
setCreatingWorkspacesAllowed(boolean allowWorkspaceCreation)
Set whether this source allows workspaces to be created dynamically. |
void |
setDefaultWorkspaceName(String pathToDirectoryForDefaultWorkspace)
Set the file system path to the existing directory that should be used for the default workspace. |
void |
setPassword(String password)
|
void |
setPredefinedWorkspaceNames(String[] predefinedWorkspaceNames)
Sets the names of the workspaces that are available when this source is created. |
void |
setRepositoryRootUrl(String url)
Set the url for the subversion repository. |
void |
setUpdatesAllowed(boolean allowUpdates)
Set whether this source allows updates to data within workspaces |
void |
setUsername(String username)
|
Methods inherited from class org.modeshape.graph.connector.base.AbstractNodeCachingRepositorySource |
---|
addNodeCachePolicyChangedListener, addNodeCachePolicyReference, getNodeCachePolicy, removeNodeCachePolicyChangedListener, setNodeCachePolicy |
Methods inherited from class org.modeshape.graph.connector.base.AbstractRepositorySource |
---|
close, getDefaultCachePolicy, getName, getRepositoryContext, getRetryLimit, getRootNodeUuid, getRootNodeUuidObject, initialize, setCachePolicy, setName, setRetryLimit, setRootNodeUuid, setRootNodeUuidObject, valuesFrom |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String SOURCE_NAME
protected static final String CACHE_POLICY
protected static final String SVN_REPOSITORY_ROOT_URL
protected static final String SVN_USERNAME
protected static final String SVN_PASSWORD
protected static final String RETRY_LIMIT
protected static final String ROOT_NODE_UUID
protected static final String DEFAULT_WORKSPACE
protected static final String PREDEFINED_WORKSPACE_NAMES
protected static final String ALLOW_CREATING_WORKSPACES
protected static final boolean SUPPORTS_EVENTS
protected static final boolean SUPPORTS_SAME_NAME_SIBLINGS
protected static final boolean DEFAULT_SUPPORTS_CREATING_WORKSPACES
public static final boolean DEFAULT_SUPPORTS_UPDATES
public static final String DEFAULT_WORKSPACE_NAME
defaultWorkspace
property.
protected static final boolean SUPPORTS_REFERENCES
Constructor Detail |
---|
public SvnRepositorySource()
Method Detail |
---|
public RepositorySourceCapabilities getCapabilities()
getCapabilities
in interface RepositorySource
RepositorySource.getCapabilities()
public String getRepositoryRootUrl()
public void setRepositoryRootUrl(String url)
url
- - the url location.
IllegalArgumentException
- If svn url is null or emptypublic String getUsername()
public void setUsername(String username)
username
- public String getPassword()
public void setPassword(String password)
password
- @Description(i18n=SvnRepositoryConnectorI18n.class, value="updatesAllowedPropertyDescription") @Label(i18n=SvnRepositoryConnectorI18n.class, value="updatesAllowedPropertyLabel") @Category(i18n=SvnRepositoryConnectorI18n.class, value="updatesAllowedPropertyCategory") @ReadOnly public boolean getSupportsUpdates()
public String getDefaultWorkspaceName()
repository root URL
. If the default is specified as a null String or is not a valid and
resolvable path, this source will consider the default to be the current working directory of this virtual machine, as
defined by the new File(".")
.
getDefaultWorkspaceName
in interface BaseRepositorySource
public void setDefaultWorkspaceName(String pathToDirectoryForDefaultWorkspace)
repository root URL
. If the default is specified as a null String or is not
a valid and resolvable path, this source will consider the default to be the current working directory of this virtual
machine, as defined by the new File(".")
.
pathToDirectoryForDefaultWorkspace
- the valid and resolvable file system path to the directory representing the
default workspace, or null if the current working directory should be used as the default workspacepublic String[] getPredefinedWorkspaceNames()
setPredefinedWorkspaceNames(String[])
,
setCreatingWorkspacesAllowed(boolean)
public void setPredefinedWorkspaceNames(String[] predefinedWorkspaceNames)
predefinedWorkspaceNames
- the names of the workspaces that this source should start with, or null if there are no
such workspacessetCreatingWorkspacesAllowed(boolean)
,
getPredefinedWorkspaceNames()
@Description(i18n=SvnRepositoryConnectorI18n.class, value="creatingWorkspacesAllowedPropertyDescription") @Label(i18n=SvnRepositoryConnectorI18n.class, value="creatingWorkspacesAllowedPropertyLabel") @Category(i18n=SvnRepositoryConnectorI18n.class, value="creatingWorkspacesAllowedPropertyCategory") public boolean isCreatingWorkspacesAllowed()
isCreatingWorkspacesAllowed
in interface BaseRepositorySource
isCreatingWorkspacesAllowed
in class AbstractRepositorySource
setPredefinedWorkspaceNames(String[])
,
getPredefinedWorkspaceNames()
,
setCreatingWorkspacesAllowed(boolean)
public void setCreatingWorkspacesAllowed(boolean allowWorkspaceCreation)
allowWorkspaceCreation
- true if this source allows workspaces to be created by clients, or false if the set of
workspaces is fixedsetPredefinedWorkspaceNames(String[])
,
getPredefinedWorkspaceNames()
,
isCreatingWorkspacesAllowed()
@Description(i18n=SvnRepositoryConnectorI18n.class, value="updatesAllowedPropertyDescription") @Label(i18n=SvnRepositoryConnectorI18n.class, value="updatesAllowedPropertyLabel") @Category(i18n=SvnRepositoryConnectorI18n.class, value="updatesAllowedPropertyCategory") public boolean areUpdatesAllowed()
areUpdatesAllowed
in interface BaseRepositorySource
areUpdatesAllowed
in class AbstractRepositorySource
setUpdatesAllowed(boolean)
public void setUpdatesAllowed(boolean allowUpdates)
setUpdatesAllowed
in interface BaseRepositorySource
allowUpdates
- true if this source allows updates to data within workspaces clients, or false if updates are not
allowed.areUpdatesAllowed()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Reference getReference()
getReference
in interface Referenceable
Referenceable.getReference()
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws Exception
getObjectInstance
in interface ObjectFactory
Exception
ObjectFactory.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context,
java.util.Hashtable)
public RepositoryConnection getConnection() throws RepositorySourceException
getConnection
in interface RepositorySource
RepositorySourceException
- if there is a problem obtaining a connectionRepositorySource.getConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |