org.camunda.bpm.cycle.connector.svn
Class SvnConnector
java.lang.Object
org.camunda.bpm.cycle.connector.Connector
org.camunda.bpm.cycle.connector.svn.SvnConnector
public class SvnConnector
- extends Connector
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIG_KEY_REPOSITORY_PATH
public static final String CONFIG_KEY_REPOSITORY_PATH
- See Also:
- Constant Field Values
CONFIG_KEY_TEMPORARY_FILE_STORE
public static final String CONFIG_KEY_TEMPORARY_FILE_STORE
- See Also:
- Constant Field Values
DEFAULT_CONFIG_KEY_TEMPORARY_FILE_STORE
public static final String DEFAULT_CONFIG_KEY_TEMPORARY_FILE_STORE
- See Also:
- Constant Field Values
SvnConnector
public SvnConnector()
init
public void init(ConnectorConfiguration config)
- Overrides:
init in class Connector
needsLogin
public boolean needsLogin()
- Specified by:
needsLogin in class Connector
login
public void login(String userName,
String password)
- Overrides:
login in class Connector
getChildren
public List<ConnectorNode> getChildren(ConnectorNode parent)
- Specified by:
getChildren in class Connector
getRoot
public ConnectorNode getRoot()
- Specified by:
getRoot in class Connector
getNode
public ConnectorNode getNode(String id)
- Description copied from class:
Connector
- Returns a
ConnectorNode to the assigned id. If
a ConnectorNode could not be found, the value null
will be returned.
- Specified by:
getNode in class Connector
- Parameters:
id - Represents the id of a ConnectorNode to search.
- Returns:
- A
ConnectorNode to the assigned id or null if no
ConnectorNode found.
extractCommitMessage
protected String extractCommitMessage(org.tigris.subversion.svnclientadapter.SVNUrl svnUrl,
org.tigris.subversion.svnclientadapter.ISVNDirEntry entry)
throws org.tigris.subversion.svnclientadapter.SVNClientException
- Throws:
org.tigris.subversion.svnclientadapter.SVNClientException
createNode
public ConnectorNode createNode(String parentId,
String label,
ConnectorNodeType type,
String message)
- Specified by:
createNode in class Connector
deleteNode
public void deleteNode(ConnectorNode node,
String message)
- Specified by:
deleteNode in class Connector
getDefaultCommitMessage
protected String getDefaultCommitMessage(String string)
updateContent
public ContentInformation updateContent(ConnectorNode node,
InputStream newContent,
String message)
- Specified by:
updateContent in class Connector
getContent
public InputStream getContent(ConnectorNode node)
- Description copied from class:
Connector
- Get the contents of the given node as an input stream.
Implementations must handle the node correctly,
especially concerning the nodes type accessible via
ConnectorNode.getType().
- Specified by:
getContent in class Connector
- Returns:
- the input stream of the file
getContentInformation
public ContentInformation getContentInformation(ConnectorNode node)
- Description copied from class:
Connector
- Returns a
ContentInformation for the given connector node.
May never return null or throw an exception.
- Specified by:
getContentInformation in class Connector
- Returns:
dispose
public void dispose()
- Overrides:
dispose in class Connector
isSupportsCommitMessage
public boolean isSupportsCommitMessage()
- Specified by:
isSupportsCommitMessage in class Connector
Copyright © 2014 camunda services GmbH. All rights reserved.