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, setConfiguration
public 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 Connector
public List<ConnectorNode> getChildren(ConnectorNode parent)
getChildren
in class Connector
public ConnectorNode getRoot()
public ConnectorNode getNode(String id)
Connector
ConnectorNode
to the assigned id
. If
a ConnectorNode
could not be found, the value null
will be returned.getNode
in class Connector
id
- 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.SVNClientException
public ConnectorNode createNode(String parentId, String label, ConnectorNodeType type, String message)
createNode
in class Connector
public void deleteNode(ConnectorNode node, String message)
deleteNode
in class Connector
public ContentInformation updateContent(ConnectorNode node, InputStream newContent, String message)
updateContent
in class Connector
public InputStream getContent(ConnectorNode node)
Connector
ConnectorNode.getType()
.getContent
in class Connector
public ContentInformation getContentInformation(ConnectorNode node)
Connector
ContentInformation
for the given connector node.
May never return null or throw an exception.getContentInformation
in class Connector
public boolean isSupportsCommitMessage()
isSupportsCommitMessage
in class Connector
Copyright © 2015. All rights reserved.