public class SvnConnector extends Connector
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_KEY_REPOSITORY_PATH |
static String |
CONFIG_KEY_TEMPORARY_FILE_STORE |
static String |
DEFAULT_CONFIG_KEY_TEMPORARY_FILE_STORE |
| Constructor and Description |
|---|
SvnConnector() |
| Modifier and Type | Method and Description |
|---|---|
ConnectorNode |
createNode(String parentId,
String label,
ConnectorNodeType type,
String message) |
void |
deleteNode(ConnectorNode node,
String message) |
void |
dispose() |
protected String |
extractCommitMessage(org.tigris.subversion.svnclientadapter.SVNUrl svnUrl,
org.tigris.subversion.svnclientadapter.ISVNDirEntry entry) |
List<ConnectorNode> |
getChildren(ConnectorNode parent) |
InputStream |
getContent(ConnectorNode node)
Get the contents of the given node as an input stream.
|
ContentInformation |
getContentInformation(ConnectorNode node)
Returns a
ContentInformation for the given connector node. |
protected String |
getDefaultCommitMessage(String string) |
ConnectorNode |
getNode(String id)
Returns a
ConnectorNode to the assigned id. |
ConnectorNode |
getRoot() |
void |
init(ConnectorConfiguration config) |
boolean |
isSupportsCommitMessage() |
void |
login(String userName,
String password) |
boolean |
needsLogin() |
ContentInformation |
updateContent(ConnectorNode node,
InputStream newContent,
String message) |
getConfiguration, getId, init, setConfigurationpublic static final String CONFIG_KEY_REPOSITORY_PATH
public static final String CONFIG_KEY_TEMPORARY_FILE_STORE
public static final String DEFAULT_CONFIG_KEY_TEMPORARY_FILE_STORE
public void init(ConnectorConfiguration config)
public boolean needsLogin()
needsLogin in class Connectorpublic List<ConnectorNode> getChildren(ConnectorNode parent)
getChildren in class Connectorpublic ConnectorNode getRoot()
public ConnectorNode getNode(String id)
ConnectorConnectorNode to the assigned id. If
a ConnectorNode could not be found, the value null
will be returned.getNode in class Connectorid - Represents the id of a ConnectorNode to search.ConnectorNode to the assigned id or null if no
ConnectorNode found.protected String extractCommitMessage(org.tigris.subversion.svnclientadapter.SVNUrl svnUrl, org.tigris.subversion.svnclientadapter.ISVNDirEntry entry) throws org.tigris.subversion.svnclientadapter.SVNClientException
org.tigris.subversion.svnclientadapter.SVNClientExceptionpublic ConnectorNode createNode(String parentId, String label, ConnectorNodeType type, String message)
createNode in class Connectorpublic void deleteNode(ConnectorNode node, String message)
deleteNode in class Connectorpublic ContentInformation updateContent(ConnectorNode node, InputStream newContent, String message)
updateContent in class Connectorpublic InputStream getContent(ConnectorNode node)
ConnectorConnectorNode.getType().getContent in class Connectorpublic ContentInformation getContentInformation(ConnectorNode node)
ConnectorContentInformation for the given connector node.
May never return null or throw an exception.getContentInformation in class Connectorpublic boolean isSupportsCommitMessage()
isSupportsCommitMessage in class ConnectorCopyright © 2015. All rights reserved.